Hi Judie -- If you have some subgraph (maybe a single Geode or something
more complex) that needs to have the color buffer masked off, just add a
ColorMask to the StateSet of the subgraph's parent node. Something like
this:
node->getOrCreateStateSet()->setAttributeAndModes(
new osg::ColorMask( false, false, false, false ) );
Take a look at the example code to see how other StateAttributes get set.
-Paul
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Judie
Stanley
Sent: Thursday, April 10, 2008 1:13 PM
To: [email protected]
Subject: [osg-users] Can I disable color buffer writes before a certain
nodeand enable it after?
Hi,
Can I do this?
I want to insert a state node in the scene graph before and after a certain
node (that has geometry) that will disable color buffer writes and then
enable them.
flow like this:
start->disable color buffer writes -> draw node ->enable color buffer writes
-> draw next node
Is this possible?
Thanks,
Judie
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org