Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Don Leich
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.

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Robert Osfield
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.

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-11 Thread Chris 'Xenon' Hanson
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

[osg-users] osgDB::writeImageFile() jpg vs png

2010-02-09 Thread Jim Brooks
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

Re: [osg-users] osgDB::writeImageFile() jpg vs png

2010-02-09 Thread Chris 'Xenon' Hanson
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