[osg-users] setColorArray is slow on large model

2012-09-25 Thread Tina Guo
Hi, I am trying to change the color of a geometry after I pick it. I use display list, however, when call setColorArray, it takes time to really change the color. I read this post http://forum.openscenegraph.org/viewtopic.php?t=9234 , and setUseDisplayList(false). However, after that, the

Re: [osg-users] setColorArray is slow on large model

2012-09-25 Thread Robert Osfield
Hi Tina, Setting the colour array on an osg::Geometry should be quick and shouldn't normally make rendering slow. The fact you are finding this suggests that perhaps you are setting up osg::Geometry to render with OpenGL slow paths so as using indices arrays or per primitive bindings - these are