home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / PVINTERP.DAT < prev    next >
Encoding:
Text File  |  1991-09-06  |  1.6 KB  |  78 lines

  1. // Persistence of Vision Raytracer
  2. // Imagemap test file by Aaron a. Collins 
  3. // No, it's an interpolation test by CdW! 
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. #declare Bilinear = 2.0
  10. #declare Norm_Dist = 4.0
  11.  
  12. view_point
  13.    location <0.0  50.0  -140.0>
  14.    direction <0.0 0.0  11.0>
  15.    up  <0.0  1.0  0.0>
  16.    right <1.33333 0.0 0.0>
  17.    look_at <10.0 15.0 0.0>
  18. end_view_point
  19. object
  20.    sphere <0.0  25.0  0.0>  50.0 end_sphere
  21.  
  22.    texture                    // x-y oriented bitmap image 
  23.      color CBlue 
  24.      imagemap gif "rough.gif"
  25.      use_colour
  26.      interpolate Bilinear
  27.      end_map
  28.      scale < 20.0 20.0 20.0 >            // scaled and translated so only 
  29.      translate < 35.0 -19.0 0.0 >        // 1 instance of the map appears. 
  30.      ambient 0.2
  31.      diffuse 0.7
  32.      {specular 0.6}
  33.    end_texture
  34.  
  35. end_object
  36. /*
  37. object
  38.    plane <0.0 1.0 0.0> -10.0 end_plane
  39.    texture
  40.      color Gold
  41.      ambient 0.1
  42.      diffuse 0.6
  43.      specular 0.6
  44.      reflection 0.6
  45.    end_texture
  46. end_object
  47. */
  48. object
  49.    sphere  <0.0  0.0  0.0> 2.0 end_sphere
  50.    translate  <100.0  120.0  -130.0>
  51.    texture
  52.      colour red 0.7 green 0.7 blue 0.7
  53.      ambient 1.0
  54.      diffuse 0.0
  55.    end_texture
  56.    light_source
  57.    colour White
  58. end_object
  59.  
  60.  
  61. /*
  62. object
  63.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  64.    translate <-100.0  10.0  -130.0>
  65.  
  66.    texture
  67.      colour red 0.5 green 0.5 blue 0.5
  68.      ambient 1.0
  69.      diffuse 0.0
  70.    end_texture
  71.    light_source
  72.    colour White
  73. end_object
  74.  
  75. object 
  76.   sphere <0.0 0.0 0.0> 280.0 end_sphere
  77. end_object
  78. */