home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / pvinterp.pov < prev    next >
Text File  |  1992-07-21  |  1KB  |  60 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // Imagemap interpolation test by CdW!
  4. // NOTE: Requires "test.gif"
  5.  
  6. #include "colors.inc"
  7.  
  8. #declare Bilinear = 2.0
  9. #declare Norm_Dist = 4.0
  10.  
  11. camera {
  12.    location <0.0  0.0  -25.0>
  13.    direction <0.0 0.0  1.0>
  14.    up  <0.0  1.0  0.0>
  15.    right <1.33333 0.0 0.0>
  16.    look_at <0 0 0>
  17. }
  18.  
  19. // Left hemisphere: Bilinear
  20. object {
  21.    sphere { <0.0  0.0  0.0>  1.0 }
  22.    clipped_by { plane { <1 0 0> 0 } }
  23.    texture {                    // x-y oriented bitmap image 
  24.       color Red
  25.       image_map { gif "test.gif"
  26.          interpolate Bilinear
  27.       }
  28.       translate <-0.5 -0.5 0>
  29.       ambient 0.2
  30.       diffuse 0.7
  31.    }
  32.    scale <10 10 10>
  33.    translate <-1 0 0>
  34. }
  35.  
  36. // Right hemisphere: norm_dist
  37. object {
  38.    sphere { <0.0  0.0  0.0>  1.0 }
  39.    clipped_by { plane { <-1 0 0> 0 } }
  40.    texture {                    // x-y oriented bitmap image
  41.       color Blue
  42.       image_map { gif "test.gif"
  43.          interpolate Norm_Dist
  44.       }
  45.       translate <-0.5 -0.5 0>
  46.       ambient 0.2
  47.       diffuse 0.7
  48.    }
  49.    scale <10 10 10>
  50.    translate <1 0 0>
  51. }
  52.  
  53.  
  54. object {
  55.    light_source { <100.0  120.0  -130.0>
  56.       colour White
  57.    }
  58. }
  59.  
  60.