home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / raytrace / rt800 / mball.scn < prev    next >
Text File  |  1992-06-17  |  3KB  |  89 lines

  1. %
  2. %
  3. %  mball - multiple colored balls over a plain
  4. %  author: Barry T. Drake, Occidental College Computer Center
  5. %  e-mail: bdrake@oxy.edu
  6. %  date: 7/23/91
  7. %  thanks-to: C. Regis Wilson, t_pascal@oxy.edu
  8. %  modified: ajones, 072391, fixed the mirrored surface appearance
  9. %            BTD, 072491, added colors and made it *big*
  10. %  notes: 1) This ray file takes ~30,000 cpu seconds to trace on
  11. %            a Sun 4/280 (a 10 Mips machine).
  12. %         2) The idea for this came from a Sun .background that we ftpd
  13. %            from someplace whose name we lost (sorry!).
  14. %         3) Changing screen to 100 100 and depth to 2 decreases
  15. %            trace time to 2000 cpu seconds on a 68030 (NeXT cube).
  16. %         4) If you want better shadows of the pyramid, try decreasing
  17. %            the reflectivity of surface.
  18. %         5) I think this is a lot of fun.  Thanks, Craig!
  19. eye -8 -20 6
  20. look 0 0 6
  21. up 0 0 1
  22. fov 30
  23. light extended -8 -10 20 mono 2.0 2.5 8
  24.  
  25. %%surfaces
  26. #define mirror \
  27. surface 0.4 0.4 0.4 0.05 0.05 0.05 .8 .8 .8 60 0.8
  28.  
  29. #define redmirror \
  30. surface 0.8 0.00 0.00 0.15 0.00 0.00 .8 .8 .8 60 0.8
  31.  
  32. #define blumirror \
  33. surface 0.00 0.00 0.8 0.00 0.00 0.15 .8 .8 .8 60 0.8
  34.  
  35. #define grnmirror \
  36. surface 0.00 0.8 0.00 0.00 0.15 0.00 .8 .8 .8 60 0.8
  37.  
  38. #define whitesurf \
  39. surface 0.6 0.6 0.4 0.5 0.5 0.5 0.2 0.2 0.2 18 0.5
  40.  
  41. %% plane
  42. quadrangle
  43. marble scale 4 4 4
  44. transform scale 1000
  45. whitesurf
  46. data 1 1 0 -1 1 0 -1 -1 0 1 -1 0
  47.  
  48. %% balls
  49. mirror sphere 0 15 11 10
  50. mirror sphere 3 -5 12 1
  51. redmirror sphere 2 -3.3 10 1
  52. mirror sphere 2 -6.7 10 1
  53. grnmirror sphere 5 -5 10 1
  54. mirror sphere 1 -1.6 8 1
  55. blumirror sphere 1 -5 8 1
  56. redmirror sphere 1 -8.4 8 1
  57. grnmirror sphere 4 -3.3 8 1
  58. mirror sphere 4 -6.7 8 1
  59. blumirror sphere 7 -5 8 1
  60. blumirror sphere 0 0.1 6 1
  61. grnmirror sphere 0 -3.3 6 1
  62. mirror sphere 0 -6.7 6 1
  63. mirror sphere 0 -10.1 6 1
  64. mirror sphere 3 -1.6 6 1
  65. blumirror sphere 3 -5 6 1
  66. grnmirror sphere 3 -8.4 6 1
  67. mirror sphere 6 -3.3 6 1
  68. mirror sphere 6 -6.7 6 1
  69. grnmirror sphere 9 -5 6 1
  70. mirror sphere -1 1.8 4 1
  71. redmirror sphere -7.5 -1 1.001 1 % this is the fallen ball
  72. mirror sphere -1 -5 4 1
  73. mirror sphere -1 -8.4 4 1
  74. mirror sphere -1 -11.8 4 1
  75. blumirror sphere 2 0.1 4 1
  76. mirror sphere 2 -3.3 4 1
  77. grnmirror sphere 2 -6.7 4 1
  78. mirror sphere 2 -10.1 4 1
  79. blumirror sphere 5 -1.6 4 1
  80. blumirror sphere 5 -5 4 1
  81. blumirror sphere 5 -8.4 4 1
  82. mirror sphere 8 -3.3 4 1
  83. mirror sphere 8 -6.7 4 1
  84. redmirror sphere 11 -5 4 1
  85.