Re: [osg-users] Can I have instances (vs. clones) with different colors?

2012-04-30 Thread Robert Osfield
Hi Preet, To override colours you can decorate your shared subgraphs with an osg::StateSet with an osg::Material attached that sets the colour required. This will use OpenGL colour material functionality so I'd recommend reading up on OpenGL docs for glMaterial and glColorMaterial to understand

[osg-users] Can I have instances (vs. clones) with different colors?

2012-04-06 Thread Preet
Hey all, My scene makes use of a *lot* of repeating geometry. The geometry is either simple primitives (sphere, pyramids, etc) or osgText::Text. These objects are duplicated many times and are scaled/rotated/translated all over the scene. The objects need to have differing colors and transforms,