[osg-users] Splitting a scene in osg

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Jun 30 02:31:50 PDT 2015

Hi Joe
> Hey sebastian, thank you for the fast reply :)
> Im kind of new to this.. Im using a built model and have no idea how it was constructed.
> Ive tried cloning the stateset but it seems it doesnt have one (but it does have texture, i can tell by loading the model and viewing it)
Then there must be a stateset somewhere ;-)
One option is to traverse the model's graph with a visitor (either 
traversing the root downwards until you encounter a state set with 
texture attributes) or upwards (finding parents with the appropriate 
More importantly you will have to copy the texture coordinates for the 
splits in order to have textures working for the splits. Take a look at 
the examples regarding the visitors and modifying/copying the 

> How can it be ?
> Thank you!
> Cheers,
> Joe
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64217#64217
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list