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,
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
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
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
4 matches
Mail list logo