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

  1. // Persistence of Vision Raytracer
  2. // Imagemap test file by Aaron a. Collins 
  3. // No, it's a gougemap test by Aaron Collins! 
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.    location <0.0  20.0  -120.0>
  11.    direction <0.0 0.0  1.5>
  12.    up  <0.0  1.0  0.0>
  13.    right <1.33333 0.0 0.0>
  14.    look_at <0.0 20.0 0.0>
  15. end_view_point
  16.  
  17. object
  18.    sphere <0.0  25.0  0.0>  50.0 end_sphere
  19.    texture                    { x-y oriented bitmap image }
  20.      color CBlue 
  21.      gougemap <1.0 -1.0 0.0> gif "gouge.gif"
  22.      gougesize 1.0
  23.      end_map
  24.      scale < 30.0 30.0 30.0 >            { scaled and translated so only }
  25.      translate < 35.0 -19.0 0.0 >        { 1 instance of the map appears. }
  26.      ambient 0.2
  27.      diffuse 0.7
  28. //     specular 0.6
  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. {
  58.  
  59. object
  60.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  61.    translate <-100.0  10.0  -130.0>
  62.  
  63.    texture
  64.      colour White
  65.      ambient 1.0
  66.      diffuse 0.0
  67.    end_texture
  68.    light_source
  69.    colour White
  70. end_object
  71.  
  72. }
  73.