HI Rodrigo,

I don't what settings your used, or the hardware/drivers you are using
so can't pinpoint what the problem might be.  If you run
osgscreencapture with --pbuffer-only you get the warning:

$ osgscreencapture cow.osg --pbuffer-only
osgscreencapture: argument to `--pbuffer-only` is missing
osgscreencapture: unrecognized option --pbuffer-only

If passing the dimensions of the pbuffer that I want then the context
is created correctly and I get:

$ osgscreencapture cow.osg --pbuffer-only 800 600
Pixel buffer has been created successfully.
Select GL_BGRA read back format
Window size 800, 600
Reading window usig glReadPixels, with a double buffer PixelBufferObject.
Allocating image
Generating pbo 0
Generating pbo 2
fps = 781.47, full frame copy = 1.1221ms rate = 427.76 Mpixel/sec,
1631.8 Mb/sec time for memcpy = 1.0351ms  memcpy speed = 1768.9 Mb/sec
fps = 785.5, full frame copy = 1.1413ms rate = 420.56 Mpixel/sec,
1604.3 Mb/sec time for memcpy = 1.0781ms  memcpy speed = 1698.4 Mb/sec
fps = 798.31, full frame copy = 1.1243ms rate = 426.94 Mpixel/sec,
1628.6 Mb/sec time for memcpy = 1.0967ms  memcpy speed = 1669.6 Mb/sec
fps = 798.45, full frame copy = 1.1235ms rate = 427.24 Mpixel/sec,
1629.8 Mb/sec time for memcpy = 1.0959ms  memcpy speed = 1670.9 Mb/sec


> 2) Independent of the previous issue, if I run the application in a
> console (out of  X) I get the following error
>
> Error: Unable to open display ":0.0".
>  GraphicsWindow has not been created successfully.
> Error: Unable to open display ":0.0".
> std::exception was raised:  ColladaRenderer::ColladaRenderer failed to
> create the pixel buffer
>
> so it seems that the viewer still tries to create the GraphicsWindow.
>
> Where in the code can I check if the viewer will try to create a
> GraphicsWindow ?
> What do you think I am doing wrong ?

Pbuffer still use GLX so you'll need X11 to be able to create a
Pbuffer, you just won't need an actual window.

Am I reading you correctly that you are trying to run without any X
server running?  If so then you'll need to create your GL context
yourself another method if one is supported by your drivers.

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

Reply via email to