Vincent Bourdier wrote:
Hello,

You should try just adding a material on each PAT.
If I'm right, material will overpass the color of the geode... If anyone can confirm :-[

That will work if lighting is on. If lighting is off, set a BlendColor at each PAT and then configure blending on the Drawable to reference the blend color.

Le 07/04/2010 11:33, Benjamin GODIN a écrit :
Hello,

I have a scene with one object but represented many times.
My graph is something like that :
[Image: http://img576.imageshack.us/img576/1522/osg.png ]

I want to give different colors to the different objects. The method I've found is setColor on a ShapeDrawable but that means I need to create many instances of this object.

Is there any way I can add the color in the scene graph (as a node)?

Thanks. :)[/img]


--
  -Paul Martz      Skew Matrix Software
                   http://www.skew-matrix.com/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to