// POV file generated via script by Will Peacock
// Panda model created with spheres during a CSC 471 assignment

camera {
  location  <0, -12, -35>
  up        <0,  1,  0>
  right     <1.33333, 0,  0>
  look_at   <0, -3, 0>
}

obj {
  scale <7.5, 7.5, 7.5>
  translate <12, 4, 5>
  rotate <10.0, 0.0, 0.0>
  rotate <0.0, 10.0, 0.0>
  rotate <0.0, 0.0, 22.0>
  translate <1, 0, 0>
}

// Walls
	// (back wall)
	plane {<0, 0, -1>, -200
		pigment { color rgb <1.0, 1.0, 1.0>}
	}

	// (back wall)
	plane {<0, 0, 1>, -200
		pigment { color rgb <1.0, 1.0, 1.0>}
	}

	plane {<1, 0, 0>, -200
		pigment { color rgb <1.0, 1.0, 1.0>}
	}

	plane {<-1, 0, 0>, -200
		pigment { color rgb <1.0, 1.0, 1.0>}
	}

// Space backdrop
	sphere { <0, 0, 0>, 1
	  pigment {
		image_map {jpg "space.jpg"}
	  }
	  scale <85, 85, 1>
	  translate <0, 40, 50>
	}
	
sphere { <0, 0, 0>, 1
	  //pigment {
		//image_map {jpg "moon.jpg"}
	  //}
	  //pigment { color rgb <1.0, 1.0, 1.0>}
	  finish {ior 1.5}
	  scale <30, 10, 30>
	  translate <0, -21, 0>
	}
	
sphere { <0, 0, 0>, 1
	  pigment {
		image_map {jpg "crater.jpg"}
	  }
	  finish {reflection 0.5}
	  scale <3, 2.5, 3>
	  rotate <0.0, 0.0, 22.0>
	  translate <-13.5, 10, 5>
	}

sphere { <0, 0, 0>, 1
	  pigment {
		image_map {jpg "crater.jpg"}
	  }
	  finish {reflection 0.5}
	  scale <0.5, 0.4, 0.5>
	  rotate <0.0, 0.0, 50.0>
	  translate <-18, 16, 5>
	}

sphere { <0, 0, 0>, 1
	  pigment {
		image_map {jpg "crater.jpg"}
	  }
	  finish {reflection 0.5}
	  scale <1, 0.75, 1>
	  rotate <0.0, 0.0, 70.0>
	  translate <-20, 13, 5>
	}
	
// Area lights
	light_source {
		<0, 90, 0>
		color rgb <1.0, 1.0, 1.5>
		area_light <300, 0, 0>, <0, 0, 300>
	}
	light_source {
		<0, -90, 0>
		color rgb <1.0, 1.0, 1.5>
		area_light <300, 0, 0>, <0, 0, 300>
	}
	light_source {
		<0, 3, -35>
		color rgb <1.0, 1.0, 2.0>
		area_light <20, 0, 0>, <0, 20, 0>
	}
	



// Panda model start

// standing panda head sphere #0
sphere { <0, 0, 0>, 1
  pigment { color rgb <1.0, 1.0, 1.0> }
  scale <2.88323, 2.88323, 2.88323>
  translate <0.0, 0.0, 0.0>
}

// standing panda head sphere #1
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <1.23278, 1.23278, 0.2>
  translate <-1.7999999998994198, 2.7381438098728994, 0.0>
}

// standing panda head sphere #2
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <1.23278, 1.23278, 0.2>
  translate <1.7999999998994198, 2.7381438098728994, 0.0>
}

// standing panda head sphere #3
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.52608, 0.37242, 0.33573>
  translate <0.0, -0.10252779700071192, -2.947945079717>
}

// standing panda head sphere #4
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.7732899, 0.96457, 0.39227>
  rotate <22, 0.0, 0.0>
  rotate <0.0, 0.0, -22>
  translate <-0.7426595685742672, 1.0465316431899692, -2.3723840739499997>
}

// standing panda head sphere #5
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.7732899, 0.96457, 0.39227>
  rotate <22, 0.0, 0.0>
  rotate <0.0, 0.0, 22>
  translate <0.7426595685742672, 1.0465316431899692, -2.3723840739499997>
}

// standing panda head sphere #6
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <1, 1, 1>
  translate <0.0, -6.828340247629999, 3.3743821484808487>
}

// standing panda head sphere #7
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.52608, 0.11803, 0.17508>
  translate <0.0, -0.8183681206134961, -2.7313360990519997>
}

// standing panda body sphere #0
sphere { <0, 0, 0>, 1
  pigment {
    image_map {jpg "panda_body_tex.jpg"}
  }
  scale <4.03916, 3.75861, 3.2444>
  translate <0.0, -5.3851880713061195, 0.0>
}

// standing panda body sphere #1
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <1.00316, 1.77218, 1.00316>
  translate <-1.4646892978299997, -9.42764801561, 0.0>
}

// standing panda body sphere #2
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <1.00316, 1.77218, 1.00316>
  translate <1.4646892978299997, -9.42764801561, 0.0>
}

// standing panda body sphere #3
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.6757599, 2.96199, 1.00339>
  rotate <20.0, 0.0, 0.0>
  rotate <0.0, 0.0, -32.0>
  translate <-3.5070025440999997, -3.9195910786999995, 0.0>
}

// standing panda body sphere #4
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.6757599, 2.96199, 1.00339>
  rotate <20.0, 0.0, 0.0>
  rotate <0.0, 0.0, 32.0>
  translate <3.5070025440999997, -3.9195910786999995, 0.0>
}

// standing panda eye sphere #0
sphere { <0, 0, 0>, 1
  pigment { color rgb <1.0, 1.0, 1.0> }
  scale <0.31177, 0.26083, 0.08694>
  rotate <22, 0.0, 0.0>
  translate <-0.800421757124, 1.3126506291241673, -2.6343777934209998>
}

// standing panda eye sphere #1
sphere { <0, 0, 0>, 1
  pigment { color rgb <1.0, 1.0, 1.0> }
  scale <0.31177, 0.26083, 0.08694>
  rotate <22, 0.0, 0.0>
  translate <0.800421757124, 1.3126506291241673, -2.6343777934209998>
}

// standing panda eye sphere #2
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.18219, 0.18219, 0.06073>
  rotate <22, 0.0, 0.0>
  rotate <0.0, 0.0, 20>
  translate <-0.7612258463369999, 1.318220368047, -2.669447818862>
}

// standing panda eye sphere #3
sphere { <0, 0, 0>, 1
  pigment { color rgb <0.0, 0.0, 0.0> }
  scale <0.18219, 0.18219, 0.06073>
  rotate <22, 0.0, 0.0>
  rotate <0.0, 0.0, -20>
  translate <0.7612258463369999, 1.318220368047, -2.669447818862>
}