Tre sfere trasparenti

Tre sfere

Le sfere si sovrappongono.

#include "colors.inc"

plane{ z, 2 pigment{ checker color White color Black } }

sphere{ <-1,0,0>, 1 pigment{ color Red   } }
sphere{ < 0,0,0>, 1 pigment{ color Green } }
sphere{ <+1,0,0>, 1 pigment{ color Blue  } }

camera      { location <0,0,-4> look_at<0,0,0> }
light_source{          <0,0,-4> color White    }

Due sfere semitrasparenti

La sfera rossa e la sfera blu sono semitrasparenti.

#include "colors.inc"

plane{ z, 2 pigment{ checker color White color Black } }

sphere{ <-1,0,0>, 1 pigment{ color Red   transmit 0.5 } }
sphere{ < 0,0,0>, 1 pigment{ color Green              } }
sphere{ <+1,0,0>, 1 pigment{ color Blue  transmit 0.5 } }

camera      { location <0,0,-4> look_at<0,0,0> }
light_source{          <0,0,-4> color White    }

Tre sfere semitrasparenti

La tre sfere sono semitrasparenti.

#include "colors.inc"

plane{ z, 2 pigment{ checker color White color Black } }

sphere{ <-1,0,0>, 1 pigment{ color Red   transmit 0.5 } }
sphere{ < 0,0,0>, 1 pigment{ color Green transmit 0.5 } }
sphere{ <+1,0,0>, 1 pigment{ color Blue  transmit 0.5 } }

camera      { location <0,0,-4> look_at<0,0,0> }
light_source{          <0,0,-4> color White    }

Sfere semitrasparenti

Le tre sfere sono semitrasparenti e disposte in modo interessante…

#include "colors.inc"

plane{ z, 2 pigment{ checker color White color Black } }

sphere{ <-0.5,+0.5,0>, 1 pigment{ color Red   transmit 0.5 } }
sphere{ <+0.5,+0.5,0>, 1 pigment{ color Green transmit 0.5 } }
sphere{ < 0  ,-0.5,0>, 1 pigment{ color Blue  transmit 0.5 } }

camera      { location <0,0,-4> look_at<0,0,0> }
light_source{          <0,0,-4> color White    }