Hi all,

I'm having a problem updating Vertex Buffer Objects (VBOs) after creation. If I create geometry and use display lists everything is OK, but if I switch to VBOs I get strange results (looks like corrupted/missing data on the GPU).

Attached is an example (modified osgcompositeviewer) that shows the issue. At first I need to determine if the same problem exists for other people. To test run e.g.

./test -s -d

This uses display lists and should show what is expected. Press "space" in one of the windows to see that the spiral is growing.

What I have issues with is

./test -s -v

This switches to VBOs and initially the points I added before the first frame is shown correctly, but in my case if 'n press space the added spiral geometry is not shown. If one zooms in one can still see the original geometry though. The fact that one has to zoom shows that the bounding box of the geometry is updated correctly, but the vertices seem to go nowhere.

Attached a screenshot of one window showing corrupted data.

Any ideas/suggestions? Am I doing something silly?

regards
jp

PS. If one uncomments the line
//geometry_->getOrCreateVertexBufferObject()->dirty();
it seems that one of the views are updated OK when using VBOs, but not the other.



--
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.

<<inline: corrupted_spiral.png>>

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

Reply via email to