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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Tom Price
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.         location <0.0 30.0 -200.0>
  11.         direction <0.0 -0.2 1.0>
  12.         up <0.0 1.0 0.0>
  13.         right <1.333 0.0 0.0>
  14. end_view_point
  15.  
  16. object
  17.         plane <0.0 1.0 0.0> -60.0 end_plane
  18.         texture
  19.           0.01
  20.           Pine_Wood
  21.           scale <4.0 1.0 2.0>
  22.           rotate <0.0 45.0 0.0>
  23.           ambient 0.3
  24.           diffuse 0.7
  25. {      reflection 0.4    }
  26.           brilliance 3.0
  27.         end_texture
  28. end_object
  29.  
  30. object
  31.         quadric Cylinder_X end_quadric
  32.         scale <5.0 5.0 5.0>
  33.         translate <0.0 -60.0 120.0>
  34.         rotate <0.0 -40.0 0.0>
  35.         texture
  36.           0.01
  37.           colour Brown
  38.           ambient 0.3
  39.           diffuse 0.7
  40.           reflection 0.4
  41.         end_texture
  42. end_object
  43.  
  44. object
  45.         quadric Cylinder_X end_quadric
  46.         scale <5.0 5.0 5.0>
  47.         translate <0.0 -60.0 120.0>
  48.         rotate <0.0 40.0 0.0>
  49.         texture
  50.           0.01
  51.           colour Brown
  52.           ambient 0.3
  53.           diffuse 0.7
  54. {         reflection 0.4    }
  55.         end_texture
  56. end_object
  57.  
  58. object
  59.         plane <0.0 0.0 1.0> -240.0 end_plane
  60.         texture
  61.           0.01
  62.           colour Gray
  63.           ambient 0.2
  64.           diffuse 0.7
  65. {         reflection 0.75    }
  66.           brilliance 3.0
  67.         end_texture
  68. end_object
  69.  
  70. object
  71.         plane <0.0 0.0 1.0> 120.0 end_plane
  72.         rotate <0.0 -40.0 0.0>
  73.         texture
  74.           0.01
  75.           colour Gray
  76.           ambient 0.2
  77.           diffuse 0.7
  78.           reflection 0.75
  79.           brilliance 3.0
  80.         end_texture
  81. end_object
  82.  
  83. object
  84.         plane <0.0 0.0 1.0> 120.0 end_plane
  85.         rotate <0.0 40.0 0.0>
  86.         texture
  87.           0.01
  88.           colour Gray
  89.           ambient 0.2
  90.           diffuse 0.7
  91.           reflection 0.75
  92.           brilliance 3.0
  93.         end_texture
  94. end_object
  95.  
  96. object
  97.         sphere <0.0 32.659862 0.0> 20.0 end_sphere
  98.  
  99.     texture colour Clear end_texture
  100.         texture
  101.           0.01
  102.           colour White alpha 0.90
  103.           ambient 0.7
  104.           diffuse 0.3
  105.           reflection 0.5
  106.           refraction 1.0
  107.           ior 1.5
  108.           brilliance 5.0
  109.         end_texture
  110. end_object
  111.  
  112. object
  113.         sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  114.  
  115.         rotate <0.0 -15.0 0.0>
  116.     texture colour Clear end_texture
  117.         texture
  118.           0.01
  119.           colour CRed alpha 0.90
  120.           ambient 0.7
  121.           diffuse 0.3
  122.           reflection 0.5
  123.           refraction 1.0
  124.           ior 1.5
  125.           brilliance 5.0
  126.         end_texture
  127. end_object
  128.  
  129. object
  130.         sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  131.  
  132.         rotate <0.0 -135.0 0.0>
  133.     texture colour Clear end_texture
  134.         texture
  135.           0.01
  136.           colour CGreen alpha 0.90
  137.           ambient 0.7
  138.           diffuse 0.3
  139.           reflection 0.5
  140.           refraction 1.0
  141.           ior 1.5
  142.           brilliance 5.0
  143.         end_texture
  144. end_object
  145.  
  146. object
  147.         sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  148.  
  149.         rotate <0.0 105.0 0.0>
  150.     texture colour Clear end_texture
  151.         texture
  152.           0.01
  153.           colour CBlue alpha 0.90
  154.           ambient 0.7
  155.           diffuse 0.3
  156.           reflection 0.5
  157.           refraction 1.0
  158.           ior 1.5
  159.           brilliance 5.0
  160.         end_texture
  161. end_object
  162.  
  163. object
  164.         sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  165.  
  166.         rotate <0.0 -75.0 0.0>
  167.     texture colour Clear end_texture
  168.         texture
  169.           0.01
  170.           colour Cyan alpha 0.90
  171.           ambient 0.7
  172.           diffuse 0.3
  173.           reflection 0.5
  174.           refraction 1.0
  175.           ior 1.5
  176.           brilliance 5.0
  177.         end_texture
  178. end_object
  179.  
  180. object
  181.         sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  182.  
  183.         rotate <0.0 -195.0 0.0>
  184.     texture colour Clear end_texture
  185.         texture
  186.           0.01
  187.           colour Magenta alpha 0.90
  188.           ambient 0.7
  189.           diffuse 0.3
  190.           reflection 0.5
  191.           refraction 1.0
  192.           ior 1.5
  193.           brilliance 5.0
  194.         end_texture
  195. end_object
  196.  
  197. object
  198.         sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  199.  
  200.         rotate <0.0 45.0 0.0>
  201.     texture colour Clear end_texture
  202.         texture
  203.           0.01
  204.           colour Yellow alpha 0.90
  205.           ambient 0.7
  206.           diffuse 0.3
  207.           reflection 0.5
  208.           refraction 1.0
  209.           ior 1.5
  210.           brilliance 5.0
  211.         end_texture
  212. end_object
  213.  
  214. object
  215.         sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  216.  
  217.         rotate <0.0 -15.0 0.0>
  218.     texture colour Clear end_texture
  219.         texture
  220.           0.01
  221.           colour DimGray alpha 0.90
  222.           ambient 0.7
  223.           diffuse 0.3
  224.           reflection 0.5
  225.           refraction 1.0
  226.           ior 1.5
  227.           brilliance 5.0
  228.         end_texture
  229. end_object
  230.  
  231. object
  232.         sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  233.  
  234.         rotate <0.0 -135.0 0.0>
  235.     texture colour Clear end_texture
  236.         texture
  237.           0.01
  238.           colour Turquoise alpha 0.90
  239.           ambient 0.7
  240.           diffuse 0.3
  241.           reflection 0.5
  242.           refraction 1.0
  243.           ior 1.5
  244.           brilliance 5.0
  245.         end_texture
  246. end_object
  247.  
  248. object
  249.         sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  250.  
  251.         rotate <0.0 105.0 0.0>
  252.     texture colour Clear end_texture
  253.         texture
  254.           0.01
  255.           colour Tan alpha 0.90
  256.           ambient 0.7
  257.           diffuse 0.3
  258.           reflection 0.5
  259.           refraction 1.0
  260.           ior 1.5
  261.           brilliance 5.0
  262.         end_texture
  263. end_object
  264.  
  265. object
  266.         sphere <0.0 0.0 0.0> 2.0 end_sphere
  267.         texture
  268.           colour White
  269.           ambient 1.0
  270.           diffuse 0.0
  271.         end_texture
  272.         light_source
  273.         colour White
  274. end_object
  275.