Greetings all,

I've been learning PBOs here lately, and I can't seem to find any tutorials 
about how to use OSG::PixelBufferObjects.  If anyone can point me in the 
direction of one, that would be awesome, as I wouldn't have to mix OGL and OSG 
code quite as much as I'm doing now.

Right now what I'm doing is trying to copy back the frame buffer to a PBO each 
frame, but I can't get glGenBuffers to return a valid buffer ID.  I've tried 
passing in a single int or an array, but all I get back are 0's.  (In a strict 
GLUT/GL project, I get 1,2,3..)

I've made sure (as much as I can) that I have a context..  I've created a 
graphicscontext, a window exists, I've called viewer.realize(), even tried one 
viewer.frame() before glGenBuffers.  All I can get back are 0's.  So naturally 
when I try to bindbuffer / readpixels / mapbuffer, I just get back a null 
pointer because my bufferID is zero.

Can anyone suggest a reason this might be happening?  (Even if you can point me 
to a good OSG tutorial on using OSG::PixelBufferObjects, I'd still be curious 
to know.)

Thanks in advance for any guidance anyone can offer..

Kris

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=39979#39979





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

Reply via email to