home *** CD-ROM | disk | FTP | other *** search
/ Crawly Crypt Collection 2 / crawlyvol2.bin / graphics / ftpovscn / 1 / checker2.pov < prev    next >
Text File  |  1992-07-21  |  2KB  |  79 lines

  1. // Persistence Of Vision raytracer version 1.0 sample file.
  2.  
  3. // By Dan Farmer
  4.  
  5. // Demonstrates one use of the powerful alpha parameter for colors.
  6.  
  7. #include "colors.inc"
  8.  
  9. camera {
  10.    location <-1.5  30.0  -150.0>
  11.    direction <0.0 0.0 2.0>
  12.    up  <0.0  1.0  0.0>
  13.    right <1.33333 0.0 0.0>
  14.    look_at <0.0  25.0  35.0>
  15. }
  16.  
  17. object {    /* Basic Light source */
  18.    light_source { <100.0  100.0  -200.0>
  19.       colour White
  20.    }
  21. }
  22.  
  23. /* Now draw the sky */
  24. object {
  25.    sphere { <0.0  0.0  0.0> 200000.0 }
  26.    texture {
  27.       bozo
  28.       turbulence 0.35
  29.       colour_map {
  30.          [0.0 0.5   colour red 0.5 green 0.6 blue 1.0
  31.          colour red 0.6 green 0.5 blue 1.0]
  32.          [0.5 0.6   colour red 0.5 green 0.6 blue 1.0
  33.          colour red 1.0 green 1.0 blue 1.0]
  34.          [0.6 1.001 colour red 1.0 green 1.0 blue 1.0
  35.          colour red 0.5 green 0.5 blue 0.5]
  36.       }
  37.       scale <100000.0 10000.0 100000.0>
  38.       ambient 1.0
  39.       diffuse 0.0
  40.    }
  41.    colour SkyBlue
  42. }
  43.  
  44. object {
  45.    plane { <0.0 1.0 0.0 > 0.0  }
  46.    texture { colour NeonBlue reflection 0.15 }
  47.    color White
  48. }
  49.  
  50. /*******************************************************************************/
  51. /*
  52.   This next object uses the alpha parameter to make a sphere with
  53.   a "cutout" checker pattern.  
  54.  
  55.   Don't limit this idea to checker patterns.  Try it with gradient and
  56.   bozo, for example. Or maybe marble with alpha 1.0 for all but the
  57.   "veins".
  58.   Try a series of "nested" concentric spheres, all with the transparent
  59.   checker pattern as its surface, perhaps in different colors.
  60. */
  61.  
  62. object {
  63.    sphere { <0.0 25.0 0.0 > 25.0 }
  64.    texture {
  65.       checker colour YellowGreen
  66.       colour Clear
  67.       scale <4.0 50.0 2.0>
  68.       rotate <90 0.0 -90.0>
  69.       brilliance 8
  70.       phong 1
  71.       phong_size 100
  72.    }
  73.    color White
  74.  
  75.    bounded_by {
  76.       sphere { <0.0 25.0 0.0> 25.2 }
  77.    }
  78. }
  79.