Anaglyph and NodeMask issue

42 views
Skip to first unread message

Tom Pollok

unread,
Apr 23, 2020, 2:41:31 PM4/23/20
to OpenSceneGraph Users
I use node mask to show or hide parts of the scene graph. When enabling stereo mode in osg, it seems to completely ignore the node mask. Is this expected behaviour?


osg::DisplaySettings::instance()->setStereoMode(osg::DisplaySettings::ANAGLYPHIC );
osg::DisplaySettings::instance()->setEyeSeparation( 0.055f );
osg::DisplaySettings::instance()->setStereo( true );

Robert Osfield

unread,
Apr 27, 2020, 2:19:27 AM4/27/20
to OpenSceneGraph Users


On Thursday, 23 April 2020 19:41:31 UTC+1, Tom Pollok wrote:
I use node mask to show or hide parts of the scene graph. When enabling stereo mode in osg, it seems to completely ignore the node mask. Is this expected behaviour?


Have a look at the osgstreoimage example to see how to control node masks when doing anayglyphic stereo.
 

Tom Pollok

unread,
Apr 28, 2020, 9:23:09 AM4/28/20
to OpenSceneGraph Users
Thanks. Do i understand it corrently that the semantics of nodemask is completely user specific. And in osg in stereo context 0x1 means left cam and 0x2 means right cam?

How can i define which parts of the mask are rendered with my camera? I tried to set the nodemask of my Camera, but it did not result in the expected behaviour.

Tom Pollok

unread,
Apr 29, 2020, 6:39:51 AM4/29/20
to OpenSceneGraph Users
Ah ok you controll it through CullMask. Thanks.
Reply all
Reply to author
Forward
0 new messages