Hi Matt, The osghud example should be a better starting point for you.
Mourad On Tue, Nov 9, 2010 at 8:34 PM, Matt Caron <[email protected]> wrote: > I found a solution for this task using a HUD: > > > http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/HudsAndText > > Although I do still have an issue. I am using the Cessna.osg model in the > HUD but when I do > > > Code: > > myPlaneTrans->setStateSet(hudStateSet); > hudStateSet->setMode(GL_DEPTH_TEST, osg::StateAttribute::OFF); > > > > > many of the triangles in the Cessna model are not rendered, or are rendered > black. Unfortunately if I don't use that setMode() method, the Cessna > sometimes appears behind other objects - so it seems I really need > GL_DEPTH_TEST off, but I don't know why the Cessna mesh is being rendered > incorrectly. > > Thanks. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=33637#33637 > > > > > > _______________________________________________ > 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

