home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / bubble.pov < prev    next >
Encoding:
Text File  |  1993-06-01  |  1.9 KB  |  68 lines

  1. /*   created by Loyd Towe, CIS 70614,1721, as an experiment in transparent
  2.  *   objects.  be warned, you will need some SERIOUS computing power to
  3.  *   render this at 640x480.
  4.  *
  5.  */
  6.  
  7. #include "colors.inc"
  8. #include "textures.inc"
  9. #include "shapes.inc"
  10.  
  11. camera {
  12.  location  <  0    4  -20  >
  13.  direction <  0    0    1  >
  14.  up        <  0    1    0  >
  15.  right     <  1.33 0    0  >
  16.  look_at   <  0    0    0  >
  17. }
  18.  
  19. object {
  20.   difference {
  21.     sphere {<0 0 0> 5}
  22.     sphere {<0 0 0> 4.999}  // very very very thin bubble wall
  23.   }
  24.   texture{
  25.     spotted           // for the oily swirl on the surface.
  26.     turbulence 0.8    // mix it up pretty good.
  27.     ior 1.075         // bend the light just ever so slightly.
  28.     specular 1.0      // the surface is both shiny and ->
  29.     roughness 0.001   // dull at the same time ->
  30.     reflection 0.01   // wierd huh?...
  31.     phong 0.25        // make sure the phong is not overpowering.
  32.     phong_size 20     // the phong mostly exposes the outline of the bubble.
  33.     colour_map {      // here's the red/blue/green oily swirl color map.
  34.       [0.000 0.333   colour red  1.000  green  0.970  blue  0.970  alpha  1
  35.                      colour red  0.970  green  0.970  blue  1.000  alpha  1]
  36.       [0.333 0.666   colour red  0.970  green  0.970  blue  1.000  alpha  1
  37.                      colour red  0.970  green  1.000  blue  0.970  alpha  1]
  38.       [0.666 1.000   colour red  0.970  green  1.000  blue  0.970  alpha  1
  39.                      colour red  1.000  green  0.970  blue  0.970  alpha  1] 
  40.     }
  41.   }
  42. bounded_by { sphere { <0 0 0> 5.1} }
  43. }
  44.  
  45. object { 
  46.   plane { <0 1 0> -6 }  
  47.     texture { 
  48.       checker color Gray50 color Gray55 
  49.         scale <10 10 10> 
  50.         ambient 0.3 
  51.     } 
  52. }
  53.  
  54. object {
  55.   light_source{<0 15 -20> color White
  56.   }
  57. }
  58.  
  59. object {
  60.   light_source{<0 15 20> color White
  61.   }
  62. }
  63.  
  64. object {
  65.   light_source{<0 15 80> color White
  66.   }
  67. }
  68.