POV-Ray : Newsgroups : povray.general : Parse Warning: Suspicious expression after rgb : Re: Parse Warning: Suspicious expression after rgb Server Time
29 Jul 2024 02:29:41 EDT (-0400)
  Re: Parse Warning: Suspicious expression after rgb  
From: Kenneth
Date: 16 May 2013 12:00:01
Message: <web.519501b052d8056c2d977c20@news.povray.org>
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.)


Post a reply to this message

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