setTransform not working
Posted: Fri Apr 04, 2008 4:00 pm
Hi,
I'm trying to get setTransform to work for headtracking. But while the generated projection matrix changes a desired, there is no change in the graphical output.
Is there anything I've missed?
I'm using opengl on linux x64.
Andy
I'm trying to get setTransform to work for headtracking. But while the generated projection matrix changes a desired, there is no change in the graphical output.
Code: Select all
float nearPlane = 0.05;
matrix4 projectionMatrix = make_projection_matrix( nearPlane*( -0.5 * aspectRatio + headPosition.X)/ d,
nearPlane*( 0.5 * aspectRatio + headPosition.X)/ d,
nearPlane*( -0.5 - headPosition.Y ) / d,
nearPlane*( 0.5 - headPosition.Y ) / d,
nearPlane, 100);
driver->setTransform(ETS_PROJECTION, projectionMatrix);
smgr->drawAll();
driver->endScene();
I'm using opengl on linux x64.
Andy