home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Graphics / Graphics.zip / dem2pov.zip / hftest.pov < prev    next >
Text File  |  1995-04-09  |  2KB  |  58 lines

  1. // Persistence of Vision Raytracer
  2. // DEM2POV test 
  3.  
  4.  
  5. #include "shapes.inc"
  6. #include "colors.inc"
  7. #include "textures.inc"
  8.  
  9. camera {
  10.    location <-600.0, 200.0, -600.0>
  11.    direction <0.0, 0.0, 4.0>   //4.0 for telephoto effect
  12.    up <0.0, 1.0, 0.0>        
  13.    right <4/3, 0.0, 0.0>
  14.    look_at <0.0, 50.0, 0.0>
  15. }
  16.  
  17. // Define a couple of colors for the light sources.
  18. #declare MainLight = color red 0.8 green 0.8 blue 0.8
  19. #declare FillLight = color red 0.23 green 0.23 blue 0.25
  20. // Light source (main)
  21. light_source { <0.0, 300.0, -60.0> color MainLight }
  22. // Light source ( shadow filler )
  23. light_source { <500.0, 300.0, 600.0> color FillLight }
  24.  
  25. height_field  {
  26.  
  27.    tga "kirkland.tga"    // x 0-1.0 y 0-1.0 z 0-1.0
  28.  
  29. //   water_level 0.0
  30. //     pigment { White }
  31.    pigment { gradient y  // color map for elevation
  32.         color_map {
  33.             [0.0 color red 1.0 green 0.5 blue 0.0]
  34.             [0.25 color red 0.5 green 0.5 blue 0.0]
  35.             [0.300 color red 0.5 green 0.75 blue 0.25]
  36.             [0.500 color red 0.25 green 0.25 blue 0.25]
  37.             [0.9 color red 0.75 green 0.75 blue 0.75]
  38.             [1.0 color red 1.0 green 1.0 blue 1.0]
  39.         }
  40.     }
  41.    
  42.    finish {
  43.       crand 0.025         // dither  - not used often, but this image needs it. 
  44.       ambient 0.2         // Very dark shadows
  45.       diffuse 0.8         // Whiten the whites
  46.       phong 0.2          // shiny
  47.       phong_size 100.0    // with tight highlights
  48.       specular 0.5
  49.       roughness 0.05
  50.    }
  51.    translate <-0.5, 0.0, -0.5>  // Center the image by half  
  52.    scale < 1200, 64.0, 1200 >  // scale horiz x 1200 and vert x 64
  53.  
  54. }
  55.  
  56.  
  57. // end of file
  58.