Hi everybody:
I am trying to capture images to disk, using the WindowCaptureCallback
of the example osgscreencapture, but I became locked in the
osgDB::writeImageFile (callback is called, I hope it creates an image
from readPixels). But I always get 0KB test_1.jpg file.
The error output of the operation is:
Error writing file test_1.jpg: Warning: Error in writing to "test_1.jpg".
Error writing file test_1.jpg: Warning: Could not find plugin to write
image to file "test_1.jpg".
And I don't understand it. "osgdb_jpeg.dll" is in a directory in the
PATH, I've also copied there jpeg62.dll in case it's needed. The oddest
thing is that if I do:
osg::Image* img = osgDB::readImageFile("captura I.JPG");
osgDB::writeImageFile(*img, "captura_copy.jpg");
in other places (i.e. after creating the CompositeViewer, before realize
it), it loads the image and stores it again.
But writeImageFile fails in
WindowCaptureCallback::contextData::readPixels. Any idea of what's
happening? May that warning log be spawned if the image is badly captured?
Sorry for the probably obvious question, but it's been two days since
I'm trying to solve the riddle.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org