POV-Ray : Newsgroups : povray.general : Grayscale PNG read error in POV-Ray 3.5 : Re: Grayscale PNG read error in POV-Ray 3.5 Server Time
4 Aug 2024 14:27:07 EDT (-0400)
  Re: Grayscale PNG read error in POV-Ray 3.5  
From: Warp
Date: 4 Apr 2003 21:02:25
Message: <3e8e3931@news.povray.org>
Ray Gardener <ray### [at] daylongraphicscom> wrote:
>       cmap[index].Red =
>       cmap[index].Green =
>       cmap[index].Blue = index;

> should read

>       cmap[index].Red =
>       cmap[index].Green =
>       cmap[index].Blue = index * 255 / (cmap_len - 1);

  This looks like a genuine bug, indeed.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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