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
5 Nov 2024 13:25:54 EST (-0500)
  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.