POV-Ray : Newsgroups : povray.windows : rgb <x,yz> Color Tool : Re: rgb <x,yz> Color Tool Server Time
28 Jul 2024 06:21:58 EDT (-0400)
  Re: rgb <x,yz> Color Tool  
From: Ron Parker
Date: 22 Nov 1999 08:37:20
Message: <38394710@news.povray.org>
On Sat, 20 Nov 1999 14:44:53 GMT, Andreas Gerdes wrote:
>On Sat, 20 Nov 1999 01:49:08 -0500, Phil Clute <pcl### [at] tiacnet>
>wrote:
>
>>This little program is so cool I had to put it in my tools menu.
>>
>:-)
>
>>I do have a question though. I noticed that white is 
>>rgb <0.99609, 0.99609, 0.99609> why isn't it rgb<1, 1, 1>?
>
>To cite Jon A. Cruz
>>>"Because 255 / 255 = 1, whereas 255/256 = 0.99609375"
>
>I have to devide by 256, else all other values would get false,

I don't understand this statement.  Do you mean that for example
128 would come out as 128/255=.50196 instead of .5?  That happens
to be correct.  In fact, I'd wager that if you render a scene with
a solid pure-ambient .5 background and no gamma correction, you 
should get pixels with the value 127, because POV will round down.
You should divide by 255, if for no other reason than because POV
multiplies by 255 (assuming you're outputting 8 bits per channel).

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

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