On Thu, Aug 28, 2008 at 3:29 PM, <[EMAIL PROTECTED]> wrote: > Hi all, > > I think there is a bug when we rescale an hdr image in a 16 bits texture : I > can see strange colors where values are greater than 1.0, but when we > rescale the hdr image with an other software, the image is fine. > > Is it a known bug ?
You don't mention where the scaling is coming in, is your image a non power of two and the image is automatically being rescaled by gluScaleImage (called from Texture2D::apply() via Image::scaleImage()) ? If so then it'll be gluScaleImage that is not coping with the pixel format. There isn't much we can do about this save for updating glu, or avoiding the scaling by making sure the source image is a power of two, or to take advantage of non power of two textures support in OGL 2.x and OSG (texture::setResizeNonPowerOfTwoHint(false)). Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

