Ubuntu on ASUS UL30VT

So, lately theres been a fair few problems with the UL30VT. This is a post to compile the general solutions to especially the hybrid graphics cards.

This guide is intended to the new Ubuntu release Lucid Lynx(10.04 LTS), but would probably work for the Karmic(9.10) release too.

Hybrid Graphics – The problem
First off, the hybrid drivers found in Windows 7 seems to be developed by Asus themselves. Another problem is that to be able to “hotswitch” between the Nvidia and Intel graphics card it need to be implemented into the Xorg core – and this I would imagine we will not see in a long time. As it stand in Windows, only Windows 7 is able to the “hotswitch”, earlier versions like Vista and XP need to same solution as Xorg – a service restart(re-login).

Hybrid Graphics – Solution
So there are several solutions depending on the outcome you want.

  • Running only Intel
  • Running only Nvidia
  • Running “hotswitch” between Intel and Nvidia

Hybrid Graphics – Solution “Running only Intel”
So – this solution pretty much work out of the box. Since the Lucid install utilize the Intel card by default using the Intel drivers, this is the easiest solution. The only thing you need to do is pretty much install Ubuntu as you would on any other computer.
Continue reading Ubuntu on ASUS UL30VT

OpenGL and CG Shaders – introduction

I wanted to write a little introduction on how to setup and use the nVidia CG Toolkit and start creating some shaders for first and most OpenGL, who cares about D3D anyway?!?

Getting the toolkit

Head over to nVidias CG site and fetch the toolkit from there. Remember to get latest version!

What else do you need? You need, or preferrable want to update your graphics drivers to latest version in case you’re running on some old shit that doesn’t support different OpenGL extensions.

Getting started

Well, first I’m gonna give you an address to a beginners tutorial to CG, just so you have something to look up in, in case you were to, not that I’m saying you ever are, get stuck somewhere.

nVidia CG Tutorial book

It’s a good place to start, maybe not go through all the chapters straight away, but have a look at the first chapters and you get a general idea. That is pretty much what I’m gonna go through here too.

I already asume you are familiar with how to add library to your Visual Studio, cause we do need some of those cg librarys loaded. I will also use function oriented programming to demonstrate how this works, but theres no reason why you cant access it FROM objects so don’t be scred if you’re a OOP guru.

First, lets have a look at the CG shaders we’re gonna use. This is the simplest of the simplest ones, just to get you started. Lets have a look at the vertex shader:
Continue reading OpenGL and CG Shaders – introduction