[osg-users] Splitting a scene in osg

Sebastian Messerschmidt sebastian.messerschmidt at gmx.de
Mon Jun 29 03:21:26 PDT 2015

Hi Joe,
> Hi,
> Thanks all for the help, i succeded writing a function which splits the geometry :)
Nice to hear that
> So now im in other issue.. The original model has texture. When i split the geometries i want to keep the texture for each part (every new geode of part of the model will include the right texture part)
> Anyone has idea how to approach that ?
Simply clone the textures associated with the state set and clone the 
texture coordinates of the geometry too. You could later optimize by 
checking which texture/texture part is indeed used, but I guess that 
would be overkill.

> Thank you!
> Cheers,
> Joe
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64206#64206
> _______________________________________________
> 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