|
|
PoD wrote:
>Bill DeWitt wrote:
>>
>> I can't think of a way to make an object have the inverse color of the
>> objects behind it. Is there a way?
>>
>> I was thinking that it would be something like a filter that had a
negative
>> value, but that didn't work of course...
>
>pigment{ rgbf <1,1,1,-1> }
>finish{ ambient 0.5 } // this value threw me
>
>Cheers, PoD.
Or like this:
pigment {rgb 0.5 filter -1}
Now you can use any finish.
finish {ambient 1 diffuse 0}
will make make the object exactly the opposite
color, thereby making it look like a 2d effect.
But the default
finish {ambient 0.1 diffuse 0.6}
will make it look solid, like the colors
behind the object is painted on the object!
Note though, that the ray must pass through an
odd number of surfaces. That means that it
doesn't work with most normal objects because
they have an even number of surfaces. You can
may have to use clipped_by or something else.
Greetings,
Rune
---
Updated November 19: http://rsj.mobilixnet.dk
Containing 3D images, stereograms, tutorials,
The POV Desktop Theme, 350+ raytracing jokes,
miscellaneous other things, and a lot of fun!
Post a reply to this message
|
|