Gianni Ambrosio wrote:
Looking around I found a topic that could help but I will ask some help about
that later.
Now, can anybody explain me please why I don't see the axes object in the
bottom left corner of the viewer using the following code? I can see the cessna
plane only in the viewer.
...
osg::Camera* createHUD()
{
osg::Camera* camera = new osg::Camera;
camera->setProjectionMatrix(osg::Matrix::ortho2D(0,1280,0,1024));
camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF);
camera->setViewMatrix(osg::Matrix::identity());
camera->setClearMask(GL_DEPTH_BUFFER_BIT);
camera->setRenderOrder(osg::Camera::POST_RENDER);
camera->setAllowEventFocus(false);
osg::Node* axes = osgDB::readNodeFile("axes.osg");
camera->addChild(axes);
return camera;
}
The axes.osg model has a bounding volume that extends from approximately (0, 0,
0) to (1, 1, 1). With the transformation you've specified, the model will
subtend less that one pixel of screen space.
--
-Paul Martz Skew Matrix Software
http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org