home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level1 / pvinterp.pov < prev    next >
Text File  |  1993-09-28  |  1KB  |  57 lines

  1. // Persistence Of Vision raytracer version 2.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 <4/3, 0.0, 0.0>
  16.    look_at <0, 0, 0>
  17. }
  18.  
  19. // Left hemisphere: Bilinear
  20. sphere { <0.0, 0.0, 0.0>, 1.0
  21.    clipped_by { plane { x, 0 } }
  22.  
  23.    pigment {
  24.       image_map { gif "test.gif" interpolate Bilinear }
  25.       quick_color Red
  26.       translate <-0.5, -0.5, 0>
  27.    }
  28.    finish {
  29.       ambient 0.2
  30.       diffuse 0.7
  31.    }
  32.  
  33.    scale 10
  34.    translate -1*x
  35. }
  36.  
  37. // Right hemisphere: norm_dist
  38. sphere { <0.0, 0.0, 0.0>, 1.0
  39.    clipped_by { plane { -x, 0 } }
  40.  
  41.    pigment {
  42.       image_map { gif "test.gif" interpolate Norm_Dist }
  43.       quick_color Blue
  44.       translate <-0.5, -0.5, 0>
  45.    }
  46.    finish {
  47.       ambient 0.2
  48.       diffuse 0.7
  49.    }
  50.  
  51.    scale 10
  52.    translate 1*x
  53. }
  54.  
  55. light_source { <100.0, 120.0, -130.0> colour White }
  56.  
  57.