POV-Ray : Newsgroups : povray.binaries.images : Re: Color question : Re: Color question Server Time
17 Aug 2024 06:20:59 EDT (-0400)
  Re: Color question  
From: Marc-Hendrik Bremer
Date: 25 Nov 2001 06:15:01
Message: <3c00d2b5@news.povray.org>
bob h schrieb in Nachricht <3c00c089@news.povray.org>...

>What you've said is essentially that a <red,green,blue,filter,transmit> is
>omnipresent regardless of choosing to use rgb alone.  Again, I can see that
>being likely once using the 5 floats vector afterward but they are set to
>zero.  1-0=1 but only if rgb 1 = rgbft 1.
>
>Hope I'm not losing you, Mike Williams had said the same thing really.


It seems like being all about apples and pears.

 #declare ThreeComps= <0,0,1>;
 #declare MyColour = rgb 1-ThreeComps;

evaluates to <1,1,0,0,0>.

But
#declare ThreeComps= rgb <0,0,1>;
#declare MyColour = rgb 1-ThreeComps;

evaluates to <1,1,0,1,1>.

In the first case, the math is done with vectors of any kind. In the second
case it's done with color vectors which are always 5 component vectors.
I agree however, that rgb Whatever should result in a 5 component vector
with filter and transmit set to 0. Is there a reason why this is not the
case (or why rgb is ignored as Nathan said)?

Marc-Hendrik


Post a reply to this message

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