Hi Antoine,

I'd recommend just using the vertex attribute arrays in osg::Geometry
to setup multiple sets of vertex data.

I'd also strongly recommend against using independent index arrays for
vertex attribute array as this forces the osg::Geometry rendering code
to drop down to OpenGLslows paths for dispatching the data, as OpenGL
itself doesn't support independent indexing of vertex arrays.

Robert.

On 11/8/06, Antoine Rennuit <[EMAIL PROTECTED]> wrote:
Hello,


It seems possible to have two sets of colors for geometries with
setColorArray and setSecondaryColorArray and swap between them when needed.
I would like to use this feature to have a normal color for the wireframe of
the mesh I display and another color when selected, but I don't understand
how to swap between both color arrays (I assume it has to do with
AttributeTypes but how?). And if I use secondary colors, must I also define
secondary color bindings, color indices.

Moreover, if I wanted to have a third color (or more) to hightlight other
modes, anybody knows how I could change the color of my mesh during runtime?


Thanks,


Antoine.

PS ; sorry if you received this mail twice, seems I have a pb with my
mails...


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to