 
Task

Display a region that consists of a large sphere with part of a smaller sphere removed from it as a result of geometric subtraction.

(This will basically produce a shape like a "death star".)



Related tasks

 draw a sphere
 draw a cuboid
 draw a rotating cube
 write language name in 3D ASCII


camera { perspective location  <0.0 , .8 ,-3.0> look_at 0
         aperture .1 blur_samples 20 variance 1/100000 focal_point 0}
 
light_source{< 3,3,-3> color rgb 1}
 
sky_sphere { pigment{ color rgb <0,.2,.5>}}
 
plane {y,-5 pigment {color rgb .54} normal {hexagon} }
 
difference {
 sphere { 0,1 }
 sphere { <-1,1,-1>,1 }
  texture { 
    pigment{ granite } 
    finish { phong 1 reflection {0.10 metallic 0.5} }
  } 
}  