Hi J.P.,

Which version of OSG are you using? There has been a fix for
VBO in Rev. 9362 which fixed some problems we encountered.
But as you didn't attach the source I can't tell if this
fix applies to your problem.

Cheers,

Peter


J.P. Delport schrieb:
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.




------------------------------------------------------------------------


------------------------------------------------------------------------

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

--
Vorstand/Board of Management:
Dr. Bernd Finkbeiner, Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech
Vorsitzender des Aufsichtsrats/
Chairman of the Supervisory Board:
Michel Lepert
Sitz/Registered Office: Tuebingen
Registergericht/Registration Court: Stuttgart
Registernummer/Commercial Register No.: HRB 382196

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

Reply via email to