Hi, I am trying to access the material stored in a stateset. Is this possible?
My approach is below- the first line returns a null pointer. Code: osg::StateAttribute* sa = myGeode.getOrCreateStateSet()->getAttribute(osg::StateAttribute::MATERIAL); osg::Material* mat = dynamic_cast<osg::Material*>(sa); Thank you! Cheers, ethan ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=38337#38337 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org