Code: Select all
GetManager()->addCameraSceneNode(0, vector3df(0,0,100), vector3df(0,0,0));
// Enter orthographic view
matrix4 identity, orthoProjection;
identity.makeIdentity();
orthoProjection.buildProjectionMatrixOrthoLH(100.0f, 100.0f, 0.0f, 200.0f);
GetDriver()->setTransform(ETS_PROJECTION, orthoProjection);
GetDriver()->setTransform(ETS_VIEW, identity);
GetDriver()->setTransform(ETS_WORLD, identity);
Secondly, and much more seriously, I am not really sure if it is ortho at all..., Billboards get bigger as their Z position gets larger toward 100... and the edges of the screen are not where they are supposed to be, the frame of (-50,-50)->(50,50) which should be the entire screen is only part of it...
Could someone tell me what is wrong?
Thanks!!
-Tom