POV-Ray : Newsgroups : povray.general : Parse Warning: Suspicious expression after rgb : Re: Parse Warning: Suspicious expression after rgb Server Time
29 Jul 2024 02:31:01 EDT (-0400)
  Re: Parse Warning: Suspicious expression after rgb  
From: Nekar Xenos
Date: 16 May 2013 12:49:18
Message: <op.ww6roduqufxv4h@xena>
On Thu, 16 May 2013 17:56:32 +0200, Kenneth <kdw### [at] gmailcom> wrote:

> clipka <ano### [at] anonymousorg> wrote:
>> Am 15.05.2013 21:34, schrieb Nekar Xenos:
>> > How can I find out what this suspicious expression is?
>> > The variable was obtained through eval_pigment()
>>
>> I suspect eval_pigment() gives you a 5-component colour (RGBFT), while
>> rgb expects a 3-component vector.
>
> Actually, the eval_pigment function returns just three. (I've always been
> curious why it wasn't designed to return all five.)
>
> Another possible reason for Nekar's problem might be the unexpected  
> behavior of
> color 'dot operators' (if he's using them.) The "Common color pitfalls"  
> section
> in the documentation gives a good rundown of what to watch out for.  
> (Although
> I'm not sure if the eval_pigment result constitutes a true COLOR, in the  
> sense
> of an implicit "rgb" color; it's a *function* of a color. But I use the
> documentation workarounds with it anyway, just to be safe.)
>
Thanks for the hint. It seems that you may be correct about the dot  
operators. Just add brackets... ;)

-- 
-Nekar Xenos-


Post a reply to this message

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