Pavimento e pareti

Lo sfondo

Con background si specifica il colore della scena

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White} }

background{ color LightGray }
light_source{ <0,0,-10> color White }
camera{ location<0,0,-10> look_at<0,0,0> }

Il pavimento

Con plane si aggiunge un piano orizzontale in basso, y=-4

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White } }
plane{ y, -4 pigment{ color Gray } }

background{ color LightGray }
light_source{ <0,0,-10> color White }
camera{ location<0,0,-10> look_at<0,0,0> }

Due piani

Un piano orizzontale e un piano verticale a sinistra, x=-6

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White } }
plane{ y, -4 pigment{ color Gray } }
plane{ x, -6 pigment{ color Red } }
background{ color LightGray }

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

Tre piani

Il pavimento e le due pareti laterali, , x=-6, +6.
Lo sfondo non è più visibile.

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White } }
plane{ y, -4 pigment{ color Gray } }
plane{ x, -6 pigment{ color Red  } }
plane{ x, +6 pigment{ color Blue } }

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

Quattro piani

La parete di fondo, z=+6

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White } }
plane{ y, -4 pigment{ color Gray  } }
plane{ x, -6 pigment{ color Red   } }
plane{ x, +6 pigment{ color Blue  } }
plane{ z, +6 pigment{ color Green } }

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

Cinque piani

Il soffitto, y=+6

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ color White } }
plane{ y, -4 pigment{ color Gray } }
plane{ x, -6 pigment{ color Red } }
plane{ x, +6 pigment{ color Blue } }
plane{ z, +6 pigment{ color Green } }
plane{ y, +6 pigment{ color LightGray } }

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

Pareti

Piastrelle dappertutto, con checker, e la palla sul pavimento, y=-2!

#include "colors.inc"

sphere{ <0, 0, 0>, 2 pigment{ checker color White color Black } translate<0, -2, 0> }

plane{ y, -4 pigment { checker color Red   color Blue  } }
plane{ x, -6 pigment { checker color White color Red   } }
plane{ x, +6 pigment { checker color White color Blue  } }
plane{ z, +6 pigment { checker color White color Green } }
plane{ y, +6 pigment { checker color Gray  color White } }

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