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
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,
2 matches
Mail list logo