Hi Dimim

On Thu, May 26, 2011 at 10:51 AM, dimi christop <dimi_chris...@yahoo.com> wrote:
> I attach the modified src file were the copying takes place in a for loop and
> does not invalidate the other arrays.

Thanks.

> How can all arrays share a VBO you mean, that all the arrays (vertex, normal,
> texcoords, colos and so on)
> are combined into a large array which is then assigned to the VBO. And 
> therefore
> strides are used for rendering?

When you enable use of VBO's on the whole osg::Geometry the class will create a
single VBO for all the arrays, and single EBO for all the DrawElement
primitive sets.
Alternatively you can assign your own VBO's to the arrays, and either
have each array
with it's own VBO or have multiple arrays sharing the same VBO.

>From the looks of the problems in your usage case it looks like the
mix and marching
of VBO's and arrays is problematic right now.

Robert.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to