// Persistence Of Vision raytracer version 1.0 sample file.

// Nice little snowman. Nose unfinished cos I can't figure out
// cones yet. Ah well. RAJ

#include "<povinc$dir>.colors"
#include "<povinc$dir>.shapes"
camera {
  location <10.0  12.0  -20.0> 
   direction <0.0 0.0  1.0>
   up  <0.0  1.0  0.0>
   right <1.33333 0.0 0.0>
   look_at <0 5 0>
}

// Light source
object {
   light_source {
      <10 20 -30>
      color White
   }
}

// Light source
object {
   light_source {
      <-10 10 -40>
      color White
   }
}

// Light source
object {
   light_source {
      <5 5 -28>
      color White
   }
}


// Floor plane 
object {
   plane { <0.0 1.0 0.0> -2.0 }
   texture {
      0.05 
      color White
      waves 1.0
      frequency 5000.0
      scale <50000.0 50000.0 50000.0>
     
   }
   color White
}

// Sphere object 
object {
  sphere { <2 0 5> 3 }
   texture {
     color White
   }
}

// Sphere object 
object {
   sphere { <-8 -2.5 -6> 2 }
   texture {
    color White
   }
}
object {
   sphere { <-8.7 -2.5 -5> 4 }
  texture {
    color White
   }
}

object {
   sphere { <-3.2 0 7> 4 }
   texture {
    color White
   }
}

//snowman
object {
   sphere { <0 2.5 0> 6 }
   texture {
    color White
   }
}

object {
   sphere { <0 8.5 0> 3.8 }
   texture {
     color White
   }
}
//  -----------
//   right eye
//  -----------
object {
   sphere { <1.5 9.5 -3> 0.6 }
   texture {
     color Gray35
   }
}
//  -----------
//   left eye
//  -----------
object {
   sphere { <-1.5 9.5 -3> 0.6 }
   texture {
     color Gray35
   }
}
//  -----------
//  carrot nose
//  -----------
object {
sphere{ <0 9 -3> 1}
texture {color Orange}
}

object {
sphere{ <0 9 -5> 0.8}
texture {color Orange}
}

object {
sphere{ <0 9 -6.4> 0.6}
texture {color Orange}
}

object {
sphere{ <0 9 -7.2> 0.4}
texture {color Orange}
}

object {
sphere{ <0 9 -8.0
 > 0.2}
texture {color Orange}
}

//  -------
//    hat
//  -------
object {
intersection {       /* Capped cylinder, Length in y axis */
   quadric { Cylinder_Y  }
   plane { <0.0 1.0 0.0> -1 inverse }
   plane { <0.0 1.0 0.0>  1 }
}
texture {color Gray50}
scale <3.0 1.0 3.0>
translate <0 12.0 0>
}

object {
intersection {       /* Capped cylinder, Length in y axis */
   quadric { Cylinder_Y  }
   plane { <0.0 1.0 0.0> -1 inverse }
   plane { <0.0 1.0 0.0>  1 }
}
texture {color Gray50}
scale <5.0 0.2 5.0>
translate <0 11.3 0>
}

// --------
//  buttons
// ---------
object {
   sphere { <0.0 2.5 -4> 0.6 }
   texture {
     color Gray35
   }
}
object {
   sphere { <0.0 1.5 -6> 0.6 }
   texture {
     color Gray35
   }
}
object {
   sphere { <0.0 3.5 -6> 0.6 }
   texture {
     color Gray35
   }
}
//  -------
//   tree
//  -------
object {
intersection {       /* Capped cylinder, Length in y axis */
   quadric { Cylinder_Y  }
   plane { <0.0 1.0 0.0> -1 inverse }
   plane { <0.0 1.0 0.0>  1 }
}
texture {color Brown}
scale <8.0 10.0 8.0>
translate <-60.0 3.0 50.0>
}
object{
sphere { <-60.0 10 50.0> 13 }
 texture { color Green
 waves 1.0
frequency 2.0
 }
 }

object{
sphere { <-60.0 12 50.0> 12 }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }

object{
sphere { <-60.0 14 50.0> 11 }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }

object{
sphere { <-60.0 16 50.0> 10 }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }

object{
sphere { <-60.0 18 50.0> 9  }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }
 object{
sphere { <-60.0 20 50.0> 8  }
 texture { color Green 
 waves 1.0
frequency 2.0}
 }

 object{
sphere { <-60.0 22 50.0> 6  }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }
 object{
sphere { <-60.0 24 50.0> 4  }
 texture { color Green
 waves 1.0
frequency 2.0 }
 }

 object{
sphere { <-60.0 26 50.0> 2  }
 texture { color Green 
 waves 1.0
frequency 2.0}
 }
 object{
sphere { <-60.0 27 50.0> 1  }
 texture { color Green 
 waves 1.0
frequency 2.0}
 }