[osg-users] what should I dirty when I change ColorArray on the fly?
Claudio Benghi
claudio.benghi at gmail.com
Mon Oct 14 16:10:56 PDT 2019
Hi again,
I think I've solved my issue.
I've worked out that BufferObject::dirty() does not yield a result because _glBufferObjects[i].valid() is false. This is probably because I was not using VBOs on those geometries. If I create the geometry with setUseVertexBufferObjects(true) the code works.
Otherwise I've found that curGeom.dirtyDisplayList(); updates the geometry if setUseVertexBufferObjects() is not invoked.
Just writing it here in case it helps somebody else.
Thank you!
Cheers,
Claudio
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=76830#76830
More information about the osg-users
mailing list