home *** CD-ROM | disk | FTP | other *** search
/ ANews 3 / AnewsCD3.iso / atari / GRAPHX / POV / 68030.060 / POV31G30 / POVRAY_3.1G / SCENES / CSG / GRANITE.POV < prev    next >
Text File  |  1999-10-30  |  1KB  |  52 lines

  1. // Persistence Of Vision raytracer version 3.1 sample file.
  2.  
  3. global_settings { assumed_gamma 2.2 }
  4.  
  5. #include "colors.inc"           // Standard colors library
  6. #include "shapes.inc"           // Commonly used object shapes
  7. #include "textures.inc"         // LOTS of neat textures.  Lots of NEW textures.
  8.  
  9. camera {
  10.    location  <0, 3.5, -3.7>
  11.    direction <0, 0,    1>
  12.    up        <0, 1,    0>
  13.    right   <4/3, 0,    0>
  14.    look_at   <0, -0.25,    0>
  15. }
  16.  
  17. // Light source
  18.  
  19. light_source {<-30, 11, +20>  color White  }
  20. light_source {< 31, 12, -20>  color White  }
  21. light_source {< 32, 11, -20>  color LightGray }
  22.  
  23. #include "rdgranit.map"
  24. #declare Pink_Gran_Texture =
  25. texture {
  26.    pigment {
  27.       granite
  28.       color_map { M_RedGranite }
  29.       scale 0.4
  30.       }
  31.    finish {
  32.       specular 0.75
  33.       roughness 0.0085
  34.       ambient 0.15
  35.       reflection 0.2
  36.    }
  37. }
  38.  
  39. union {
  40.    sphere {<0, 0, 0>, 1.75}
  41.    difference {
  42.       object {UnitBox scale 1.5}
  43.       // Clip some sqr holes in the box to make a 3D box frame
  44.       object {UnitBox scale <1.51, 1.25, 1.25> }   // "clip" x
  45.       object {UnitBox scale <1.25, 1.51, 1.25> }   // "clip" y
  46.       object {UnitBox scale <1.25, 1.25, 1.51> }   // "clip" z
  47.    }
  48.    texture { Pink_Gran_Texture scale 0.25 }
  49.    rotate y*45
  50. }
  51.  
  52.