home *** CD-ROM | disk | FTP | other *** search
/ Mega A/V / mega_av.zip / mega_av / GRAPHUTL / POVSCN.ZIP / LEVEL2.ZIP / EIGHT.POV < prev    next >
Text File  |  1992-07-03  |  3KB  |  140 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By  Ville Saari
  4. // Copyright (c) 1991 Ferry Island Pixelboys
  5. /* NOTE: Requires "eight_.iff"
  6. *
  7. * POV-Ray scene description for two billiard balls
  8. * Created: 07-Jan-91
  9. * Updated: 09-Jan-91
  10. *          19-Jan-92 dmf (see below)
  11. *
  12. * If you do some nice modifications or additions to this file, please send 
  13. * me a copy. My Internet address is:
  14. *
  15. *         vsaari@niksula.hut.fi
  16. *
  17. *  Modified somewhat by dmf forPOV-Ray1.0:
  18. *  decreased most ambient values a bit
  19. *  increased phong_size on balls
  20. *  fixed the image_map ... interpolation didn't work.
  21. *  modified the wood on the questick a bit
  22. */
  23.  
  24. camera {
  25.    location <-15.0 8.0 -10.0>
  26.    direction <0.0 0.0 1.0>
  27.    up <0.0 1.0 0.0>
  28.    right <1.333 0.0 0.0>
  29.    sky <0.0 1.0 0.0>
  30.    look_at <0.0 5.0 5.0>
  31. }
  32.  
  33. // tabletop
  34. object {
  35.    plane { <0.0 1.0 0.0> 0.0 }
  36.    texture {
  37.       0.08
  38.       ambient 0.3
  39.       diffuse 0.7
  40.       colour green 0.7
  41.    }
  42.    colour green 0.7
  43. }
  44.  
  45. // eightball
  46. object {
  47.    sphere { <0.0 5.0 0.0> 5.0 }
  48.  
  49.    texture {
  50.       colour red 0.0  green 0.0  blue 0.0
  51.       ambient 0.15
  52.       diffuse 0.8
  53.       brilliance 1.0 
  54.       phong 1.0      
  55.       phong_size 90
  56.       reflection 0.15
  57.    }
  58.  
  59.    texture {
  60.       image_map { <1.0 -1.0 0.0> iff "eight_.iff" once
  61.          interpolate 2.0
  62.          use_colour
  63.       }
  64.       translate <-0.5 -0.5 -0.5>
  65.       scale <4.0 4.0 4.0>
  66.       rotate <-30.0 20.0 -45.0>
  67.       translate <0.0 5.0 0.0>
  68.    }
  69. }
  70.  
  71. object {
  72.    sphere { <0.0 5.0 10.0> 5.0 }
  73.    colour red 1.0 green 1.0 blue 1.0
  74.    texture {
  75.       colour red 1.0 green 1.0 blue 1.0
  76.       ambient 0.2
  77.       diffuse 0.8
  78.       brilliance 1.0 
  79.       phong 1.0      
  80.       phong_size 80
  81.       reflection 0.15
  82.    }
  83. }
  84.  
  85. // stick
  86. composite {
  87.    object {
  88.       intersection {
  89.          quadric {
  90.             <900.0 900.0 -1.0>
  91.             <0.0 0.0 0.0>
  92.             <0.0 0.0 0.0>
  93.             0.0
  94.             translate <0.0 0.0 -30.0>
  95.          }
  96.          plane { <0.0 0.0 -1.0> 0.0 }
  97.       }
  98.       texture {
  99.          wood
  100.          turbulence 0.02             // dmf
  101.          translate <50.0 -50.0 0.0>
  102.          //         scale <0.3 0.3 1000>      // vs
  103.          scale <0.1 0.1 1000>        // dmf
  104.          //         rotate <-10.0 0.0 45.0>   // vs
  105.          rotate <-10.0 0.0 15.0>     // dmf
  106.          ambient 0.15
  107.          diffuse 0.8
  108.          phong 1.0      
  109.          phong_size 20
  110.          reflection 0.15
  111.       }
  112.    }
  113.  
  114.    // Blue tip on stick
  115.    object {
  116.       intersection {
  117.          sphere { <0.0 0.0 -0.2> 1.1 }
  118.          plane { <0.0 0.0 1.0> 0.0 }
  119.          plane { <0.0 0.0 -1.0> 0.4 }
  120.       }
  121.  
  122.       texture {
  123.          colour red 0.2 green 0.5 blue 1.0
  124.          ambient 0.15
  125.          diffuse 0.8
  126.       }
  127.  
  128.    }
  129.  
  130.    rotate <-10.0 0.0 45.0>
  131.    translate <-4.5 6.0 14.5>
  132. }
  133.  
  134. object {
  135.    light_source { <-30.0 30.0 -15.0>
  136.       colour red 1.0 green 1.0 blue 1.0
  137.    }
  138. }
  139.