//cs3710 - Project - using povary //By Lekai Tao 001058916 //Feb 12, 2004 //A field with some hay bails #include "colors.inc" #include "stones.inc" #include "textures.inc" #declare Cam0 = camera {angle 120 location <0.0 , 3.0 ,-5> look_at <0.0 , 3.0 , 0.0>} camera{Cam0} light_source { <10, 10,20 > color YellowGreen*0.7} // sky-------------------------------------- plane{<0,1,0>,4 hollow // texture{ Bright_Blue_Sky scale 2 finish {ambient 1 diffuse 0}} scale 10000} // fog at the horizon ----------------------- fog{distance 100000 color White} //ground ------------------------------------------------------------ plane {<0,1,0>, 0 texture {pigment{ color Yellow*0.4} normal {bumps 0.5 scale 0.01} finish {ambient 1.5 diffuse 0.8}} } //the hey bails------------------------------------------------- cylinder {<1,0.43,0>,<.5,0.3,1>,0.5 texture{EMBWood1 scale 0.01 finish {ambient 0.15 diffuse 0.85 phong 1} } } cylinder {<2,.5,1>,<1.5,0.3,1.9>,0.5 texture{EMBWood1 scale 0.01} } cylinder {<-.5,0.1,-1>,<-1,0.3,-1.8>,0.33 texture{EMBWood1 scale 0.01} } cylinder {<-.5,0,1.2>,<-1,0.5,1.4>,0.4 texture{EMBWood1 scale 0.01} rotate <0,0,45> translate <-2,0.7,0.6>} cylinder {<0,0,0>,<0,0.01,0.5>,0.9 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<5,1,3>} cylinder {<0,0,0>,<0,0.1,0.5>,0.9 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<6,2,4>} cylinder {<0,0,0>,<0,0.1,0.5>,1 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<7,2,4>} cone {<0,0,0>,1,<2,0.5,1>,0.5 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<8,1,4>} cone {<0,0,0>,1,<1,0.5,1>,0.5 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<5,1,4>} cone {<0,0,0>,0.7,<1,0.5,1>,0.5 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<8,0.8,2>} cylinder {<0,0.1,0>,<0,0.13,0.5>,0.2 texture{EMBWood1 scale 0.1 finish {ambient 0.15 diffuse 0.85 phong 1}} translate<-3,3,1>} //this is the unin part for the Teapot union { light_source { <-3, 3, 0.1> color White} cone{<0,0,0>,0.3,<0,4,0>,0.08 texture{T_Stone25//Polished_Chrome normal {bumps 0.5 scale 0.15} finish {ambient 0.15 diffuse 0.55 phong 1}}} difference{ cone{<0,4,0>,0.08,<0,4.5,0>,0.3 texture{T_Stone20 normal {bumps 0.5 scale 0.15} finish {ambient 0.15 diffuse 0.55 phong 1}}} box {<1,1,0>,<2,2,2> texture{T_Stone25} rotate <0, 0, 45> translate <-0.18,2.7,-1> }} } // // Here is the creation for House: prism{ -2.00, 2.00, 6 <-1.00, 0.00>, < 1.00, 0.00>, < 1.00, 1.00>, < 0.00, 2.00>, <-1.00, 1.00>, <-1.00, 0.00> texture{ Cork finish {ambient 0.15 diffuse 0.85}} rotate<-90,0,0> rotate<0,90,0> translate<-6,2.92,2> } box {<0.1,0.1,0>,<0.8,0.8,0.8> texture {Cork} rotate <0,0,90> rotate <75,0,0> translate <-5,5,1.5>} box {<1,0,1>,<0.2,1,3> translate <-7,2.9,-0.01> }