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

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