Hi, I use osg for the first time to create a low level visualization to show the position of tracked objects in a 3D world.
To make it memory efficient I created a tree structure with multiple transformation matrices which are all pointing to the same Geode, which contains the ShapeDrawables representing my object. I thought this makes sense, as I can get multiple instances of the objects at different positions. So far this works very well for me. But now, I want to extend this by showing every object in an other color, (currently I set the color via the setColor(..)-Function of the ShapeDrawable, so all instances of the object have the same color). Is there a node type which I could add e.g. after the transformation matrix and before pointing to the drawable, so I can change the color of the object. For illustration, this is what my tree structure looks like: root -> MatrixTransform1 -> GEODE -> ShapeDrawable1 (setShape() & setColor) root -> MatrixTransform1 -> GEODE -> ShapeDrawable2 (setShape() & setColor) root -> MatrixTransform2 -> GEODE -> ShapeDrawable1 (setShape() & setColor) root -> MatrixTransform2 -> GEODE -> ShapeDrawable2 (setShape() & setColor) ... I already googled and searched the forum but couldn't find anything related to this. Thank you! Cheers, Frie ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60547#60547 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

