// Persistence of Vision Ray Tracer Scene Description File // File: portti1.pov // Vers: 3 // Desc: Wall & Arch Example where I study CSG. // Date: 21.3.1999 // Auth: Olli "Razer" Rajala // #version 3 #include "colors.inc" #include "stones.inc" #include "skies.inc" #include "woods.inc" global_settings { assumed_gamma 1.5 } // - camera Setup --------------------------------------------- camera { location < 2.0, 1.5, -4.0 > direction 1.5*z right 4/3*x look_at < 0.0, 1.0, 0.0 > } // - end camera setup ----------------------------------------- // - lighting ------------------------------------------------- light_source { < 10, 30, -20 > color White } /*light_source { 0*x //<-30, 30, -30 > // light's position (translated below) color White // red 1.0 green 1.0 blue 1.0 // light's color translate < 0, 10, -10 > } */ // - end lighting ----------------------------------------------- // - sky setup -------------------------------------------------- sky_sphere { S_Cloud1 } // - end sky setup ---------------------------------------------- plane { <0, 1, 0>, 0 pigment { checker color rgb 1, color Blue } } // - wall and archway ------------------------------------------- difference { union { box { // wall <-5, 3, 0.2>, <7, 0, 1.2> texture { T_Grnt9 } } box { // left "tower" <-3, 3, 0.2>, <-2, 4, 2> texture { T_Grnt9 } } box { // left middle "tower" <-0.5, 3, 0.2>, <0.5, 4, 1.2> texture { T_Grnt9 } } box { // right middle "tower" <2, 3, 0.2>, <3, 4, 1.2> texture { T_Grnt9 } } box { // right "tower" <4.5, 3, 0.2>, < 5.5, 4, 1.1> texture { T_Grnt9 } } union { // arch cylinder { < 0, 1, 0 >, < 0, 1, 0.4 >, 1 } box { <-1, 0, 0>, <1, 1, 0.4> } texture { T_Grnt10 } } } union { // archway opening cylinder { <0,1,3>, <0,1,-1>, 0.75 } box { < -0.75, -0.15, 3>, < 0.75, 1, -1 > } texture { T_Grnt10 } } union { // left window cylinder { <-3,2,3>, <-3,2,-1>, 0.4 texture { T_Grnt9 } } box { <-3.4, 2, 3>, <-2.6, 1, -1 > texture { T_Grnt9 } } } union { // right window cylinder { <3,2,3>, <3,2,-1>, 0.4 texture { T_Grnt9 } } box { <3.4, 2, 3>, <2.6, 1, -1 > texture { T_Grnt9 } } } rotate -55*y scale 0.5 } // - end wall and archway // - bridge ----------------------------------------------------- box { <-0.7, .1, 0.1>, <-0.4, 0, -2.2> texture { P_WoodGrain1B } rotate -55*y scale 0.5 } box { <-0.3, .1, 0.1>, <0, 0, -2.2> texture { P_WoodGrain1B } rotate -55*y scale 0.5 } box { <.1, .1, 0.1>, <.4, 0, -2.2> texture { P_WoodGrain1B } rotate -55*y scale 0.5 } box { <.5, .1, 0.1>, <.8, 0, -2.2> texture { P_WoodGrain1B } rotate -55*y scale 0.5 } // - end bridge -------------------------------------------------