|
|
// I'm substracting a isosurface from a sphere and I don't get the
// expected result. Image 1 is what I get, and image 2 is what I expect.
// The code for image 1 follows, does anyone know what I do wrong or if
// it's a bug or unsupported feature ?
// Thanks
#version 3.5;
#include "functions.inc"
global_settings { assumed_gamma 1.0 }
camera {
location <0.0, 2.5, -4.0>
direction 1.5*z
right x*image_width/image_height
look_at <0.0, 0.0, 0.0>
}
background { color rgb <0.2,0.4,0.5> }
light_source { <20, 15, -30> color rgb 1 }
difference {
sphere {
0.0, 1
}
isosurface {
function { f_sphere (x, y, z, 0.7) }
contained_by { box { -1.2, 1.2 } }
accuracy 0.001
max_gradient 8
translate <0.3,0.5,-0.5>
}
pigment { rgb <1,1,1> }
rotate 30*y
}
cylinder { <0,-2,0>, <0,2,0>, 0.1 pigment { rgb <0,0,1> } }
Post a reply to this message
Attachments:
Download 'sphere_substr1.png' (10 KB)
Download 'sphere_substr2.png' (13 KB)
Preview of image 'sphere_substr1.png'
Preview of image 'sphere_substr2.png'
|
|