home *** CD-ROM | disk | FTP | other *** search
/ Ray Tracing Box / RAY_CD.mdf / raytrace / _pov_dat / gobo / gobo1.pov < prev    next >
Text File  |  1993-11-18  |  1KB  |  48 lines

  1. // Sample file for the use of Gobo_Lights in your scenes
  2. // Created by Roderick van Gelder
  3.  
  4. #include "gobo.inc"      // The Gobo description file
  5. #include "colors.inc"
  6. #include "textures.inc"
  7. #include "shapes.inc"
  8.  
  9. camera {
  10.  location  <-2.0, 5.0, -25.0 >
  11.  direction <0.0, 0.0, 2.0 >
  12.  up        <0.0, 1.0, 0.0 >
  13.  right     <1.33, 0.0, 0.0 >
  14.  look_at   < 1.0, 5.0, 0.0 >
  15. }
  16. object {union { Gobo_Light1
  17.                rotate < -45, 0 , 0 >  // Rotate X & Z axis here  
  18.                rotate <   0, 30 , 0 >  // Rotate Y-axis last
  19.                translate < -2 , 8 , 0 >
  20.       }
  21.       }
  22.  
  23. object {union { Gobo_Light2
  24.                rotate < 0, 0 , -45 >  // Rotate X & Z axis here  
  25.                rotate <   0, 0 , 0 >  // Rotate Y-axis last
  26.                translate < 4 , 8 , -3 >
  27.       }
  28.       }
  29.  
  30.  
  31. // Just a bit of a floor
  32.  box{ <-1, -1, -1>, <1, 1, 1>
  33.     scale < 8.0, 0.5, 12.0 >
  34.  texture {White_Marble
  35.                scale < 2, 1, 3 > 
  36.                }
  37. }
  38. // And a sky
  39.  sphere {< 0, 0, 0 >, 100 
  40.  texture{ Blue_Sky
  41.                scale < 30, 6, 10 >
  42.                ambient 0.8
  43.                }
  44. }
  45.  
  46. // General Lighting
  47.   light_source{< 10 ,  15 ,  3  > color Gray50 }
  48.