home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / GRAPHICS / MISC / PVDAT.ZIP / ILLUM2.DAT < prev    next >
Encoding:
Text File  |  1991-09-07  |  4.3 KB  |  231 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.    intersection
  18.         plane <0.0 0.0 1.0> 1.0 end_plane
  19.         plane <0.0 0.0 1.0> -1.0 inverse end_plane
  20.         plane <0.0 1.0 0.0> -60.0 end_plane
  21.    end_intersection
  22.  
  23.    scale <1.0 1.0 200.0>
  24.  
  25.    texture
  26.         0.01
  27.         Apocalypse
  28.         scale <50.0 10.0 20.0>
  29.         rotate <0.0 30.0 0.0>
  30.         ambient 0.3
  31.         diffuse 0.7
  32.         reflection 0.3
  33.         brilliance 3.0
  34.    end_texture
  35. end_object
  36.  
  37. object
  38.    intersection
  39.         sphere <0.0 0.0 0.0> 10000.0 end_sphere
  40.         sphere <0.0 0.0 0.0> 9999.0 inverse end_sphere
  41.    end_intersection
  42.  
  43.    translate <0.0 -9500.0 0.0>
  44.  
  45.    texture
  46.         0.05
  47.         Bright_Blue_Sky
  48.         scale <400.0 50.0 800.0>
  49.         rotate <0.0 -45.0 0.0>
  50.         ambient 0.3
  51.         diffuse 0.5
  52.    end_texture
  53. end_object
  54.  
  55. object
  56.    sphere <0.0 32.659862 0.0> 20.0 end_sphere
  57.  
  58.    texture
  59.         0.01
  60.         colour White
  61.         ambient 0.11
  62.         diffuse 0.22
  63.         reflection 0.7
  64.         brilliance 5.0
  65.    end_texture
  66. end_object
  67.  
  68. object
  69.    sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  70.  
  71.    rotate <0.0 -15.0 0.0>
  72.    texture
  73.         0.01
  74.         colour CRed
  75.         ambient 0.11
  76.         diffuse 0.22
  77.         reflection 0.7
  78.         brilliance 5.0
  79.    end_texture
  80. end_object
  81.  
  82. object
  83.    sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  84.  
  85.    rotate <0.0 -135.0 0.0>
  86.    texture
  87.         0.01
  88.         colour CGreen
  89.         ambient 0.11
  90.         diffuse 0.22
  91.         reflection 0.7
  92.         brilliance 5.0
  93.    end_texture
  94. end_object
  95.  
  96. object
  97.    sphere <0.0 0.0 -23.09401> 20.0 end_sphere
  98.  
  99.    rotate <0.0 105.0 0.0>
  100.    texture
  101.         0.01
  102.         colour CBlue
  103.         ambient 0.11
  104.         diffuse 0.22
  105.         reflection 0.7
  106.         brilliance 5.0
  107.    end_texture
  108. end_object
  109.  
  110. object
  111.    sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  112.  
  113.    rotate <0.0 -75.0 0.0>
  114.    texture
  115.         0.01
  116.         colour Cyan
  117.         ambient 0.11
  118.         diffuse 0.22
  119.         reflection 0.7
  120.         brilliance 5.0
  121.    end_texture
  122. end_object
  123.  
  124. object
  125.    sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  126.  
  127.    rotate <0.0 -195.0 0.0>
  128.    texture
  129.         0.01
  130.         colour Magenta
  131.         ambient 0.11
  132.         diffuse 0.22
  133.         reflection 0.7
  134.         brilliance 5.0
  135.    end_texture
  136. end_object
  137.  
  138. object
  139.    sphere <0.0 -32.659862 -23.09401> 20.0 end_sphere
  140.  
  141.    rotate <0.0 45.0 0.0>
  142.    texture
  143.         0.01
  144.         colour Yellow
  145.         ambient 0.11
  146.         diffuse 0.22
  147.         reflection 0.7
  148.         brilliance 5.0
  149.    end_texture
  150. end_object
  151.  
  152. object
  153.    sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  154.  
  155.    rotate <0.0 -15.0 0.0>
  156.    texture
  157.         0.01
  158.         colour DimGray
  159.         ambient 0.11
  160.         diffuse 0.22
  161.         reflection 0.7
  162.         brilliance 5.0
  163.    end_texture
  164. end_object
  165.  
  166. object
  167.    sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  168.  
  169.    rotate <0.0 -135.0 0.0>
  170.    texture
  171.         0.01
  172.         colour Turquoise
  173.         ambient 0.11
  174.         diffuse 0.22
  175.         reflection 0.7
  176.         brilliance 5.0
  177.    end_texture
  178. end_object
  179.  
  180. object
  181.    sphere <0.0 -32.659862 -46.18802> 20.0 end_sphere
  182.  
  183.    rotate <0.0 105.0 0.0>
  184.    texture
  185.         0.01
  186.         colour Tan
  187.         ambient 0.11
  188.         diffuse 0.22
  189.         reflection 0.7
  190.         brilliance 5.0
  191.    end_texture
  192. end_object
  193.  
  194. object
  195.    sphere <0.0 0.0 0.0> 75.0 end_sphere
  196.    translate <0.0 9800.0 0.0> 
  197.    rotate <-5.0 0.0 2.0>
  198.    translate <0.0 -11000.0 0.0>
  199.    texture
  200.      colour Orange
  201.      ambient 1.0
  202.      diffuse 0.0
  203.    end_texture
  204.    light_source
  205.    colour Orange
  206. end_object
  207.  
  208. object
  209.    sphere <0.0 0.0 0.0> 20.0 end_sphere
  210.    translate <60.0 160.0 -200.0>
  211.    texture
  212.      colour White
  213.      ambient 1.0
  214.      diffuse 0.0
  215.    end_texture
  216.    light_source
  217.    colour White
  218. end_object
  219.  
  220. object
  221.    sphere <0.0 0.0 0.0> 20.0 end_sphere
  222.    translate <-60.0 160.0 -200.0>
  223.    texture
  224.      colour White
  225.      ambient 1.0
  226.      diffuse 0.0
  227.    end_texture
  228.    light_source
  229.    colour White
  230. end_object
  231.