[osg-users] issue about getting the material properties from the current state in rendering info

Jannik Heller scrawl at baseoftrash.de
Tue Jun 23 12:08:31 PDT 2015


Hi Gianluca,


> The _attributeMap actually contains as MATERIAL attribute exactly the pointer to the osg::Material property that I created. 
> But in the attribute stack it appears as the ‘last_applied_attribute’, and ‘changed’ is set to true. 
> For all other attributes the pointers stored in ‘last_applied_attribute’ are correct as well, but ‘changed’ is set to false. 


try calling osg::State::apply() to apply changed state that hasn't been applied yet.

Cheers,
Jannik

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=64177#64177








More information about the osg-users mailing list