Hi, I'm newbie to OpenSceneGraph and I'm developing an application which supports 2D animations over quads. The idea is apply a texture over each quad, and update its texture coordinate array, using a cull callback.
MatrixTransform -> Billboard(CullCallbakc) -> DrawableQuad(texture) Since I want to animate a lot of quads (100?) with the same texture, I would like to share these textures, so that I have in video memory as less textures as possible. For this reason, I'm using the clone method on the root node of each object, but I don't think I'm having the results I am looking for, because the consumed video memory is the same. I have tried with different Copy Operations, but I have not found the appropriate one for sharing only textures and drawables. What I really want is to share the texture, the drawable, and the billboard, but NOT the cullcallback of the billboard, since the new object has to have its own. Which would be the best approach for sharing drawables and textures? Should I use the clone method? Should I use the optimizer instead? Should I implement my own clone method? Maybe the clone method just duplicates nodes and doesnt' share anything? Thank you! Cheers, Roberto ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36721#36721 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

