Re: [osg-users] dynamic vertex array howto

2009-02-28 Thread Jean-Sébastien Guay
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,

Re: [osg-users] dynamic vertex array howto

2009-02-28 Thread Paulo Jnkml
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

Re: [osg-users] dynamic vertex array howto

2009-02-28 Thread Steven Saunderson
Skylark wrote: 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. Thanks for the tip about the futility of a display list in this case. I have a sky dome that

Re: [osg-users] dynamic vertex array howto

2009-02-28 Thread Jean-Sébastien Guay
Hi Steven, Thanks for the tip about the futility of a display list in this case. I have a sky dome that follows the camera so your comment has helped me. But I can't find any reference to a dirty function. Do you mean dirtyBounds (which I do use) or am I missing something ? There is