Hi,

is the image coming from the GPU? If so, you can let OpenGL convert it for you on the way to CPU if you don't mind too much about transfer speed. Also, double check the image writing code if a certain format does not support BGRA.

jp

On 01/11/2011 02:40, Blake Mason wrote:
I have a osg::image with pixel format of GL_BGRA. I need to convert it
to GL_RGB so that I can write out any generic type of image with osgDB
(i.e., jpg, png, tiff, etc). Is there an easy way to convert the _data
in the image to be in some other format? I could obviously do this
myself with a simple loop, but I wanted to see if there was a simple OSG
way.

writeImageFile is still commented out in the osgscreencapture.cpp
example, and I wonder if it's a similar problem.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

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

Reply via email to