# lines beginning with '#' are comments
# the x, y, z coordinates of the eye position
eye { 5 10 20 } 

# the x,y,z coordinates of each of the four corners of the image window
image { <-8 14 0> <8 14 0> <8 -2 0> <-8 -2 0> } 

# the x,y,z coordinates of the position of the point light source
light_position { 10 20 20 }

# the x,y,z coordinates of the position of the point light source
# light_position { -10 10 20 }

# the material properties:
#   diffuse color (r,g,b)
#   specular color (r,g,b)
#   ambient, diffuse, specular coefficients, specular exponent
#   transparency
#   index of refraction of environment
#   index of refraction of object
material { <0.8 0.4 0.4> <0.8 0.8 0.4> <0.2 0.5 0.3 15> 0.0 <1.0 1.0> }

material { <0.8 0.8 0.8> <1.0 1.0 1.0> <0.7 0.4 0.0 20> 0.0 <1.01 1.0> }

translate { 0 0 0 }
# Pawn: (7.0)
cylinder { <0, 0, 0>, 2, 0.5 }
squished_sphere { <0, 0.5, 0>, <2, 0.25, 2> }
squished_sphere { <0, 0.75, 0>, <2, 0.5, 2> }
cone { <0, 0.75, 0>, 1.9, 2.0 }
cylinder { <0, 1.5, 0>, 1, 3.0 }
squished_sphere { <0, 4.5, 0>, <1.6, 1.0, 1.6> }
sphere { <0, 6.0, 0>, 1 }


translate { -6 0 0 }
# Knight: (8.35)
cylinder { <0, 0, 0>, 2, 0.5 }
squished_sphere { <0, 0.5, 0>, <2, 0.25, 2> }
squished_sphere { <0, 0.75, 0>, <2, 0.5, 2> }
cone { <0, 0.75, 0>, 1.9, 3.0 }
cylinder { <0, 0.75, -0.3>, 1.4, 6.0 }
squished_sphere { <0.0, 4.0, 0.85>, <1.3, 2.0, 1.1> }
squished_sphere { <0.0, 6.75, 0.5>, <1.5, 1.6, 2.5> }


translate { -6 0 -6 }
# Rook: (8.5)
cylinder { <0, 0, 0>, 2, 0.5 }
squished_sphere { <0, 0.5, 0>, <2, 0.25, 2> }
squished_sphere { <0, 0.75, 0>, <2, 0.5, 2> }
cone { <0, 0.75, 0>, 1.9, 4.0 }
cylinder { <0, 0.75, 0>, 1.5, 6.0 }
squished_sphere { <0, 6.5, 0>, <2.0, 0.5, 2> }
cylinder { <0, 6.5, 0>, 1.8, 2.0 }
squished_sphere { <0, 8.5, 0>, <1.8, 0.25, 1.8> }


translate { 6 0 0 }
# Bishop: (10.35)
cylinder { <0, 0, 0>, 2, 0.5 }
squished_sphere { <0, 0.5, 0>, <2, 0.25, 2> }
squished_sphere { <0, 0.75, 0>, <2, 0.5, 2> }
cone { <0, 0.75, 0>, 1.9, 5.0 }
squished_sphere { <0, 2.0, 0>, <1.9, 0.5, 1.9> }
cone { <0, 2.0, 0>, 1.7, 6.0 }
squished_sphere { <0, 5.5, 0>, <1.2, 0.4, 1.2> }
squished_sphere { <0, 6.0, 0>, <1.0, 0.4, 1.0> }
squished_sphere { <0, 8.0, 0>, <1.0, 2.0, 1.0> }
sphere { <0, 10.1, 0>, 0.25 }

material { <0.3 0.3 0.3> <0.8 0.8 0.4> <0.2 0.5 0.5 15> 0.0 <1.0 1.0> }

translate { 6 0 -6 }
# King:
cylinder { <0, 0, 0>, 2.5, 0.5 }
squished_sphere { <0, 0.5, 0>, <2.5, 0.25, 2.5> }
squished_sphere { <0, 0.75, 0>, <2.5, 0.5, 2.5> }
cone { <0, 0.75, 0>, 2.4, 8.0 }
squished_sphere { <0, 2.5, 0>, <2.4, 0.75, 2.4> }
cone { <0, 2.5, 0>, 2.3, 7.0 }
squished_sphere { <0, 7.5, 0>, <2.5, 0.7, 2.5> }
squished_sphere { <0, 8.0, 0>, <2.2, 0.7, 2.2> }
cone { <0, 11.0, 0>, 2.0, -5.0 }
squished_sphere { <0, 11.0, 0>, <2.1, 0.7, 2.1> }
triangle { <-0.5, 11.5, 0>, <0.5, 11.5, 0>, <-0.5, 13.2, 0> }
triangle { <-0.5, 13.2, 0>, <0.5, 11.5, 0>, <0.5, 13.2, 0> }
triangle { <-0.8, 12.0, 0>, <0.8, 12.0, 0>, <-0.8, 13.0, 0> }
triangle { <-0.8, 13.0, 0>, <0.8, 12.0, 0>, <0.8, 13.0, 0> }

translate { 0 0 -6 }
# Queen:
cylinder { <0, 0, 0>, 2.5, 0.5 }
squished_sphere { <0, 0.5, 0>, <2.5, 0.25, 2.5> }
squished_sphere { <0, 0.75, 0>, <2.5, 0.5, 2.5> }
cone { <0, 0.75, 0>, 2.4, 8.0 }
squished_sphere { <0, 2.5, 0>, <2.4, 0.75, 2.4> }
cone { <0, 2.5, 0>, 2.3, 7.0 }
squished_sphere { <0, 7.5, 0>, <2.5, 0.7, 2.5> }
squished_sphere { <0, 8.0, 0>, <2.2, 0.7, 2.2> }
cone { <0, 10.5, 0>, 1.5, -4.5 }
squished_sphere { <0, 10.5, 0>, <1.55, 0.7, 1.55> }
sphere { <0, 11.4, 0>,  0.6}




# squished_sphere { <0, 0, 0>, <3, 2, 3> }
# cylinder { <0, -3, 0>, 2, 2.1 }
# cone { <0, 3, 0>, 2, 3 }
