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
stateset).
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
uv-coordinates.
Cheers
Sebastian
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
[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