// Persistence of Vision Ray Tracer Scene Description File // File: HeightField.pov // Vers: 3.6 // Desc: Basic Scene Example of heightfield. Use in the same manner in 3d modelling programme // Date: 01/31/08 // Auth: ? // #if(frame_number>1) #error "Done" #end #version 3.6; #include "colors.inc" global_settings { assumed_gamma 1.0 } // ---------------------------------------- sky_sphere { pigment { gradient y color_map { [0.0 rgb <0.6,0.7,1.0>] [0.7 rgb <0.0,0.1,0.8>] } } } light_source { <0, 0, 0> color rgb <1, 1, 1> translate <-30, 30, -30> } // ---------------------------------------- plane { y, -1 pigment { checker pigment{colour rgb 1}pigment{colour rgb <0,.3,1>}} } intersection{ intersection{ // x height_field {png "HF007.png" smooth // -x pigment { image_map { png "HF001.png" map_type 0 interpolate 2 } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 rotate y*90 rotate z*90 } height_field {png "HF008.png" smooth // x pigment { image_map { png "HF002.png" map_type 0 interpolate 2 once } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 rotate y*-90 rotate z*-90 } } intersection{ // y height_field {png "HF009.png" smooth // -y pigment { image_map { png "HF003.png" map_type 0 interpolate 2 once } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 rotate x*180 } height_field {png "HF010.png" smooth // y pigment { image_map { png "HF004.png" map_type 0 interpolate 2 once } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 //rotate y*-90 // rotate <0,0,0> } } intersection{ // z height_field {png "HF011.png" smooth // -z pigment { image_map { png "HF005.png" map_type 0 interpolate 2 once } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 rotate x*-90 } height_field {png "HF012.png" smooth // z pigment { image_map { png "HF006.png" map_type 0 interpolate 2 once } rotate x*90 // lay X-Y image map down onto X-Z height field plane }/* */ translate -.5 scale 2.02 rotate x*90 } } pigment{rgb 1} finish{specular 1 brilliance 4 reflection 0} } camera { location <-2, 4, -4> direction 1.5*z right x*image_width/image_height look_at <0.0, 0.0, 0.0> }