home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ray Tracing Box
/
RAY_CD.mdf
/
raytrace
/
rayshade
/
examples
/
mball.ray
< prev
next >
Wrap
Text File
|
1992-05-10
|
3KB
|
101 lines
/*
* mball.ray - multiple colored balls over a plain
* author: Barry T. Drake, Occidental College Computer Center
* e-mail: bdrake@oxy.edu
* date: 7/23/91
* thanks-to: C. Regis Wilson, t_pascal@oxy.edu
*
* modified: ajones, 072391, fixed the mirrored surface appearance
* BTD, 072491, added colors and made it *big*
* notes: 1) This ray file takes ~30,000 cpu seconds to trace on
a Sun 4/280 (a 10 Mips machine).
2) The idea for this came from a Sun .background that we ftp'd
from someplace whose name we lost (sorry!).
3) Changing screen to 100 100 and maxdepth to 2 decreases
trace time to 2000 cpu seconds on a 68030 (NeXT cube).
4) If you want better shadows of the pyramid, try decreasing
the reflectivity of surface white.
5) I think this is a lot of fun. Thanks, Craig!
*/
screen 1152 900
maxdepth 15
eyep -8 -20 6
lookp 0 0 6
fov 60
light 2.0 extended 2.5 -8 -10 20
surface mirror /* mirrored (silver) surface */
ambient 0.04 0.04 0.04
diffuse 0.05 0.05 0.05
specular .8 .8 .8
specpow 60
reflect 1.
surface redmirror /* red mirrored surface */
ambient 0.12 0.00 0.00
diffuse 0.15 0.00 0.00
specular .8 .8 .8
specpow 60
reflect 1.
surface blumirror /* blue mirrored surface */
ambient 0.00 0.00 0.12
diffuse 0.00 0.00 0.15
specular .8 .8 .8
specpow 60
reflect 1.
surface grnmirror /* green mirrored surface */
ambient 0.00 0.12 0.00
diffuse 0.00 0.15 0.00
specular .8 .8 .8
specpow 60
reflect 1.
surface white
ambient 0.06 0.06 0.04
diffuse 0.5 0.5 0.5
specular 0.2 0.2 0.2
specpow 18
reflect 1.
plane white 0 0 0 0 0 1
texture marble scale 4 4 4
sphere mirror 10 0 15 11
sphere mirror 1 3 -5 12
sphere redmirror 1 2 -3.3 10
sphere mirror 1 2 -6.7 10
sphere grnmirror 1 5 -5 10
sphere mirror 1 1 -1.6 8
sphere blumirror 1 1 -5 8
sphere redmirror 1 1 -8.4 8
sphere grnmirror 1 4 -3.3 8
sphere mirror 1 4 -6.7 8
sphere blumirror 1 7 -5 8
sphere blumirror 1 0 0.1 6
sphere grnmirror 1 0 -3.3 6
sphere mirror 1 0 -6.7 6
sphere mirror 1 0 -10.1 6
sphere mirror 1 3 -1.6 6
sphere blumirror 1 3 -5 6
sphere grnmirror 1 3 -8.4 6
sphere mirror 1 6 -3.3 6
sphere mirror 1 6 -6.7 6
sphere grnmirror 1 9 -5 6
sphere mirror 1 -1 1.8 4
sphere redmirror 1 -7.5 -1 1.001 /* this is the fallen ball */
sphere mirror 1 -1 -5 4
sphere mirror 1 -1 -8.4 4
sphere mirror 1 -1 -11.8 4
sphere blumirror 1 2 0.1 4
sphere mirror 1 2 -3.3 4
sphere grnmirror 1 2 -6.7 4
sphere mirror 1 2 -10.1 4
sphere blumirror 1 5 -1.6 4
sphere blumirror 1 5 -5 4
sphere blumirror 1 5 -8.4 4
sphere mirror 1 8 -3.3 4
sphere mirror 1 8 -6.7 4
sphere redmirror 1 11 -5 4