Hi Jim,
I've been bit by this one. It seems that osgDB::writeImageFile does not
correctly support images with pixelFormat = GL_RGBA for JPEG files.
I think you'll find that changing to GL_RGB will get you a good file.
-Don Leich
Trying to save an osg::Image as a .jpg file malfunctions.
On Thu, Feb 11, 2010 at 5:12 PM, Don Leich d...@ilight.com wrote:
Hi Jim,
I've been bit by this one. It seems that osgDB::writeImageFile does not
correctly support images with pixelFormat = GL_RGBA for JPEG files.
I think you'll find that changing to GL_RGB will get you a good file.
On 2/11/2010 10:12 AM, Don Leich wrote:
Hi Jim,
I've been bit by this one. It seems that osgDB::writeImageFile does not
correctly support images with pixelFormat = GL_RGBA for JPEG files.
I think you'll find that changing to GL_RGB will get you a good file.
It might be good to put a
Trying to save an osg::Image as a .jpg file malfunctions.
Either false is returned or .jpg file has weird colors.
But .png format works ok.
osg::ref_ptrosg::Image image = mTextureObject-getImage();
//osgDB::writeImageFile( *image, file.jpg );
osgDB::writeImageFile( *image, file.png );
Tried OSG
On 2/9/2010 5:35 PM, Jim Brooks wrote:
Trying to save an osg::Image as a .jpg file malfunctions.
Either false is returned or .jpg file has weird colors.
But .png format works ok.
Is it an odd bit depth?
--
Chris 'Xenon' Hanson, omo sanza lettere Xenon AlphaPixel.com
5 matches
Mail list logo