Re: [osg-users] imageio problems and possible solutions on loading some PNG images.

2009-11-27 Thread E. Wing
I'm betting you hit the same premultiplied alpha problem/limitation reported in SDL_image. http://bugzilla.libsdl.org/show_bug.cgi?id=868 The workaround/solution was to add a block of code at the end of the loader to un-premultiply the alpha (now in the codebase). If that is indeed the problem an

Re: [osg-users] imageio problems and possible solutions on loading some PNG images.

2009-11-26 Thread Tatsuhiro Nishioka
Hi Robert and Stephan, I can see the problem using osgviewer. The images I use are available from: http://cvs.flightgear.org/viewvc/data/Textures/Sky/ Here I list some images that show the problems: [Black Edges instead of transparency] broken_n.png: PNG image data, 256 x 256, 8-bit/color RGBA,

Re: [osg-users] imageio problems and possible solutions on loading some PNG images.

2009-11-26 Thread Stephan Maximilian Huber
Hi, Tatsuhiro Nishioka schrieb: > Another problem is that imageio's libpng doesn't properly handle transparency > in PNG file. The problem I have is that the transparency in PNG files are not > at all handled and we see a lot of unexpected black or dark portions. I > strongly recommend the use

Re: [osg-users] imageio problems and possible solutions on loading some PNG images.

2009-11-26 Thread Robert Osfield
HI Tat, I don't have a OSX system to test against personally, but for those who do have OSX and wish to help investigate this bug with the imageio plugin it would be worth putting together a small set of test images that you see problems so that they can reproduce the problem themselves. Also if

[osg-users] imageio problems and possible solutions on loading some PNG images.

2009-11-26 Thread Tatsuhiro Nishioka
Hi there, I have two problems in drawing PNG image using imageio on Mac OS X. One problem is that 16-bit grayscale textures (PNG images) cannot be loaded due to the following errors: : CGBitmapContextCreate: unsupported parameter combination: 8 integer bits/component; 16 bits/pixel; 1-componen