Hi folks.

I am currently rewriting my application from osg 1.2
to the current one from svn. The node masks do not do
that what they have done before. For example, I have
an offscreencamera which mask is set to 4 (so 0b0100)
some of the connected nodes does have a mask of 1 but
they are visible through the offscreen camera. Setting
the camera not to inherit mask settings, makes the
node disappear in the offscreen camera but also in the
main camera, which has a full mask 0xFFFFFFFF.

I have already found the responsible part of the code
in osgUtil/CullVisitor.cpp (::apply(osg::Camera), from
line 1130 and 1270). Changing the correspionding line
in something like

if (..) setTraversalMask(camera.getCullMask());
handle_cull....
if (..) setTraversalMask(saved_mask);

like in the osg v1.2 helps, but has some strange
behaviour for other nodes. I think there is also
another changes done somewhere.

Does anybody encounter same problems with node masks?

MfG, Art








      __________________________________
Machen Sie Yahoo! zu Ihrer Startseite. Los geht's: 
http://de.yahoo.com/set
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to