I am trying to acheive an effect whereby some geometry in a scene is rendered after and in front of everything else. What I want to be able to do is show an osgManipulator::Dragger node attached to an object in a scene, but show it infront of everything, I guess a bit like a HUD, but where only the Dragger is rendered on the HUD. For anyone that has used Maya, the effect I want is similar to the translation/rotation/scaling manipulators, i.e. where they can be used and seen regardless of what objects that would normally be obscuring them.
What's the best way to implement that?
The most obvious way seemed to me to create a HUD style postrender camera to render the manipulator on top of the normally rendered scene. But I'm not 100% sure how to get it to only render the manipulator in the scene. Do I need to use nodemasks, or do I need to move the manipulator into an empty HUD scene along with its local to world transform? Neither method seemed very elegant to me, so just wondering if anyone's got a better idea. Chris D.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to