Hi,
it worked just fine.
I guessed so, because I noticed the dirty method not on the geometry but
on the vertex array autocomplete,
I was asking because sometimes the documentation has only the code
listing and not an actual explanation.
I guess I could have tried it, but it was also to confirm that I was
doing the right thing.
Thank you =)
Jean-Sébastien Guay wrote:
Hi Paulo,
What am I doing wrong? Do I need to call some method to flag that the
array changed?
Yep, good intuition: _geometry->dirty();
Also, since you're changing the vertices each frame, set
_geometry->setUseDisplayList(false); or otherwise you'll get bad
performance.
Hope this helps,
J-S
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org