home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / rayshade / examples / mball.ray < prev    next >
Text File  |  1992-05-10  |  3KB  |  101 lines

  1. /*
  2.  * mball.ray - multiple colored balls over a plain
  3.  * author: Barry T. Drake, Occidental College Computer Center
  4.  * e-mail: bdrake@oxy.edu
  5.  * date: 7/23/91
  6.  * thanks-to: C. Regis Wilson, t_pascal@oxy.edu
  7.  *
  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 ftp'd
  13.              from someplace whose name we lost (sorry!).
  14.           3) Changing screen to 100 100 and maxdepth 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 white.
  18.           5) I think this is a lot of fun.  Thanks, Craig!
  19. */
  20. screen 1152 900
  21. maxdepth 15 
  22. eyep -8 -20 6
  23. lookp 0 0 6
  24. fov 60
  25. light 2.0 extended 2.5 -8 -10 20
  26.  
  27. surface mirror        /* mirrored (silver) surface */
  28.     ambient 0.04 0.04 0.04
  29.     diffuse 0.05 0.05 0.05
  30.     specular .8 .8 .8
  31.     specpow 60
  32.     reflect 1.
  33.  
  34. surface redmirror     /* red mirrored surface */
  35.     ambient 0.12 0.00 0.00
  36.     diffuse 0.15 0.00 0.00
  37.     specular .8 .8 .8
  38.     specpow 60
  39.     reflect 1.
  40.  
  41. surface blumirror     /* blue mirrored surface */
  42.     ambient 0.00 0.00 0.12
  43.     diffuse 0.00 0.00 0.15
  44.     specular .8 .8 .8
  45.     specpow 60
  46.     reflect 1.
  47.  
  48. surface grnmirror     /* green mirrored surface */
  49.     ambient 0.00 0.12 0.00
  50.     diffuse 0.00 0.15 0.00
  51.     specular .8 .8 .8
  52.     specpow 60
  53.     reflect 1.
  54.  
  55. surface white
  56.     ambient 0.06 0.06 0.04
  57.     diffuse 0.5 0.5 0.5
  58.     specular 0.2 0.2 0.2
  59.     specpow 18
  60.     reflect 1.
  61.  
  62. plane white 0 0 0 0 0 1
  63.     texture marble scale 4 4 4
  64.  
  65. sphere    mirror 10 0 15 11
  66. sphere    mirror 1 3 -5 12
  67. sphere redmirror 1 2 -3.3 10
  68. sphere    mirror 1 2 -6.7 10
  69. sphere grnmirror 1 5 -5 10
  70. sphere    mirror 1 1 -1.6 8
  71. sphere blumirror 1 1 -5 8
  72. sphere redmirror 1 1 -8.4 8
  73. sphere grnmirror 1 4 -3.3 8
  74. sphere    mirror 1 4 -6.7 8
  75. sphere blumirror 1 7 -5 8
  76. sphere blumirror 1 0 0.1 6
  77. sphere grnmirror 1 0 -3.3 6
  78. sphere    mirror 1 0 -6.7 6
  79. sphere    mirror 1 0 -10.1 6
  80. sphere    mirror 1 3 -1.6 6
  81. sphere blumirror 1 3 -5 6
  82. sphere grnmirror 1 3 -8.4 6
  83. sphere    mirror 1 6 -3.3 6
  84. sphere    mirror 1 6 -6.7 6
  85. sphere grnmirror 1 9 -5 6
  86. sphere    mirror 1 -1 1.8 4
  87. sphere redmirror 1 -7.5 -1 1.001   /* this is the fallen ball */
  88. sphere    mirror 1 -1 -5 4
  89. sphere    mirror 1 -1 -8.4 4
  90. sphere    mirror 1 -1 -11.8 4
  91. sphere blumirror 1 2 0.1 4
  92. sphere    mirror 1 2 -3.3 4
  93. sphere grnmirror 1 2 -6.7 4
  94. sphere    mirror 1 2 -10.1 4
  95. sphere blumirror 1 5 -1.6 4
  96. sphere blumirror 1 5 -5 4
  97. sphere blumirror 1 5 -8.4 4
  98. sphere    mirror 1 8 -3.3 4
  99. sphere    mirror 1 8 -6.7 4
  100. sphere redmirror 1 11 -5 4
  101.