Orthographic View not working...
Posted: Mon Jan 22, 2007 6:12 am
So, I found a thread: (http://irrlicht.sourceforge.net/phpBB2/ ... php?t=2643) which in the end did have a solution for how to enter an orthographic mode, but I am having two problems. Here is the code i am using to enter the ortho view:
First off, I have tried both buildProjectionMatrixOrthoLH and RH and both have -100,-100 in the bottom right hand corner which is not what I expect and is cirtainly not optimal for the program im working on...
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
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