#include "colors.inc" #include "shapes.inc" #include "textures.inc" #include "stones1.inc" // ground union{ plane { y, -1.0 texture { pigment { agate turbulence 1 lambda 1.5 omega .8 octaves 8 color_map { [0.00 color rgb <.686, .729, .725>] [0.33 color rgb <.482, .549, .545>] [0.86 color rgb <.725, .769, .757>] [1.00 color rgb <.651, .694, .678>] } } } } box { <-5, -1.1, -5><7, -0.99, -5.5> pigment { color <.471, .525, .522> } } box { <-5, -1.1, -6.5><5, -0.99, -9> pigment { color <.722, .761, .733> } } box { <-5, -1.1, -7><5, -0.989, -7.2> pigment { color <.471, .525, .522> } } } // sky sky_sphere { pigment { gradient y color_map { [0.000 0.002 color rgb <0.27, 0.38, 0.64> color rgb <0.27, 0.38, 0.64>] } scale 2 translate -1 } // cloud pigment { bozo turbulence 0.65 octaves 6 omega 0.7 lambda 2 color_map { [0.0 0.1 color rgb <0.85, 0.85, 0.85> color rgb <0.75, 0.75, 0.75>] [0.1 0.5 color rgb <0.75, 0.75, 0.75> color rgbt <1, 1, 1, 1>] [0.5 1.0 color rgbt <1, 1, 1, 1> color rgbt <1, 1, 1, 1>] } scale <0.2, 0.5, 0.2> } rotate -135*x } // lighting global_settings { ambient_light rgb<1, 1, 1> } light_source { <2, 50, -30> color White fade_distance 30 } light_source { <0, 100, -150> color White } light_source { <200, 10, 200> color Gray35 fade_distance 100 } camera { location <6, -.5, -9.5> look_at <0.0, 1.5, 0.0> focal_point < 2.5, 1, -2.5> // green box in focus aperture 0.4 // a nice compromise blur_samples 100 // more samples, higher quality image } //buiding merge { // top post cylinder { <2.0, 3.9, -2.0> <2.0, 7.5, -2.0> 0.05 pigment { color <0.86, 0.894, 0.85> } } // top part difference{ box{ <-3.1, 3.9, -3.1> <3.1, 4.2, 3.1> pigment { White_Marble turbulence 50 color_map { [0.00 color <0.2, 0.2, 0.2>] [0.15 color <0.86, 0.894, 0.85>] [1.00 color White] } rotate 45*z } } box { <2.2, 3.2, -2.2>, < 3.21, 4.21, -3.21> } } cylinder { <2.0, 3.9, -2.0> <2.0, 4.21, -2.0> 1.11 pigment { White_Marble turbulence 50 color_map { [0.00 color <0.2, 0.2, 0.2>] [0.15 color <0.86, 0.894, 0.85>] [1.00 color White] } rotate 45*z } } difference{ // main body union{ difference{ box { <-3, -4, -3>, < 3, 4, 3> pigment { White_Marble turbulence 50 color_map { [0.00 color <0.2, 0.2, 0.2>] [0.15 color <0.86, 0.894, 0.85>] [1.00 color White] } rotate 45*z } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } } cylinder { <2, -4, -2> <2, 4, -2> 1 pigment { White_Marble turbulence 50 color_map { [0.00 color <0.2, 0.2, 0.2>] [0.15 color <0.86, 0.894, 0.85>] [1.00 color White] } rotate 45*z } } } // all windows union { // left side window union{ box{ <1.2, 0, -2.9> <1.6, 3.2, -3.01> } cylinder{ <1.4, 3.2, -2.9> <1.4, 3.2, -3.01>, 0.2 } box{ <0.2, 0, -2.9> <0.6, 3.2, -3.01> } cylinder{ <0.4, 3.2, -2.9> <0.4, 3.2, -3.01>, 0.2 } box{ <-0.6, 0, -2.9> <-1.0, 3.2, -3.01> } cylinder{ <-0.8, 3.2, -2.9> <-0.8, 3.2, -3.01>, 0.2 } box{ <-1.8, 0, -2.9> <-2.2, 3.2, -3.01> } cylinder{ <-2.0, 3.2, -2.9> <-2.0, 3.2, -3.01>, 0.2 } } // end union // center 5 windows box { <2.5, 2.76, -2.6> <3.0, 3.23, -3.0> } box { <2.5, 2.07, -2.6> <3.0, 2.53, -3.0> } box { <2.5, 1.38, -2.6> <3.0, 1.84, -3.0> } box { <2.5, 0.69, -2.6> <3.0, 1.15, -3.0> } box { <2.5, 0, -2.6> <3.0, 0.46, -3.0> } // right side window union{ box{ <1.2, 0, -2.9> <1.6, 3.2, -3.01> rotate <0, 270, 0> } cylinder{ <1.4, 3.2, -2.9> <1.4, 3.2, -3.01>, 0.2 rotate <0, 270, 0> } box{ <0.2, 0, -2.9> <0.6, 3.2, -3.01> rotate <0, 270, 0> } cylinder{ <0.4, 3.2, -2.9> <0.4, 3.2, -3.01>, 0.2 rotate <0, 270, 0> } box{ <-0.6, 0, -2.9> <-1.0, 3.2, -3.01> rotate <0, 270, 0> } cylinder{ <-0.8, 3.2, -2.9> <-0.8, 3.2, -3.01>, 0.2 rotate <0, 270, 0> } box{ <-1.8, 0, -2.9> <-2.2, 3.2, -3.01> rotate <0, 270, 0> } cylinder{ <-2.0, 3.2, -2.9> <-2.0, 3.2, -3.01>, 0.2 rotate <0, 270, 0> } } // end union // all left ground doors union{ box{ <1.2, -1.1, -2.9> <1.6, -0.5, -3.01> } cylinder{ <1.4, -0.5, -2.9> <1.4, -0.5, -3.01>, 0.2 } box{ <0.2, -1.1, -2.9> <0.6, -0.5, -3.01> } cylinder{ <0.4, -0.5, -2.9> <0.4, -0.5, -3.01>, 0.2 } box{ <-0.6, -1.1, -2.9> <-1.0, -0.5, -3.01> } cylinder{ <-0.8, -0.5, -2.9> <-0.8, -0.5, -3.01>, 0.2 } box{ <-1.8, -1.10, -2.9> <-2.2, -0.5, -3.01> } cylinder{ <-2.0, -0.5, -2.9> <-2.0, -0.5, -3.01>, 0.2 } } // end union // all right ground doors union{ box{ <1.2, -1.1, -2.9> <1.6, -0.5, -3.01> rotate <0, 270, 0> } cylinder{ <1.4, -0.5, -2.9> <1.4, -0.5, -3.01>, 0.2 rotate <0, 270, 0> } box{ <0.2, -1.1, -2.9> <0.6, -0.5, -3.01> rotate <0, 270, 0> } cylinder{ <0.4, -0.5, -2.9> <0.4, -0.5, -3.01>, 0.2 rotate <0, 270, 0> } box{ <-0.6, -1.1, -2.9> <-1.0, -0.5, -3.01> rotate <0, 270, 0> } cylinder{ <-0.8, -0.5, -2.9> <-0.8, -0.5, -3.01>, 0.2 rotate <0, 270, 0> } box{ <-1.8, -1.10, -2.9> <-2.2, -0.5, -3.01> rotate <0, 270, 0> } cylinder{ <-2.0, -0.5, -2.9> <-2.0, -0.5, -3.01>, 0.2 rotate <0, 270, 0> } } // end union } } union { // window glasses difference{ box { <-2.3, -0.1, -2.98> <2.2, 3.5, 2.95> pigment { color <0.408, 0.478, 0.434> } finish { reflection {0.5} } } box { <2.2, 3.2, -2.2>, < 3.21, 4.21, -3.21> } }//end difference cylinder { <2.0, -4, -2.2> <2.0, 4, -2.2> 0.8 pigment { color <0.322, 0.408, 0.357> } finish { reflection {0.4} }//end cylinder }//end union } } // all window thin horizontal stripes union{ difference{ box { <-2.98, 2.99, -2.99>, < 2.98, 3.01, 2.98> pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } // end box } // end difference cylinder { <2, 2.99, -2> <2, 3.01, -2> 0.98 pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } // end cylinder } //end union union{ difference{ box { <-2.98, 2.295, -2.99>, < 2.98, 2.305, 2.98> pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } // end box } // end difference cylinder { <2, 2.295, -2> <2, 2.305, -2> 0.98 pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } // end cylinder } //end union union{ difference{ box { <-2.98, 1.605, -2.99>, < 2.98, 1.615, 2.98> pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } // end box } // end difference cylinder { <2, 1.605, -2> <2, 1.615, -2> 0.98 pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } // end cylinder } //end union union{ difference{ box { <-2.98, 0.915, -2.99>, < 2.98, 0.925, 2.98> pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } // end box } // end difference cylinder { <2, 0.915, -2> <2, 0.925, -2> 0.98 finish { reflection {0.7} } pigment { color <0.357, 0.416, 0.396> } } // end cylinder } //end union union{ difference{ box { <-2.98, 0.225, -2.99>, < 2.98, 0.235, 2.98> pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } box { <3.01, -4.01, -3.01>, < 2.01, 4.01, -2.01> } // end box } // end difference cylinder { <2, 0.225, -2> <2, 0.235, -2> 0.98 pigment { color <0.357, 0.416, 0.396> } finish { reflection {0.7} } } // end cylinder } //end union // all window wide horizontal stripe union{ box { <-2.98, 2.53, -2.99> <2, 2.76, -2.99> pigment {color <0.573, 0.616, 0.6>} finish { reflection {0.15} } } //end box box { <-2.98, 1.84, -2.99> <2, 2.07, -2.99> pigment {color <0.573, 0.616, 0.6>} finish { reflection {0.15} } } //end box box { <-2.98, 1.15, -2.99> <2, 1.38, -2.99> pigment {color <0.573, 0.616, 0.6>} finish { reflection {0.15} } } //end box box { <-2.98, 0.46, -2.99> <2, 0.69, -2.99> pigment {color <0.573, 0.616, 0.6>} finish { reflection {0.15} } } //end box } // end union