POV-Ray : Newsgroups : povray.advanced-users : Color negation Server Time
26 Nov 2024 04:22:32 EST (-0500)
  Color negation (Message 1 to 5 of 5)  
From: Wlodzimierz ABX Skiba
Subject: Color negation
Date: 6 Mar 2001 08:05:25
Message: <3aa4e095@news.povray.org>
Perhaps subject and some words are not the best - it's my English ...

I want achive color (1-Color) in this script :

  #macro NegativeTexture(Color)
    texture{pigment{color rgb (1-Color)}}
  #end
  #declare Color=color rgb 1;
  background{color Color}
  object{MyObject NegativeTexture(Color)

and this cause MyObject invisible
and cause warning: Suspicious expression after rgb.
But after changing inside macro :

  #macro NegativeTexture(Color)
    #local MaxColor=color rgb 1;
    texture{pigment{color rgb (MaxColor-Color)}}
  #end

rendering is fine but still with the same warning.
Is there any way to remove this warning ?
Is there any other proper way to calculate "negation" of color ?

ABX


Post a reply to this message

From: Chris Huff
Subject: Re: Color negation
Date: 6 Mar 2001 08:10:25
Message: <chrishuff-84A2BC.08070506032001@news.povray.org>
In article <3aa4e095@news.povray.org>, "Wlodzimierz ABX Skiba" 
<abx### [at] abxartpl> wrote:

> rendering is fine but still with the same warning.
> Is there any way to remove this warning ?

Try:
#macro NegativeTexture(Color)
    texture{pigment{color rgb < 1, 1, 1> - Color}}
#end

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Christoph Hormann
Subject: Re: Color negation
Date: 6 Mar 2001 08:12:52
Message: <3AA4E24B.40040DB1@gmx.de>
Wlodzimierz ABX Skiba wrote:
> 
>[...]
> 
> rendering is fine but still with the same warning.
> Is there any way to remove this warning ?
> Is there any other proper way to calculate "negation" of color ?
> 

I also often stumble over that warning and find it quite senseless.  It
also occurs with simple addition of colors and other stuff.

Christoph

-- 
Christoph Hormann <chr### [at] gmxde>
IsoWood include, radiosity tutorial, TransSkin and other 
things on: http://www.schunter.etc.tu-bs.de/~chris/


Post a reply to this message

From: Ron Parker
Subject: Re: Color negation
Date: 6 Mar 2001 08:28:26
Message: <slrn9a9pfr.5gf.ron.parker@fwi.com>
On Tue, 6 Mar 2001 14:05:23 +0100, Wlodzimierz ABX Skiba wrote:
>Is there any other proper way to calculate "negation" of color ?

You could say rgb <1-Color.red, 1-Color.blue, 1-Color-green>


-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Wlodzimierz ABX Skiba
Subject: Re: Color negation
Date: 6 Mar 2001 10:47:16
Message: <3aa50684@news.povray.org>
Ron Parker wrote in message ...
> >Is there any other proper way to calculate "negation" of color ?
>
> You could say rgb <1-Color.red, 1-Color.blue, 1-Color-green>


thanks for answers
it seems first version my modelling environment is ready
see at p.b.i and p.b.u

ABX


Post a reply to this message

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