Hi,
I am new to OSG but experienced in OpenGL
I need to implement some OpenGL code with OSG.
I am using VBOs to render new sets of 3D points (~1 million / frame)
inside every glutDisplayFunc callback.
I have studied the examples and found
osgviewerGLUT is a good starting point
but I cant seem to find all the right pieces to accomplish the same in OSG.
The following example code will render points inside glutDisplayFunc callback.
Can this be reproduced with OSG ?
glEnableClientState(GL_VERTEX_ARRAY);
glBindBuffer(GL_ARRAY_BUFFER, pvbo);
glVertexPointer(3, GL_FLOAT, 0, 0);
float *buffer = captureBuffer();
glBufferData(GL_ARRAY_BUFFER, buffer_size,
buffer,
GL_DYNAMIC_DRAW);
releaseBuffer();
glDrawArrays(GL_POINTS, 0, num_points);
glBindBuffer(GL_ARRAY_BUFFER_ARB, 0);
glDisableClientState(GL_VERTEX_ARRAY);
Thank you!
Cheers,
g
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=42929#42929
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org