/* * ************************* * Rayshade scene definition * (Project 4) * ************************* * * * by Scott Teresi, www.teresi.us * May 31, 1996 * * Graphics I, Dr. Heuring * * Directions: * run Rayshade on this file, and then type xv outfilename to view. */ /* * the following lines control the scene rendering */ outfile scene.xv screen 256 256 /* resolution */ sample 1 nojitter maxdepth 6 /* number of light ray reflections */ /* * view information */ eyep 0.0 -10.0 0.0 /* x is horiz., y is toward you, z is up and down */ lookp 0.0 0.0 0.0 /* point you are looking at */ up 0.0 0.0 1.0 /* up vector */ /* * surface definitions */ surface surface1 /* red */ ambient .1 .01 .01 diffuse 1 .1 .1 specular 1 .5 .5 specpow 30 surface surface2 /* green */ ambient .01 .1 .01 diffuse .03 .4 .03 specular .5 1 .5 specpow 20.0 reflect .4 surface surface3 /* blue transparent */ ambient .01 .01 .10 diffuse .1 .1 1 specular 1 1 1 specpow 60 transp .75 reflect .05 surface surface4 /* purple */ ambient .1 .01 .07 diffuse 1 .1 .7 specular 1 1 1 specpow 200 surface wooden /* brown */ ambient .1 .01 .01 diffuse 1 .4 .2 specular .9 .4 .4 specpow 30 surface mirror ambient .0 .0 .0 diffuse .1 .1 .1 specular 1 1 1 specpow 5 reflect .7 surface backdrop ambient 0.3 0.7 0.3 diffuse 0.1 0.1 0.1 specular 0.1 0.1 0.1 specpow 10.0 /* * lights in the scene */ light 1.0 1.0 1.0 point 20.0 0.0 0.0 light 1.0 1.0 1.0 point -5 -8 -10 light .3 .3 .3 point 0 -9 0 /* * the objects. */ blob surface1 1 1 6 2 -2 0 /* doesn't work */ plane surface3 0.0 11.0 0.0 0.0 -1.0 0.0 plane backdrop 0.0 10.0 0.0 0.0 -1.0 0.0 /* texture sky .2 .5 .8 6 .4 .4 */ plane backdrop 0.0 -20.0 0.0 0.0 1.0 0.0 sphere surface1 1.0 0.0 1.0 0.0 /* three spheres connected */ translate 3.0 0.0 0.0 sphere surface2 1.5 0.0 1.0 1.5 translate 3.0 0.0 0.0 sphere surface3 2.0 0.0 1.5 3.0 /* top sphere */ translate 3.0 0.0 0.0 intersect /* what two shapes have in common */ sphere surface2 2 -2.1 -2 -4 sphere mirror 2 -2.1 -1.75 -.5 end difference /* mirror ball with flat top */ sphere mirror 3 0 0 0 texture marble box mirror -5 -5 2 5 5 4 /* (this box subtracted off top) */ end translate 2 5 -3 scale 1 1 .85 torus surface4 5 .4 0 0 0 0 0 1 translate 2 5 -3 texture marble sphere surface3 1.5 -3 4 .5 /* large ball on left */ sphere surface3 .7 1 5 -.2 /* small ball above mirror ball */ difference box wooden -4 -2 2 -1.5 20 1.5 texture wood union box wooden -2.5 -1.5 2 0 -2 1.5 texture wood box wooden -2 -1 2 0 -2 1.5 texture wood end end