Antorian
11-18-2003, 01:11 AM
I'm designing an app' wich compute relative world from camera position.
So I need performance to extract the 3 vectors of camera world (View Direction,Up Direction, And Right Hand) in world coordinates.
My question is: what is the best way to get those vectors (I'm also Using gluLookAt routine to set up Camera, so I've already the View Axis) from the ModelView and Projection Matrix?
On the other Hand what is the fatest way to do the same with VertexProgram (ARB)?
All suggestions are welcome.
I would like to test performances of two solutions, such a way that I can suggest a CPU minimum requirement that is better than GPU operation (Or may be CPU is never better than VP operations).
Regards, Antorian.
So I need performance to extract the 3 vectors of camera world (View Direction,Up Direction, And Right Hand) in world coordinates.
My question is: what is the best way to get those vectors (I'm also Using gluLookAt routine to set up Camera, so I've already the View Axis) from the ModelView and Projection Matrix?
On the other Hand what is the fatest way to do the same with VertexProgram (ARB)?
All suggestions are welcome.
I would like to test performances of two solutions, such a way that I can suggest a CPU minimum requirement that is better than GPU operation (Or may be CPU is never better than VP operations).
Regards, Antorian.