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

  1. // Persistence of Vision Raytracer
  2. // a very simple file to demonstrate material_map - CdW 
  3. // 7/29/91 
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. #declare Bi = 2.0 
  10. #declare Texture0 = { Planar image map }
  11. texture imagemap 0 gif "rough.gif" interpolate 0 end_map end_texture
  12.  
  13.  
  14. view_point
  15.    location <0.0  20.0  -125.0>
  16.    direction <0.0 0.0  2.0>
  17.    up  <0.0  1.0  0.0>
  18.    right <1.33333 0.0 0.0>
  19.    look_at <0.0 25.0 0.0> 
  20. end_view_point
  21.  
  22. object
  23.    // QSphere with radius 30 (diameter 60 )
  24.    sphere <0.0  25.0  0.0>  20.0 end_sphere
  25.    texture { Declare it like a normal image map }
  26.     Glass
  27. //    scale <10.0 10.0 10.0>
  28.    end_texture
  29. end_object
  30.  
  31. object
  32.    plane <0 0 1> 150 end_plane
  33.    texture Texture0 
  34.    scale <90 90 90>
  35.    end_texture
  36. end_object
  37.  
  38.  
  39. object
  40.    sphere  <0.0  0.0  0.0> 2.0 end_sphere
  41.    translate  <100.0  140.0  -130.0>
  42.  
  43.    texture
  44.      colour red 0.5 green 0.5 blue 0.5
  45.      ambient 1.0
  46.      diffuse 0.0
  47.    end_texture
  48.    light_source
  49.    colour White
  50. end_object
  51. {
  52. object
  53.    sphere <0.0  0.0  0.0> 2.0 end_sphere
  54.    translate <-100.0  100.0  -130.0>
  55.  
  56.    texture
  57.      colour White
  58.      ambient 1.0
  59.      diffuse 0.0
  60.    end_texture
  61.    light_source
  62.    colour White
  63. end_object
  64. }
  65.