home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 13 Bitmap / 13-Bitmap.zip / povscn.zip / scenes / level1 / checker2.pov < prev    next >
Text File  |  1993-09-28  |  2KB  |  74 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // By Dan Farmer
  4.  
  5. // Demonstrates one use of the powerful filter 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. light_source { <100.0, 100.0, -200.0> colour White }
  18.  
  19. /* Now draw the sky */
  20. sphere { <0.0, 0.0, 0.0>, 200000.0
  21.  
  22.    finish {
  23.       ambient 1.0
  24.       diffuse 0.0
  25.    }
  26.    pigment {
  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.       quick_color SkyBlue
  38.       scale 100000.0
  39.    }
  40. }
  41.  
  42. plane { <0.0, 1.0, 0.0>, 0.0
  43.    pigment { NeonBlue }
  44.    finish {reflection 0.15}
  45. }
  46.  
  47. /*******************************************************************************/
  48. /*
  49.   This next object uses the filter parameter to make a sphere with
  50.   a "cutout" checker pattern.  
  51.  
  52.   Don't limit this idea to checker patterns.  Try it with gradient and
  53.   bozo, for example. Or maybe marble with filter 1.0 for all but the
  54.   "veins".
  55.   Try a series of "nested" concentric spheres, all with the transparent
  56.   checker pattern as its surface, perhaps in different colors.
  57. */
  58.  
  59. sphere { <0.0, 25.0, 0.0>, 25.0
  60.    pigment {
  61.       checker colour YellowGreen colour Clear
  62.       quick_color White
  63.       scale <4.0, 50.0, 2.0>
  64.       rotate <90, 0.0, -90.0>
  65.    }
  66.    finish {
  67.       brilliance 8
  68.       phong 1
  69.       phong_size 100
  70.    }
  71.  
  72.    bounded_by { sphere { <0.0, 25.0, 0.0>, 25.2 } }
  73. }
  74.