home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / amiga / video / render / rayshade.lzh / rayshade.4.0 / Examples / boxball.ray < prev    next >
Encoding:
Text File  |  1992-02-18  |  1.4 KB  |  60 lines

  1. /*
  2.  * White diffuse sphere with wooden box-shaped regions removed.
  3.  * Rod Bogart 11/90
  4.  */
  5. eyep  4 3 5
  6. fov 15 11
  7. light 1 directional 1 0.5 2
  8. sample 1    /* Increase this value for less noisy image */
  9. report verbose
  10. screen 320 400
  11.  
  12.  
  13. plane 0. 0. -5. 0. 0. 1 texture marble scale 2 2 1
  14.  
  15. difference
  16.     sphere  0.65 0 0 0
  17.     grid 3 3 3    
  18.         applysurf ambient .2 .05 .05
  19.               diffuse .8 .1 .05
  20.               specular .05 .05 .05
  21.                 specpow 20
  22.  
  23.         box 0.3 0.3 -0.7 0.7 0.7 -0.3 
  24.         box -0.2 0.3 -0.7 0.2 0.7 -0.3 
  25.         box -0.7 0.3 -0.7 -0.3 0.7 -0.3 
  26.  
  27.         box 0.3 0.3 -0.2 0.7 0.7 0.2 
  28.         box -0.2 0.3 -0.2 0.2 0.7 0.2 
  29.         box -0.7 0.3 -0.2 -0.3 0.7 0.2 
  30.  
  31.         box 0.3 0.3 0.3 0.7 0.7 0.7 
  32.         box -0.2 0.3 0.3 0.2 0.7 0.7 
  33.         box -0.7 0.3 0.3 -0.3 0.7 0.7 
  34.  
  35.         box 0.3 -0.2 -0.7 0.7 0.2 -0.3 
  36.         box -0.2 -0.2 -0.7 0.2 0.2 -0.3 
  37.         box -0.7 -0.2 -0.7 -0.3 0.2 -0.3 
  38.  
  39.         box 0.3 -0.2 -0.2 0.7 0.2 0.2 
  40.         box -0.2 -0.2 -0.2 0.2 0.2 0.2 
  41.         box -0.7 -0.2 -0.2 -0.3 0.2 0.2 
  42.  
  43.         box 0.3 -0.2 0.3 0.7 0.2 0.7 
  44.         box -0.2 -0.2 0.3 0.2 0.2 0.7 
  45.         box -0.7 -0.2 0.3 -0.3 0.2 0.7 
  46.  
  47.         box 0.3 -0.7 -0.7 0.7 -0.3 -0.3 
  48.         box -0.2 -0.7 -0.7 0.2 -0.3 -0.3 
  49.         box -0.7 -0.7 -0.7 -0.3 -0.3 -0.3 
  50.  
  51.         box 0.3 -0.7 -0.2 0.7 -0.3 0.2 
  52.         box -0.2 -0.7 -0.2 0.2 -0.3 0.2 
  53.         box -0.7 -0.7 -0.2 -0.3 -0.3 0.2 
  54.  
  55.         box 0.3 -0.7 0.3 0.7 -0.3 0.7 
  56.         box -0.2 -0.7 0.3 0.2 -0.3 0.7 
  57.         box -0.7 -0.7 0.3 -0.3 -0.3 0.7 
  58.     end texture wood scale 3 1 1
  59. end
  60.