Hi, Antoine, I think changing the material of the geometry will be more efficient. Have a look at examples about osg::Material :)
-- Cheers, TianZJ At 2017-09-06 00:31:11, "Antoine Rennuit" <[email protected]> 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
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

