<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div>Hi, Antoine,</div><div> I think changing the material of the geometry will be more efficient. Have a look at examples about osg::Material :)</div><br><br><br><br><div style="position:relative;zoom:1">--<br><div>Cheers, </div><div>TianZJ</div><div style="clear:both"></div></div><div id="divNeteaseMailCard"></div><br><pre><br>At 2017-09-06 00:31:11, "Antoine Rennuit" <antoinerennuit@hotmail.com> wrote:
>In order to achieve this I thought of using the BIND_OVERALL mode with 2 Vec3Arrays (one array for the white color and the other one for the blue color) and simply swapping arrays to change the color (with osg::Geometry::setColorArray()), and calling dirtyDisplayList() to update.
>
>Is this the most efficient way of changing the osg::Geometry color?
>Read this topic online here:
>http://forum.openscenegraph.org/viewtopic.php?p=71629#71629
</pre></div><br><br><span title="neteasefooter"><p> </p></span>