|
|
Why does Mike say this is the function for a gravity well?
x*x - 0.002/y*y + z*z
Or more importantly what must be done that I am not doing to render a
surface as Mike has here:
http://www.econym.demon.co.uk/isotut/more.htm
What doesn't work:
isosurface {
function {
//y - (x*x + z*z)*0.5 // curved
//x*x - y*y + z*z // twin cones
//sqrt(x*x + z*z) - abs(y)
x*x - z*z + abs(y) // more curved, somewhat boob-shaped cones
//x*x - 0.002/y*y +z*z // cylinder not a grav-well
// http://www.econym.demon.co.uk/isotut/more.htm
//Gravity_Well(x, y, z, 0.002)
}
threshold 0
max_gradient 3
contained_by {box {<-1,-1,-1>, < 1, 1, 1>}}
//contained_by {sphere {< 0, 0, 0>, 1}}
open
texture {
pigment{ CadetBlue }
finish { ambient .4 }
}
scale 2
translate <0,0, 0>
}
Post a reply to this message
|
|