[Osg-submissions] TIFF plugin incorrectly reads colormapped TIFF files

Ralph Kern usenet04 at rk-se.de
Mon Jul 23 02:46:30 PDT 2007


hi,

the attached color mapped TIFF file klink1_l.tif is incorrectly read as
GL_LUMINANCE data instead of GL_RGB data. You can easily check with
"osgViewer --image klink1_l.tif".

The bug is in ReaderWriterTIFF.cpp function simage_tiff_load, where
numComponents_ret is incorrectly set to 1 instead of 3 for color mapped
data. I included a patch against latest release version OSG 2.0
(2007/06/15).

regards Ralph
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tiffbug.zip
Type: application/x-zip-compressed
Size: 9330 bytes
Desc: not available
Url : http://lists.openscenegraph.org/private.cgi/osg-submissions-openscenegraph.org/attachments/20070723/d12fe482/attachment.bin 


More information about the osg-submissions mailing list