[osg-users] osg::Image::setImage problem

Evan Tsai evanyftsai at gmail.com
Fri Feb 17 18:38:12 PST 2017


Hi,

I've been using osg::Image::setImage to display gray scale bitmaps (x-rays) successfully.  Recently I received some image data which looks correct but shows up twisted in OSG (see attachment: Twisted.bmp).  I've verified that the pixel data is correct by dumping a .bmp file (see attachment: Correct.bmp).

I am wondering, why would this method works fine for most gray scale bitmaps but not for others?  Are there certain settings that could have caused such a problem?

Thank you!

Cheers,
Evan

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70239#70239




Attachments: 
http://forum.openscenegraph.org//files/correct_145.bmp
http://forum.openscenegraph.org//files/twisted_262.bmp





More information about the osg-users mailing list