#
# Chessboard scene 2
#
# All "models" in this file where created, by hand, by Jimb Esser
#

# the x, y, z coordinates of the eye position
eye { 45.08 20.85 43.67} 

# the x,y,z coordinates of each of the four corners of the image window
# image { <-40 80 40> <40 80 40> <40 0 40> <-40 0 40> } 
image { <9.72 29.54 19.33> <34.30 29.54 2.13> <37.29 0 6.40> <12.71 0 23.60> } 

# the x,y,z coordinates of the position of the point light source
light_position { 30 30 25 }

# Chessboard
material { <0.8 0.8 0.8> <0.8 0.8 0.8> <0.4 1.0 0.5 200> 0.0 <1.0 1.0> }
texture { tex/board.bmp }
textured_triangle { <40, 0, 40>, <4.0, 0.0>, <-40, 0, -40>, <0.0, 4.0>, <-40, 0, 40>, <0.0, 0.0> }
textured_triangle { <-40, 0, -40>, <0.0, 4.0>, <40, 0, 40>, <4.0, 0.0>, <40, 0, -40>, <4.0, 4.0> }


# white guys
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 { -35 0 5 }
# Pawn:
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 { -15 0 15 }
# Pawn:
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 { -5 0 25 }
# Pawn:
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 { 5 0 15 }
# Pawn:
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 { 35 0 25 }
# Pawn:
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 { 15 0 15 }
# Knight:
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 { 35 0 35 }
# 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 { -25 0 5 }
# 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 }


translate { 15 0 35 }
# 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 }


translate { 5 0 35 }
# 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 { 5 0 25 }
# 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}


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


translate { -35 0 -15 }
# Pawn:
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 { -25 0 -15 }
# Pawn:
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 { -15 0 -25 }
# Pawn:
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 { -5 0 -5 }
# Pawn:
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 { 25 0 -25 }
# Pawn:
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 { 35 0 -5 }
# Pawn:
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 { 15 0 -15 }
# Knight:
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 { -25 0 15 }
# Knight:
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 { 25 0 5 }
# 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 { -35 0 -25 }
# 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 { 5 0 -15 }
# 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 }


translate { 5 0 -35 }
# 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 { -5 0 -25 }
# 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}
