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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Anon.
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.    location <0.0  20.0  -100.0>
  11.    direction <0.0 0.0  1.0>
  12.    up  <0.0  1.0  0.0>
  13.    right <1.33333 0.0 0.0>
  14. end_view_point
  15.  
  16. fog
  17.    colour red 0.2 green 0.2 blue 0.2
  18.    200.0
  19. end_fog
  20.  
  21. { Put down the beloved famous raytrace green/yellow checkered floor }
  22. object
  23.    plane <0.0 1.0 0.0> -10.0 end_plane
  24.    texture
  25.       checker colour Yellow colour CGreen
  26.       ambient 0.2
  27.       diffuse 0.8
  28.       scale < 20.0 20.0 20.0 >
  29.    end_texture
  30.    colour Yellow
  31. end_object
  32.  
  33. object
  34.    sphere <0.0  25.0  0.0>  40.0 end_sphere
  35.  
  36.    texture
  37.       ambient 0.2
  38.       diffuse 0.6
  39.       colour CRed
  40.       scale <10.0 10.0 10.0>
  41.       rotate <-90.0 0.0 0.0>
  42.       phong 1.0
  43.       phongsize 20
  44.    end_texture
  45.    colour CRed
  46. end_object
  47.  
  48. object
  49.    sphere <-100.0  150.0  200.0>  20.0 end_sphere
  50.    texture
  51.       colour Magenta
  52.       ambient 0.2
  53.       diffuse 0.6
  54.       phong 1.0
  55.       phongsize 20
  56.    end_texture
  57.    colour Magenta
  58. end_object
  59.  
  60. object
  61.    sphere <100.0  25.0  100.0>  30.0 end_sphere
  62.  
  63.    texture
  64.       colour CRed
  65.       ambient 0.2
  66.       diffuse 0.6
  67.       phong 1.0
  68.       phongsize 20
  69.    end_texture
  70.    colour CRed
  71. end_object
  72.  
  73. object
  74.    sphere <0.0  0.0  0.0>  2.0 end_sphere
  75.    translate <100.0  120.0  40.0>
  76.    texture
  77.       colour White
  78.       ambient 1.0
  79.       diffuse 0.0
  80.    end_texture
  81.    light_source
  82.    colour White
  83. end_object
  84.