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

Robert Osfield robert.osfield at gmail.com
Sat Feb 18 02:04:41 PST 2017


Hi Evan,

This type of problem would either be down to the texture coordinates
being set up wrong or the reading of the image file being broken in
some way.  You don't provide any additionally details beyond the
output results so there isn't any way for us to say which one is most
likely.

Could you provide the source data and guidance on how to reproduce the issue?

I.e. osgviewer --image good.bmp
      osgviewer --image bad.gmp

Also provide details on which OSG version, platform, hardware you are
working on as there may be chance that these could have an impact on
the issue.  It can be useful to check github's history for source
files to see if any commits describe addressing an issue similar to
what you see.  I.e. look at the bmp plugin source.

Another tack you can take is to try converting your problem source
data to another file format to see if the new file format works.  Also
try loading the problem files in a range of other image rendering
tools to see if they all work fine.

Robert.


On 18 February 2017 at 02:38, Evan Tsai <evanyftsai at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



More information about the osg-users mailing list