Hi Peter,

thanks for looking into this.

Peter Hrenka wrote:
First you must call dirty() on vertices_
and normals_ (otherwise the VBO will not
be updated at all).

Will do this too. I'll have to do some more reading on VBOs, because I'm not sure if there is a VBO per geometry, one per vertex/normal array or one for the combination.

<OT>
Documentation ToDo

What I'm also getting at is that it is very difficult to understand at what level in OSG to call dirty(). I have the same problem with knowing where to set the DataVariance options.
</OT>


But there is still a bug in the update of the VBO.
Context 0 changes the _totalSize member of the
VertexBuffer object and context 1 assumes its
size is already changed...

I have fix using glGetBufferParameteriv which
I am preparing for submission.

Thanks again.

rgds
jp


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to