|
|
//I don't know why adding noise to isosurface csg object tears it apart.
//There's a simple example:
#include "functions.inc"
camera {
location <0, 0, -3.0>
up <0, 1, 0>
right <4/3, 0, 0>
look_at <0, 0, 0>
}
light_source { <-100, 100, -100> color rgb<1, 1, 1> }
isosurface {
function {
min(
max((x*x+y*y+z*z)-1, -y),
max((x*x+y*y+z*z)-1, y)
)+f_noise3d(x,y,z)
}
contained_by { sphere { 0, 2.0 } }
max_gradient 3
pigment { color rgb<1, 1, 0> }
translate <0.9, 0, 0>
}
isosurface {
function {
(x*x+y*y+z*z)-1+f_noise3d(x,y,z)
}
contained_by { sphere { 0, 2.0 } }
max_gradient 3
pigment { color rgb<1, 0, 0> }
translate <-0.9, 0, 0>
}
// Any ideas?
// Thanks for help.
// Pawel
Post a reply to this message
|
|