// height field test file jpb 5/16/95 4:31 am // source for "land4.tga": // gforge -d 2.2 -ad 2.6 0.05 -pow 0.35 -pe .5 .5 -mesh 512 #include "colors.inc" #include "shapes.inc" #include "stones.inc" camera { location <.501, -.3, -2> // location <.45, .45, -2> direction <0, 0, 1.7> up <0, 1, 0> right <4/3, 0, 0> look_at <.5, .42, -.5> } /* yellowish light */ object { light_source { <3, 2, -1> color red .84 green .63 blue .42 area_light <0.2, 0, 0> <0,0,-2.5> 2, 7 adaptive 1 jitter } } /* reddish light */ object { light_source { <-3, -3, -.7> color red .7 green .28 blue .112 area_light <.5, -.5, 0> <0, 0, -1> 2, 10 adaptive 1 jitter } } /* sky background fill light */ object { light_source { <-2, -2, -10> color red .05 green .15 blue .15 area_light <4, 0, 0> <0, 4, 0> 3, 3 adaptive 1 jitter } } // heightfield in center of field of view object { height_field {tga "output.tga" } scale < 1, 0.5, 1 > // reduce height (was ys=0.20) rotate < -90, 0, 0 > // flip up from xz plane to xy plane translate < 0, 0, 0 > texture { pigment { color White } normal { bumps 1 scale .0004 } // very fine roughness finish { diffuse 1 ambient 0.02 // specular .1 // crand 0.15 } } } // heightfield on the right object { height_field {tga "output.tga" } scale < 1, 0.5, 1 > // reduce height (was ys=0.20) rotate < -90, 0, 0 > // flip up from xz plane to xy plane translate < 0.990, 0, 0 > texture { pigment { color White } normal { bumps 1 scale .0004 } finish { diffuse 1 ambient 0.02 // specular .1 // crand 0.15 } } } // heightfield to the left object { height_field {tga "output.tga" } scale < 1, 0.5, 1 > // reduce height (was ys=0.20) rotate < -90, 0, 0 > // flip up from xz plane to xy plane translate < -0.990, 0, 0 > texture { pigment { color White } normal { bumps 1 scale .0004 } finish { diffuse 1 ambient 0.02 // specular .1 // crand 0.15 } } }