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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Aarron A. Collins
  4. // Rose in a Glass Ball 
  5. // Imagemap test file 
  6.  
  7. #include "shapes.dat"
  8. #include "colors.dat"
  9. #include "textures.dat"
  10.  
  11. view_point
  12.    location <0.0  20.0  -100.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. end_view_point
  17.  
  18. object
  19.    sphere <0.0  25.0  0.0>  40.0 end_sphere
  20.  
  21.    texture                    { x-y oriented bitmap image }
  22.      imagemap <1.0 -1.0 0.0> gif "rough.gif" 
  23.       interpolate 2.0
  24.      end_map
  25.      scale < 75.0 75.0 75.0 >            { scaled and translated so only }
  26.      translate < 35.0 -19.0 0.0 >        { 1 instance of the map appears. }
  27.      ambient 0.2
  28.      diffuse 0.7
  29.      phong 0.75
  30.    end_texture
  31. end_object
  32.  
  33. object
  34.    plane <0.0 1.0 0.0> -10.0 end_plane
  35.    texture
  36.      color Gold
  37.      ambient 0.1
  38.      diffuse 0.5
  39.     reflection 0.5    
  40.    end_texture
  41. end_object
  42.  
  43. object
  44.    sphere  <0.0  0.0  0.0> 2.0 end_sphere
  45.    translate  <100.0  120.0  -130.0>
  46.    texture
  47.      colour White
  48.      ambient 1.0
  49.      diffuse 0.0
  50.    end_texture
  51.    light_source
  52.    colour White
  53. end_object
  54.  
  55. object
  56.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  57.    translate <-100.0  100.0  -130.0>
  58.    texture
  59.      colour White
  60.      ambient 1.0
  61.      diffuse 0.0
  62.    end_texture
  63.    light_source
  64.    colour White
  65. end_object
  66.