POV-Ray : Newsgroups : povray.bugreports : Grayscale PNG read error in POV-Ray 3.5 : Re: Grayscale PNG read error in POV-Ray 3.5 Server Time
17 Jun 2024 03:26:34 EDT (-0400)
  Re: Grayscale PNG read error in POV-Ray 3.5  
From: Thorsten Froehlich
Date: 21 Apr 2003 09:24:12
Message: <3ea3f0fc$1@news.povray.org>
In article <3e91529e$1@news.povray.org> , "Ray Gardener" 
<ray### [at] daylongraphicscom> wrote:

> I am able to reliably reproduce a bug in POV-Ray 3.5
> which affects Win32 and probably on other platforms.
>
> Loaded imagemaps using grayscale PNG files
> of 4 bpp or less appear near-black.
>
> The bug is in the module png_pov.cpp,
> function Read_Png_Image(), near line 1550.
> The problem is that the colormap's RGB color
> channels are mapped directly to palette indices,
> which is okay for 8-bit files but not for
> lower bit depths, since the palette indices
> don't go all the way up to 255. e.g., A 4-bit file
> will have a maximum white color of rgb(15,15,15)
> instead of rgb(255,255,255).

Will be fixed in POV-Ray 3.51.

    Thorsten



____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.