-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Steven Powers wrote:
| I am having problems with CullMasks using OSG 2.X.
|
|
|
| I have a CameraNode that I set the CullMask as setCallMask(0x10) and a
| node that I set as setNodeMask(0x1).
|
Actually you have a Camera, as CameraNode is a typedef for that in 2.x
|
|
| My understanding is that a node is evaluated like:
|
|
|
| CullMask & NodeMask
|
|
|
|  If the result is true it will traverse the node. This is not happening
| for me. Unless I set the Node with setNodeMask(0) the node is traversed
| and rendered.
|
...
| Is there something in my technique that is wrong or am I missing a
| function call somewhere.

In order for this to work your camera can't inherit the cull mask. You can do 
something
like
camera->setInheritanceMask(CullSettings::ALL_VARIABLES & 
~CullSettings::CULL_MASK);

Tim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHi+KueDhWHdXrDRURAjhmAKCBhd4GoNdqKZz8Qb7KVZA6XQQ61ACeJKzy
1xO3cld6G1XTw+b4N33j1iY=
=ON6i
-----END PGP SIGNATURE-----
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to