Dear All,
I follow the example given at the Beginners about the hud camera creation and
representation in scene Chapter 7. It works nicely, but if try to manipulate
some of the value in order to get better perception of how OSG works.
For example, setting the hud camera in the given example to the following
camera->setProjectionMatrixAsOrtho(-1000,1000,-1000,1000,-300,300);renders
nothing on screen.
But if I set the camera as ViewMatrixasLookAt works
fine.camera->setViewMatrixAsLookAt(osg::Vec3(0.0f,1.0f,0.0f),
osg::Vec3(),osg::Vec3(0.0f,0.0f,1.0f) );
What I expected to see is the glider on top of terrain, but I always see a
terrain only. As you can see I set the near/far of orthographic hud camera is
set to capture the objects resting in -300, 300 range. Another question arises
in my mind also how do we setup the up vector of orthographic camera in that
case?
Regards,
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org