[osg-users] Splitting a scene in osg

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Tue Jun 30 08:05:21 PDT 2015


Am 30.06.2015 14:49, schrieb Joe Kindle:
> Thanks sebastian
> :)
>
> So I have done the following :
> Copied the texture cordinates of the original model (the big one) by using 'geometry->getTexCoordArray(0)'.
> I applied that same coordarray into one of the small models. (And cloned the whole stateset from the original model into the small part)
> The ending reault was the small part with texture, but positioned all wrong
> Whys that ?
Maybe there is a texture matrix in a stateset above. I think you will 
have to copy all texture related states ..
Can you provide the original file or the exported osgt?
>
> Btw, you said something about examples. Where can i find them ?
> Again sorry for the newbie questions, and thank you alot for the kind help :)
If you are using the source they can be found in the examples folder. If 
you are using a pre-built package simply check out the appropriate 
tag/version from either SVN or git.
Sorry my internet access is very limited, so I cannot provide the URLs, 
but I believe in your cleverness :-)
Cheers
Sebastian
>
> Thank you!
>
> Cheers,
> Joe
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64223#64223
>
>
>
>
>
> _______________________________________________
> 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