> ----- > From: J.P. Delport > Sent: Wednesday, May 21, 2008 9:51 PM > > I've not been following the discussion in detail, have only a single > comment below... > > > The code: > > > >>> cv.setTraversalMask( traversalMask & > >>> getShadowedScene()->getCastsShadowTraversalMask() ); > > > > Using a binary 'and' here only produces a non-zero result if the view > mask and the osgshadow mask are overlapping. In other words, the > statement above fails as soon as the view mask is changed from 0xffffffff > to something else. > > You will get resulting non-zero bits for _any_ bits that match in the > two input masks. I.e. as long as the traversalMask contains the same > pattern as getCastsShadowTraversalMask().
Yes, but only in the case where the traversalMask contains the same pattern as getCastsShadowTraversalMask. As you can see in the example case i presented, this is not the case. Nor should it be the case, because if they have bits in common, then there is a conflict. -Ben _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org