|
![](/i/fill.gif) |
Why is it that the following code works fine in Superpatch, but
generates an error (cannot load function (Pig1)) in Megapov (version
0.1)?
///////////////////////////////////
#include "colors.inc"
camera{
location <0,2,-15>
look_at <0,2,0>
}
light_source{
<40,30,-25>
rgb 1
}
plane {y,-10
pigment {
checker
pigment {Wheat}
pigment {rgb<0.46,0.42,0.4>}
scale 18
}
rotate 45*y
hollow
}
#declare Pig1=
function{
pigment{
bozo
color_map{[0 rgb 1][1 rgb 0]}
scale .3
}
}
isosurface {
function {(x^2+z^2)/8 +(Pig1( (x/4) , (y/6) , (z/4) )*0.5)}
bounded_by {sphere {0,8}}
sign 1
threshold 1
max_gradient 15
scale <1,3,1>
pigment {Goldenrod}
}
/////////////////////////////////////////////
--
Keeper of the family pets.
"You want fish? I got fish. I got fish, and eels, and turtles, and
snails, and frogs, and dragons and cats..."
Post a reply to this message
|
![](/i/fill.gif) |