|
![](/i/fill.gif) |
John M. Dlugosz <joh### [at] dlugosz com> wrote:
: Not really... a single circle going on forever is easy. The metal is
: polished in one place making a swirl pattern, then polished in another spot,
: and another, etc. so the surface is covered with lots of circles, not one
: big one.
Perhaps something like this then:
#declare Distance=5;
#declare Circles=20;
camera { location <0,10,-10>*1.5 look_at 0 angle 35 }
light_source { <100,100,-100> 1 }
plane
{ y,0
pigment { rgb x }
finish { specular .5 }
#declare CirclesNormal=
normal
{ spherical 2 slope_map
{ [0 <0,0>]
[.5 <1,2>]
[.5 <1,-2>]
[1 <0,0>]
}
frequency Circles
scale Distance*sqrt(2)/2
}
normal
{ average normal_map
{ [1 CirclesNormal]
[1 CirclesNormal translate x*Distance]
[1 CirclesNormal translate -x*Distance]
[1 CirclesNormal translate z*Distance]
[1 CirclesNormal translate -z*Distance]
}
translate x*Distance/2
warp { repeat x*Distance }
translate -x*Distance/2
translate z*Distance/2
warp { repeat z*Distance }
translate -z*Distance/2
}
}
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |