Jason Daly wrote:
> 
> If you're familiar with OpenGL, osg::DrawArrays is equivalent to 
> glDrawArrays(), osg::DrawElements is equivalent to glDrawElements().   
> The first uses the vertex arrays directly, the second uses an index 
> array to select vertices from the vertex arrays.

Thank you.
I had it in my mind that glDrawElements() was very slow compared to ranges, and 
it was recommended that a large geode was broken down into a number of 
osg::DrawArrays

What about using 'out of order' osg::DrawElements to group points by location 
rather than in the vertex order, for easy point picking - is that a good idea?  


> Robert's  point is that repeatedly altering data and recompiling the display 
> list is expensive.  

Yes (but still better than using glBegin/glEnd ;-) - I will just be editing the 
points interactively so compared to the speed of the intersector this shouldn't 
be a problem.

thank you
Martin

_______________________________________________
osg-users mailing list

http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

 ------------------
Post generated by Mail2Forum[/quote]

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=22261#22261





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to