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

  1. // Persistence of Vision Raytracer
  2. // Sample file
  3. // By Dan Farmer
  4.  
  5. #include "shapes.dat"
  6. #include "colors.dat"
  7. #include "textures.dat"
  8.  
  9. view_point
  10.    location <0.0  0.0  -60.0>
  11.    look_at <0.0 0.0 0.0>
  12.    right <1.3333 0.0 0.0>
  13. end_view_point
  14.  
  15. { Light behind viewer postion (pseudo-ambient light) }
  16. object  
  17.    sphere <0.0  0.0  0.0>  2.0 end_sphere
  18.    translate <-50.0  50.0  -150.0>
  19.    texture
  20.      colour White
  21.      ambient 1.0
  22.      diffuse 0.0
  23.    end_texture
  24.    light_source
  25.    colour White
  26. end_object
  27.  
  28.  
  29. { Top row }
  30. object                                           { Ball 1 }
  31.     sphere  <-18.0 18.0 -4.0> 3.25 end_sphere
  32.     texture
  33.     color White
  34.     end_texture
  35. end_object
  36. object                                           { Ball 2 }
  37.     sphere  <-24 18.0 -4.0> 3.25 end_sphere
  38.     texture
  39.     color CRed
  40.     end_texture
  41. end_object
  42. object                                           { Ball 3 }
  43.     sphere  <-12.0 18.0 -4.0> 3.25 end_sphere
  44.     texture
  45.     color CGreen
  46.     end_texture
  47. end_object
  48. object                                           { Ball 4 }
  49.     sphere  <-6.0 18.0 -4.0> 3.25 end_sphere
  50.     texture
  51.     color CBlue
  52.     end_texture
  53. end_object
  54. object                                           { Ball 5 }
  55.     sphere  <0.0 18.0 -4.0> 3.25 end_sphere
  56.     texture
  57.     color Yellow
  58.     end_texture
  59. end_object
  60. object                                           { Ball 6 }
  61.     sphere  <6.0 18.0 -4.0> 3.25 end_sphere
  62.     texture
  63.     color Cyan
  64.     end_texture
  65. end_object
  66. object                                           { Ball 7 }
  67.     sphere  <12.0 18.0 -4.0> 3.25 end_sphere
  68.     texture
  69.     color Magenta
  70.     end_texture
  71. end_object
  72. object                                           { Ball 8 }
  73.     sphere  <18.0 18.0 -4.0> 3.25 end_sphere
  74.     texture
  75.     color Aquamarine
  76.     end_texture
  77. end_object
  78. object                                           { Ball 9 }
  79.     sphere  <24.0 18.0 -4.0> 3.25 end_sphere
  80.     texture
  81.     color Black
  82.     end_texture
  83. end_object
  84.  
  85. { 2nd row }
  86. object                                           { Ball 1 }
  87.     sphere  <-24.0 12.0 -4.0> 3.25 end_sphere
  88.     texture
  89.     color BlueViolet
  90.     end_texture
  91. end_object
  92. object                                           { Ball 2 }
  93.     sphere  <-18.0 12.0 -4.0> 3.25 end_sphere
  94.     texture
  95.     color Brown
  96.     end_texture
  97. end_object
  98. object                                           { Ball 3 }
  99.     sphere  <-12.0 12.0 -4.0> 3.25 end_sphere
  100.     texture
  101.     color CadetBlue
  102.     end_texture
  103. end_object
  104. object                                           { Ball 4 }
  105.     sphere  <-6.0 12.0 -4.0> 3.25 end_sphere
  106.     texture
  107.     color Coral
  108.     end_texture
  109. end_object
  110. object                                           { Ball 5 }
  111.     sphere  <0.0 12.0 -4.0> 3.25 end_sphere
  112.     texture
  113.     color CornflowerBlue
  114.     end_texture
  115. end_object
  116. object                                           { Ball 6 }
  117.     sphere  <6.0 12.0 -4.0> 3.25 end_sphere
  118.     texture
  119.     color DarkGreen
  120.     end_texture
  121. end_object
  122. object                                           { Ball 7 }
  123.     sphere  <12.0 12.0 -4.0> 3.25 end_sphere
  124.     texture
  125.     color DarkOliveGreen
  126.     end_texture
  127. end_object
  128. object                                           { Ball 8 }
  129.     sphere  <18.0 12.0 -4.0> 3.25 end_sphere
  130.     texture
  131.     color DarkOrchid
  132.     end_texture
  133. end_object
  134. object                                           { Ball 9 }
  135.     sphere  <24.0 12.0 -4.0> 3.25 end_sphere
  136.     texture
  137.     color DarkSlateBlue
  138.     end_texture
  139. end_object
  140.  
  141. { 3rd (Center ) row}
  142. object                                           { Ball 1 }
  143.     sphere  <-24.0 6.0 -4.0> 3.25 end_sphere
  144.     texture
  145.     color DarkSlateGray
  146.     end_texture
  147. end_object
  148. object                                           { Ball 2 }
  149.     sphere  <-18.0 6.0 -4.0> 3.25 end_sphere
  150.     texture
  151.     color DarkTurquoise
  152.     end_texture
  153. end_object
  154. object                                           { Ball 3 }
  155.     sphere  <-12.0 6.0 -4.0> 3.25 end_sphere
  156.     texture
  157.     color DimGray
  158.     end_texture
  159. end_object
  160. object                                           { Ball 4 }
  161.     sphere  <-6.0 6.0 -4.0> 3.25 end_sphere
  162.     texture
  163.     color Firebrick
  164.     end_texture
  165. end_object
  166. object                                           { Ball 5 }
  167.     sphere  <0.0 6.0 -4.0> 3.25 end_sphere
  168.     texture
  169.     color ForestGreen
  170.     end_texture
  171. end_object
  172. object                                           { Ball 6 }
  173.     sphere  <6.0 6.0 -4.0> 3.25 end_sphere
  174.     texture
  175.     color Gold
  176.     end_texture
  177. end_object
  178. object                                           { Ball 7 }
  179.     sphere  <12.0 6.0 -4.0> 3.25 end_sphere
  180.     texture
  181.     color Goldenrod
  182.     end_texture
  183. end_object
  184. object                                           { Ball 8 }
  185.     sphere  <18.0 6.0 -4.0> 3.25 end_sphere
  186.     texture
  187.     color Gray
  188.     end_texture
  189. end_object
  190. object                                           { Ball 9 }
  191.     sphere  <24.0 6.0 -4.0> 3.25 end_sphere
  192.     texture
  193.     color GreenYellow
  194.     end_texture
  195. end_object
  196.  
  197. { 4th  row }
  198. object                                           { Ball 1 }
  199.     sphere  <-24.0 0.0 -4.0> 3.25 end_sphere
  200.     texture
  201.     color IndianRed
  202.     end_texture
  203. end_object
  204. object                                           { Ball 2 }
  205.     sphere  <-18.0 0.0 -4.0> 3.25 end_sphere
  206.     texture
  207.     color Khaki
  208.     end_texture
  209. end_object
  210. object                                           { Ball 3 }
  211.     sphere  <-12.0 0.0 -4.0> 3.25 end_sphere
  212.     texture
  213.     color LightBlue
  214.     end_texture
  215. end_object
  216. object                                           { Ball 4 }
  217.     sphere  <-6.0 0.0 -4.0> 3.25 end_sphere
  218.     texture
  219.     color LightGray
  220.     end_texture
  221. end_object
  222. object                                           { Ball 5 }
  223.     sphere  <0.0 0.0 -4.0> 3.25 end_sphere
  224.     texture
  225.     color LightSteelBlue
  226.     end_texture
  227. end_object
  228. object                                           { Ball 6 }
  229.     sphere  <6.0 0.0 -4.0> 3.25 end_sphere
  230.     texture
  231.     color LimeGreen
  232.     end_texture
  233. end_object
  234. object                                           { Ball 7 }
  235.     sphere  <12.0 0.0 -4.0> 3.25 end_sphere
  236.     texture
  237.     color Maroon
  238.     end_texture
  239. end_object
  240. object                                           { Ball 8 }
  241.     sphere  <18.0 0.0 -4.0> 3.25 end_sphere
  242.     texture
  243.     color MediumAquamarine
  244.     end_texture
  245. end_object
  246. object                                           { Ball 9 }
  247.     sphere  <24.0 0.0 -4.0> 3.25 end_sphere
  248.     texture
  249.     color MediumBlue
  250.     end_texture
  251. end_object
  252.  
  253. { 5th  row }
  254. object                                           { Ball 1 }
  255.     sphere  <-24.0 -6.0 -4.0> 3.25 end_sphere
  256.     texture
  257.     color MediumForestGreen
  258.     end_texture
  259. end_object
  260. object                                           { Ball 2 }
  261.     sphere  <-18.0 -6.0 -4.0> 3.25 end_sphere
  262.     texture
  263.     color MediumGoldenrod
  264.     end_texture
  265. end_object
  266. object                                           { Ball 3 }
  267.     sphere  <-12.0 -6.0 -4.0> 3.25 end_sphere
  268.     texture
  269.     color MediumOrchid
  270.     end_texture
  271. end_object
  272. object                                           { Ball 4 }
  273.     sphere  <-6.0 -6.0 -4.0> 3.25 end_sphere
  274.     texture
  275.     color MediumSeaGreen
  276.     end_texture
  277. end_object
  278. object                                           { Ball 5 }
  279.     sphere  <0.0 -6.0 -4.0> 3.25 end_sphere
  280.     texture
  281.     color MediumSlateBlue
  282.     end_texture
  283. end_object
  284. object                                           { Ball 6 }
  285.     sphere  <6.0 -6.0 -4.0> 3.25 end_sphere
  286.     texture
  287.     color MediumSpringGreen
  288.     end_texture
  289. end_object
  290. object                                           { Ball 7 }
  291.     sphere  <12.0 -6.0 -4.0> 3.25 end_sphere
  292.     texture
  293.     color MediumTurquoise
  294.     end_texture
  295. end_object
  296. object                                           { Ball 8 }
  297.     sphere  <18.0 -6.0 -4.0> 3.25 end_sphere
  298.     texture
  299.     color MediumVioletRed
  300.     end_texture
  301. end_object
  302. object                                           { Ball 9 }
  303.     sphere  <24.0 -6.0 -4.0> 3.25 end_sphere
  304.     texture
  305.     color MidnightBlue
  306.     end_texture
  307. end_object
  308.  
  309. { 6th  row }
  310. object                                           { Ball 1 }
  311.     sphere  <-24.0 -12.0 -4.0> 3.25 end_sphere
  312.     texture
  313.     color Navy
  314.     end_texture
  315. end_object
  316. object                                           { Ball 2 }
  317.     sphere  <-18.0 -12.0 -4.0> 3.25 end_sphere
  318.     texture
  319.     color Orange
  320.     end_texture
  321. end_object
  322. object                                           { Ball 3 }
  323.     sphere  <-12.0 -12.0 -4.0> 3.25 end_sphere
  324.     texture
  325.     color OrangeRed
  326.     end_texture
  327. end_object
  328. object                                           { Ball 4 }
  329.     sphere  <-6.0 -12.0 -4.0> 3.25 end_sphere
  330.     texture
  331.     color Orchid
  332.     end_texture
  333. end_object
  334. object                                           { Ball 5 }
  335.     sphere  <0.0 -12.0 -4.0> 3.25 end_sphere
  336.     texture
  337.     color PaleGreen
  338.     end_texture
  339. end_object
  340. object                                           { Ball 6 }
  341.     sphere  <6.0 -12.0 -4.0> 3.25 end_sphere
  342.     texture
  343.     color Pink
  344.     end_texture
  345. end_object
  346. object                                           { Ball 7 }
  347.     sphere  <12.0 -12.0 -4.0> 3.25 end_sphere
  348.     texture
  349.     color Plum
  350.     end_texture
  351. end_object
  352. object                                           { Ball 8 }
  353.     sphere  <18.0 -12.0 -4.0> 3.25 end_sphere
  354.     texture
  355.     color Salmon
  356.     end_texture
  357. end_object
  358. object                                           { Ball 9 }
  359.     sphere  <24.0 -12.0 -4.0> 3.25 end_sphere
  360.     texture
  361.     color SeaGreen
  362.     end_texture
  363. end_object
  364.  
  365. { 7th  row }
  366. object                                           { Ball 1 }
  367.     sphere  <-24.0 -18.0 -4.0> 3.25 end_sphere
  368.     texture
  369.     color Sienna
  370.     end_texture
  371. end_object
  372. object                                           { Ball 2 }
  373.     sphere  <-18.0 -18.0 -4.0> 3.25 end_sphere
  374.     texture
  375.     color SkyBlue
  376.     end_texture
  377. end_object
  378. object                                           { Ball 3 }
  379.     sphere  <-12.0 -18.0 -4.0> 3.25 end_sphere
  380.     texture
  381.     color SlateBlue
  382.     end_texture
  383. end_object
  384. object                                           { Ball 4 }
  385.     sphere  <-6.0 -18.0 -4.0> 3.25 end_sphere
  386.     texture
  387.     color SpringGreen
  388.     end_texture
  389. end_object
  390. object                                           { Ball 5 }
  391.     sphere  <0.0 -18.0 -4.0> 3.25 end_sphere
  392.     texture
  393.     color SteelBlue
  394.     end_texture
  395. end_object
  396. object                                           { Ball 6 }
  397.     sphere  <6.0 -18.0 -4.0> 3.25 end_sphere
  398.     texture
  399.     color Tan
  400.     end_texture
  401. end_object
  402. object                                           { Ball 7 }
  403.     sphere  <12.0 -18.0 -4.0> 3.25 end_sphere
  404.     texture
  405.     color Thistle
  406.     end_texture
  407. end_object
  408. object                                           { Ball 8 }
  409.     sphere  <18.0 -18.0 -4.0> 3.25 end_sphere
  410.     texture
  411.     color Turquoise
  412.     end_texture
  413. end_object
  414. object                                           { Ball 9 }
  415.     sphere  <24.0 -18.0 -4.0> 3.25 end_sphere
  416.     texture
  417.     color Violet
  418.     end_texture
  419. end_object
  420.  
  421. { 8th  row }
  422. object                                           { Ball 1 }
  423.     sphere  <-24.0 -24.0 -4.0> 3.25 end_sphere
  424.     texture
  425.     color VioletRed
  426.     end_texture
  427. end_object
  428. object                                           { Ball 2 }
  429.     sphere  <-18.0 -24.0 -4.0> 3.25 end_sphere
  430.     texture
  431.     color Wheat
  432.     end_texture
  433. end_object
  434. object                                           { Ball 3 }
  435.     sphere  <-12.0 -24.0 -4.0> 3.25 end_sphere
  436.     texture
  437.     color YellowGreen
  438.     end_texture
  439. end_object
  440. object                                           { Ball 4 }
  441.     sphere  <-6.0 -24.0 -4.0> 3.25 end_sphere
  442.     texture
  443.     color OldGold
  444.     end_texture
  445. end_object
  446. { ********************** unused for now **********************************
  447. object                                           { Ball 5 }
  448.     sphere  <0.0 -24.0 -4.0> 3.25 end_sphere
  449.     texture
  450.     color
  451.     end_texture
  452. end_object
  453. object                                           { Ball 6 }
  454.     sphere  <6.0 -24.0 -4.0> 3.25 end_sphere
  455.     texture
  456.     color
  457.     end_texture
  458. end_object
  459. object                                           { Ball 7 }
  460.     sphere  <12.0 -24.0 -4.0> 3.25 end_sphere
  461.     texture
  462.     color
  463.     end_texture
  464. end_object
  465. object                                           { Ball 8 }
  466.     sphere  <18.0 -24.0 -4.0> 3.25 end_sphere
  467.     texture
  468.     color
  469.     end_texture
  470. end_object
  471. object                                           { Ball 9 }
  472.     sphere  <24.0 -24.0 -4.0> 3.25 end_sphere
  473.     texture
  474.     color
  475.     end_texture
  476. end_object
  477. ****************** end of unused area ***************************}
  478.