If you use display lists, you have to tell OSG that it has to re-build it.
If you use vertex arrays, colors->dirty() should be enough. On 21/07/2017 12:32, Gianni Ambrosio wrote:
Thanks Lionel and Robert for the quick reply. I tried what Lionel suggested but in fact the geometry generation is much more slow now. Anyway, since I suspected that "dirtyDisplayList()" is the cause of the delay, I tried to remove that line but without it I cannot see the new color. Now, is "dirtyDisplayList()" really required for what I need or is there a different call should I use just to see the triangle with the updated color? Thanks, Gianni ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=71298#71298 _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org