[osg-users] [About VertexArrayObject Branch] FeedBack and Insight
wang dexing
wangdexingit at gmail.com
Mon Aug 15 00:56:59 PDT 2016
Hi,
I'm glad that osg's VAO edition is in hand.
I'm intersted in opengl and osg,I once tried to add 'vao' and 'instance draw' functions to osg because I had many same models and texts to draw and I didn't want to give up osg's 'cull' fuction.
It took me much time thinking about where I should use 'vao'. In order to support 'instance draw',I used 'vao' in 'RenderLeaf', I calculated 'instance data' from 'Transform' node and other 'instance node',then put 'instance arrays' in 'currentstategraph'.I bind vbos in drawables and vbos of 'instance arrarys' to the 'vao' when renderring(first draw).what do you think of my way?
BTW,how can I join you?
Thank you!
Cheers,
wang
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68372#68372
More information about the osg-users
mailing list