Hi again,
I figured out that part, there was a scale difference with main model if I
scale it up to 25 times in each direction then model is visible. But still it
is vague how we can setup the hud camera viewing direction or up vector, I'll
appreciate your guidance on that.
Along with that I'd like to know whether it's possible to assign the
manipulator to the hud camera if so how can I do it, but preferably I want only
the rotation and zooming and not the paning ?
Regards,
From: [email protected]
To: [email protected]
Date: Thu, 17 Jul 2014 09:57:41 +0100
Subject: [osg-users] HUD Camera as Ortho View
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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org