stefan nortd
2009-09-03 12:04:38 UTC
Hi,
I have been doing some image stuff lately. JPEGs and PNGs load right but
BMPs are upside down. Is this a feature or a bug?
At the moment I am doing this for remedy:
Code:
osg::Image* image = osgDB::readImageFile(filename);
if(filename.substr(filename.length()-3) == "bmp") {
image->flipVertical();
}
Just thought I share this.
Thank you!
Cheers,
stefan
------------------------
stefan hechenberger
http://linear.nortd.com
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16993#16993
I have been doing some image stuff lately. JPEGs and PNGs load right but
BMPs are upside down. Is this a feature or a bug?
At the moment I am doing this for remedy:
Code:
osg::Image* image = osgDB::readImageFile(filename);
if(filename.substr(filename.length()-3) == "bmp") {
image->flipVertical();
}
Just thought I share this.
Thank you!
Cheers,
stefan
------------------------
stefan hechenberger
http://linear.nortd.com
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16993#16993