//Nathaniel Holcomb //EXAMPLE OF SPHERE //Files with predefined colors and textures #include "colors.inc" #include "glass.inc" #include "golds.inc" #include "metals.inc" #include "stones.inc" #include "woods.inc" //Place the camera camera { sky <0,0,.5> //Don't change this direction <-1,0,0> //Don't change this right <-4/3,0,0> //Don't change this location <30,4,10> //Camera location look_at <0,0,0> //Where camera is pointing angle 20 //Angle of the view--increase to see more, decrease to see less } //Ambient light to "brighten up" darker pictures global_settings { ambient_light Blue } //Place a light--you can have more than one! light_source { <10,-10,20> //Change this if you want to put the light at a different point color White*2 //Multiplying by 2 doubles the brightness } light_source {<10,10,20> color Blue*4} //Set a background color background { color Red } //Create a "floor" plane { <0,0,-1>, 0 //This represents the plane 0x+0y+z=0 texture { T_Silver_2A } //The texture comes from the file "metals.inc" } //Sphere with specified center point and radius //The texture comes from the file "stones.inc" sphere { <0,0,1.5>, 1 texture {T_Wood1} } sphere { <-4.5,0,1.5>, 1 texture {T_Wood2} } sphere { <-9,0,1.5>, 1 texture {T_Wood3} } sphere { <4.5,0,1.5>, 1 texture {T_Wood4} } sphere { <9,0,1.5>, 1 texture {T_Stone1} } #declare mirror1=plane {<0,-15,0>, 1 texture {T_Silver_2C}} #declare mirror2=plane {<-15,0,0>, 1 texture {T_Silver_2C}} mirror1 mirror2