[osg-users] Changing statesets at runtime
Mike Bralkowski
mbaran at dignitastechnologies.com
Fri Jan 4 11:21:15 PST 2019
I'm trying to swap back and forth between two statesets on a geode, but don't think I'm approaching this correctly. When I create a geode I set the user data as a struct which contains two statesets, and then use a NodeVisitor to toggle the statesets via geode.setStateSet. When calling my node visitor, I see the setStateSet call happen but the geometry ends up white. I'm not sure if this is due to not calling some dirty() method, or do I need to use a different method for swapping statesets due to some race condition?
Thanks,
Mike
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75385#75385
More information about the osg-users
mailing list