[osg-users] ViewerBase::frame() method slow after changing the color of a geometry

Lionel Lagarde lionel.lagarde at oktal-se.fr
Fri Jul 21 03:58:15 PDT 2017


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 at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



More information about the osg-users mailing list