//--------------------------------------- // Harry Oliver Jones // #001064983 // CS3710 spring 2003 // PovRay Project: Cardston Alberta Temple //--------------------------------------- #include "colors.inc" #include "stones.inc" #include "textures.inc" #include "shapes.inc" #include "shapes2.inc" #declare Walls = texture { pigment { color White //rgb <1.5,1.5,1.5> } normal { bumps 0.25 scale 0.025} } //-------------------- // Back Ground //---------------------- background{color Blue} //--------------------- //sky //-------------------- sky_sphere { pigment { Blue_Sky3} } //--------------------------- //Camera //--------------------------- camera { location <1, -1, -8> look_at <1, 1, 0> } //------------------------ //Light //----------------------- light_source {<1.5, 5,-6> color White} //---------------------- //ground //--------------------- plane{<0, -2, 0>,2 texture { pigment { rgb <0,0.5,0> } normal { bumps 0.5 scale 0.05} } } // Main Building union { box {<-2, -2, 0>,<2,1,3>}//main box {<-1.5, 1, 0.5>,<1.5,1.75,3>}//top box {<-1.25,1.75,0.75>,<1.25,2.25,2.75>}//roof texture{ Walls} rotate y*15 } //----------------------- // top of roof //--------------------- prism { conic_sweep linear_spline 0, // height 1 1, // height 2 5, // the number of points making up the shape... <1,1>,<-1,1>,<-1,-1>,<1,-1>,<1,1> rotate <180, 0, 0> translate <0, 5.5, 1.75> scale <1.25, 0.5, 1> rotate y*15 texture{Walls} } //--------------- //Sphere on top //--------------- sphere { <0.45, 2.85, 1.65>, 0.0625 texture { pigment { rgb <2,2,2>} } } //------------------------------- //right side //-------------------------------- difference { box {<2,-2,0.25>,<3,0.5,1>}//connect to right box {<2.2,-1.75,0.24>,<2.4,0.25,0.28>} texture{ Walls} rotate y*15 } //window box {<2.2,-1.75,0.27> <2.4,0.25,0.28> texture {Jade} rotate y*15} //---------------------- //right difference{ box {<2,-2,1.5>,<2.8,0.5,2.5>} box {<2.9,-2.1,1.4>,<3.1,0.6,1.6>} texture{ Walls} rotate y*45 } //Right Window difference{ box {<2.8,-2,1.6>,<3,0.5,2.5>} box {<2.7,-1.75,1.9>,<3.1,0.25,2.1>} texture{Walls} rotate y*45 } box {<2.7,-1.75,2> <2.95,0.25,2.3> texture{Jade} rotate y*45} //--------------------------------- //------------------------------- //left side //-------------------------------- difference { box {<-3,-2,0.25>,<-2,0.5,1>}//connect to left box {<-2.5,-1.75,0.24>,<-2.4,0.25,0.28>} texture{ Walls} rotate y*15 } //window box {<-2.5,-1.75,0.25> <-2.4,0.25,0.28> texture {Jade} rotate y*15} //Left difference{ box {<-0.75,-2,2.5>,<-1.55,0.5,3.5>} box {<-1.65,-2.1,2.4>,<-1.85,0.6,2.6>} texture{ Walls} rotate y*-45 } //Left Window difference{ box {<-1.55,-2,2.6>,<-1.75,0.5,3.5>} box {<-1.45,-1.75,2.9>,<-1.85,0.25,3.1>} texture{Walls} rotate y*-45 } box {<-1.45,-1.75,3> <-1.70,0.25,3.3> texture{Jade} rotate y*-45} //-------------- //Wall //-------------- union{ box {<-8,-2,-2>,<4,-1.5,-1.5>}//main Wall box {<4,-1.5,-2>,<4.5,-2,-0.5>} box {<4,-1.5,-0.5>,<10,-2,-0>} texture{ Walls} rotate y*15 } //--------- //PIllars //--------- //hole for pillars difference{ box {<-2,-2,-0.20> <2,1,0>} box {<-1.25,-0.5,-0.21>,<1.25,0.75,0>} texture{ Walls} rotate y*15 } union{ box{<-1.25,0.75,-0.5>,<1.25,1,0>}//Piece above Pillars box{<-1.25,-0.55,-0.25>,<1.25,-0.5,-0.20>}//hole trim //Main PIllars box{<-1,-2,-0.6>,<-0.75,1,-0.4>} box{<0.85,-2,-0.6>,<1.1,1,-0.4>} box{<-1,-2,-0.8>,<-0.75,-1,-0.6>} box{<0.85,-2,-0.8>,<1.1,-1,-0.6>} //inner Pillars box{<0.83,-0.5,-0.20>,<1.08,0.75,-0.05>} box{<0.41,-0.5,-0.20>,<0.66,0.75,-0.05>} box{<-0.01,-0.5,-0.20>,<0.24,0.75,-0.05>} box{<-0.43,-0.5,-0.20>,<-0.18,0.75,-0.05>} box{<-0.85,-0.5,-0.20>,<-0.6,0.75,-0.05>} box{<-1.27,-0.5,-0.20>,<-1.02,0.75,-0.05>} texture{ Walls} rotate y*15 } //----------------- //Lower pillars //----------------- //Ledge box{<-0.75,-1,-0.8> <0.85,-0.95,0> texture{ Walls} rotate y*15 } union{ box{<-0.6575 ,-2,-0.6>,<-0.565,-0.98,-0.2>} box{<-0.475,-2,-0.6>,<-0.38 ,-0.98,-0.2>} box{<-0.2875,-2,-0.6>,<-0.195,-0.98,-0.2>} box{<-0.1025,-2,-0.6>,<-0.01 ,-0.98,-0.2>} box{<0.0825,-2,-0.6>,<0.175,-0.98,-0.2>} box{<0.2675,-2,-0.6>,<0.36,-0.98,-0.2>} box{<0.4525,-2,-0.6>,<0.545,-0.98,-0.2>} box{<0.6375,-2,-0.6>,<0.73,-0.98,-0.2>} box{<0.8225,-2,-0.6>,<0.915,-0.98,-0.2>} box{<1.0075,-2,-0.6>,<1.1,-0.98,-0.2>} texture{Walls} rotate y*15 } //-------------- //upper pillars //-------------- difference{ //Hole box {<-1.5,-1,0.3> <1.5,1.75,0.5>} box {<-1,-1,0.2>,<1,1.50,0.5>} texture {Walls} rotate y*15 } union{ box{<-1,1.50,0.5>,<1,1.75,0>}//Ledge //main pillars box{<-0.75,-1,-0.1>,<-0.5,1.75,0.2>} box{<0.75,-1,-0.1>,<0.5,1.75,0.2>} //inner Pillars box{<0.66,-1,0.3>,<0.83,1.585,0.5>} box{<0.32,-1,0.3>,<0.39,1.255,0.5>} box{<-0.02,-1,0.3>,<0.15,1.75,0.5>} box{<-0.36,-1,0.3>,<-0.19,1.75,0.5>} box{<-0.7,-1,0.3>,<-0.53,1.75,0.5>} box{<-1,-1,0.3>,<-0.87,1.75,0.5>} texture {Walls} rotate y*15 }