#include "colors.inc" #include "shapes.inc" #include "textures.inc" #include "woods.inc" #declare VillageHut = object { union { difference { cylinder { <0, -0.05, 0> <0, 0.05, 0> 0.05 texture { T_Wood16 normal { bumps 0.1 } } } box { <-.02, -0.1, -.1> <0.02, 0.05, 0.1> translate <0, -0.04, -0.1> texture { T_Wood16 } } } cone { <0, 0.008, 0>, 0.08 <0, 0.15, 0>, 0.002 } } } camera { location <0, 0.2, -10> look_at 0 angle 20 } light_source { <1000,500,-2000> color rgb <0.8, 0.8, 0.8> } light_source { <2, 10, -3> color White area_light <5, 0, 0>, <0, 0, 5>, 4, 4 adaptive 1 jitter } fog { distance 30 colour rgbf<0.5, 0.5, 0.6, 1.0> fog_type 2 fog_offset 2 fog_alt 1 } // BEGIN valley floor height_field { tga "height-field.tga" smooth texture { pigment { color rgb <0.2, 0.4, 0.17> } normal { bumps 0.7 } finish { ambient 0.1 diffuse 0.7 phong 0.75 crand 0.07 } } translate <-.5, -.5, -.5> scale <34, 1, 34> } // END valley floor // BEGIN mountains height_field { tga "height-field.tga" smooth texture { pigment { gradient y color_map { [0.0 color rgb <.25, .18, .105>] [1.0 color rgb <.15, .2, .10>] } scale 0.5 translate -0.5 } } translate <-.5, -.5, 0> scale <100, 17, 100> } // END mountains sky_sphere { pigment { gradient y color_map { [0 color Black] [1 color Blue] } scale 0.45 translate -1 } } // BEGIN village huts object { VillageHut translate <-0.2, .00, -6> texture { T_Wood17 normal { bumps 0.008 } finish { ambient 0.1 diffuse 0.6 } } } object { VillageHut translate <2, .11, 3> texture { T_Wood17 normal { bumps 0.008 } finish { ambient 0.1 diffuse 0.6 } } } object { VillageHut translate <0.7, -.07, -4> texture { T_Wood17 normal { bumps 0.008 } finish { ambient 0.1 diffuse 0.6 } } } object { VillageHut translate <-1, 0, 1.2> texture { T_Wood17 normal { bumps 0.008 } finish { ambient 0.1 diffuse 0.6 } } } object { VillageHut translate <-2, .05, 2.5> texture { T_Wood17 normal { bumps 0.008 } finish { ambient 0.1 diffuse 0.6 } } } // END village huts