POV-Ray : Newsgroups : povray.general : Bad operands : Re: Bad operands Server Time
29 Jul 2024 22:31:04 EDT (-0400)
  Re: Bad operands  
From: Reactor
Date: 22 May 2010 21:00:01
Message: <web.4bf87cf8385d79cdf886c6d60@news.povray.org>
"Thomas de Groot" <tDOTdegroot@interDOTnlANOTHERDOTnet> wrote:
> "Christian Froeschlin" <chr### [at] chrfrde> schreef in bericht
> news:4bf65c9a$1@news.povray.org...
> >
> > You should check all invocations of GammaColor in your scene file then.
> > You're likely calling it with a 3 component vector but without rgb.
>
> Yes... that must be it because in a test scene this is exactly what makes
> the error appear... Thanks! Good hint!
>
> Thomas


You can also change the input vector to a 5 component color vector if you do
something like this:

#local OldVar = <1.0,0.5,0.2>;

Inside of the macro:

#local NewVar = color rgbft (<0,0,0,0> + OldVar);

Now NewVar is a 5 component color.

-Reactor


Post a reply to this message

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