Re: [osg-users] Changing vertex color without calling setColorArray

2011-10-10 Thread Dan West
Thanks, that makes sense. I'll give those a shot. I'm also having another issue that's proving to be more annoying now. It seems to be the same as the problems in this thread: http://forum.openscenegraph.org/viewtopic.php?t=401 Thanks for the help. I'm going to make a new post as this is a

[osg-users] Changing vertex color without calling setColorArray

2011-10-07 Thread Dan West
Hi All, I'm currently trying to update the colors on a geometry by changing the values in the color array, but this has no effect until I call setColorArray. Is it always necessary to call setColorArray for the changes to be picked up, or is there some other way I can change the vertex

Re: [osg-users] Changing vertex color without calling setColorArray

2011-10-07 Thread Jean-Sébastien Guay
Hello Dan, The main problem with calling setColorArray to update the vertex colors is that it visibly slows the framerate. Is there any way around completely resetting the color array on the geometry every frame (update)? Calling setColorArray() calls dirtyDisplayList(), which is what is