Hi,

I am trying to render the scene to an image without opening any windows. After 
doing a lot of searching and looking thru source code of OSG classes, I still 
get a completely white image.

In many places people say one should use the same code as there is in 
osgscreencapture which renders to a pbuffer is --pbuffer-only option is passed.

But the fact is that osgscreencapture doesn't work itself! 

osgscreencapture.exe axes.osg --pbuffer-only 640 480 

must produce an image without opening any windows.

When running this on my laptop (WindowsXP home) i get the following error 
message:
PixelBufferWin32::init(), Error: Couldn't find a suitable pixel format
Pixel buffer has not been created successfully.
Windows Error #2000: Win32WindowingSystem::OpenGLContext() - Unable to restore 
current OpenGL rendering context. Reason: Pixel format is invalid.

after that the axes.osg file is just opened in a full-screen viwer window, no 
image file is created.


When running this on my Desktop PC (WindowsXP Pro) i get the following error 
message:
Pixel buffer has been created successfully.
PixelBufferWin32::makeCurrentImplementation, wglMakeCurrent error: Die 
angeforderte Ressource wird bereits verwendet. (The requested resource is 
already being used)

Error: OpenGL version test failed, requires valid graphics context.
After that the program crashes and attempt to open Visual Studio debugger.

On both machines OSG is correctly installed, e.g. i can easily open the osg 
files in viewer by double clicking.

Do I at least call the osgscreenviewer correctly?


... 

Thank you!

Cheers,
Igor

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to