|
|
Bingo! What I wanted to do more than anything else is to make people aware
of the superpatch's ability to make brand-new pigment types from
mathematical functions, using the isosurafce. I found the isosurface to be
a thing which can be learned, even though I had no previous experience
using such math equations. Simple trial and error leads to learning.
Fabien Mosen wrote:
> Looks like iso-surface with an iso-texture, right ?
>
> Fabien.
Here is the code for all you superpatch users:
camera{location<0,5,-10>look_at<0,0,0>angle 35 rotate y*-45}
light_source{<100,200,-50>rgb 1.2}
sky_sphere{pigment{gradient y color_map{[0 rgb 1][1 rgb<.3 .7 1>]}}}
isosurface{
function sqr(x+sin(z*2))+y^2+.5
bounded_by{box{<-2,-1,-4>,<2,0,4>}}
sign 1
threshold 1
pigment{ function sqr(x+sin(z*2))+y^2+.49
frequency 8 color_map{[0 rgb<.3 .3 .15>][1 rgb<.9 .9 .8>]}}
finish{phong 1}
}
Post a reply to this message
|
|