|
|
This is my first success with my visibility pattern. It is supposed to
be copper or a copper alloy with a patina on it, worn away in exposed
areas. The syntax is simple, this is the code that produced this image:
#declare TestObj=
union {
box {<-5,-1,-5>, < 5, 0, 5>}
cylinder {< -2, 0, 0>, <-1, 3, 0>, 1}
cylinder {< 0, 0, 0>, <-1, 3, 0>, 1}
difference {
sphere {< 1, 1, 0>, 1}
cone {< 1, 1, 0>, 0, < 1, 1.75,-1>, 0.65}
}
}
object {TestObj
texture {
pigment {color rgb < 0.6, 0.45, 0>}
finish {
reflection 0.35
reflect_metallic
metallic
ambient 0 diffuse 0.6
}
}
texture {
pigment {visibility 200, object {TestObj}
//visibility SAMPLES, TARGET_OBJECT
color_map {
[0 color rgb < 0.15, 1, 0.75>]
[0.1 color rgb < 0.15, 1, 0.75>]
[0.6 color White transmit 1]
[1 color White transmit 1]
}
}
}
}
Time For Trace: 0 hours 11 minutes 26.0 seconds (686 seconds)
On a PowerPC G3 at 266MHz.
I had to make the object be specified as a parameter, otherwise it
didn't work with CSG objects. I am not sure why, though. And a possible
problem with this syntax: although it gives you more control over the
objects that affect the pattern, you can't just define a texture and
have it work for all objects. :-(
--
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/
Post a reply to this message
Attachments:
Download 'visibility.JPG' (8 KB)
Preview of image 'visibility.JPG'
|
|