osgcal's shader is overriding yours. Brian
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. • [email protected] wrote: ----- To: "[email protected]" <[email protected]> From: Ben Cain <[email protected]> Sent by: [email protected] Date: 02/18/2009 02:42PM Subject: [osg-users] osgCal shader question Hello, Do you know why a shader might not be affecting osgCal nodes? I apply a black-and-white shader to the scene root, but it isn’t affecting the CAL3D characters. Everything else is fine. scene->getOrCreateStateSet()->setAttributeAndModes(prog.get(), osg::StateAttribute::ON); Does osgCal has its own shader? If so, it will override the one that I’m applying at the scene root. What are my options? Thanks, Ben _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

