home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Raytrace & Morphing / SOS-RAYTRACE.ISO / programm / scripts / pov / froggy / froggy.pov < prev    next >
Encoding:
Text File  |  1993-04-09  |  1.5 KB  |  86 lines

  1. #include "colors.inc"
  2. #include "shapes.inc"
  3. #include "textures.inc"
  4. #include "frog.inc"
  5.  
  6. camera {
  7.   location  <0 8 -8>
  8.   direction <0 0 1.5>
  9.   up        <0 1 0>
  10.   right     <1.33 0 0>
  11.   look_at   <0 0 2>
  12. }
  13.  
  14. object { //spotlight to highlight frog
  15.   light_source { 
  16.     <4 6 -2> 
  17.     color White 
  18.     spotlight
  19.     point_at <0 3 0>
  20.     tightness 80
  21.     radius 10
  22.     falloff 18
  23.   }
  24. }
  25.  
  26. object { //starry night
  27.   sphere {<0 0 0> 1000}
  28.   texture {
  29.     image_map {gif "starfld1.gif" map_type 0 interpolate 2}
  30.     translate <-0.5 -0.65 0>
  31.     scale <1000 1000 1000>  //try <700 700 700> might be better
  32.   }
  33. }
  34.  
  35. object { //full moon
  36.   union {
  37.     sphere {<13 -25 50> 3
  38.       texture {
  39.         color White alpha .35
  40.         ambient 1.0
  41.         diffuse 0.0
  42.       }
  43.     }
  44.     light_source {<13 -15 50.1> color White}
  45.   }
  46.  
  47. composite {
  48.   Frog
  49.   scale <.3 .3 .3>
  50.   rotate <0 15 0>
  51.   rotate <0 0 -3>
  52.   translate <0 3.1 0>
  53. }
  54.  
  55. object { //glass sphere frog sits on
  56.   sphere {<.25 .295 0> 2.2}
  57.   texture {
  58.     color LightBlue alpha 1.0
  59.     ambient 0.0
  60.     diffuse 0.0
  61.     reflection .15
  62.     refraction 1.0
  63.     ior 1.33
  64.     specular 1.0
  65.     roughness .001
  66.   }
  67. }
  68.  
  69. object {  //ocean
  70.   plane {<0 1 0> .705 rotate <35 0 0>}
  71.   texture {
  72.     color SeaGreen
  73.     ripples .35
  74.     frequency 100
  75.     turbulence .5
  76.     ambient .1
  77.     diffuse .1
  78.     reflection .7
  79.     specular .5
  80.     scale <10 10 10>  //try <30 30 30> for bigger ripples
  81.     roughness .03
  82.   }
  83. }
  84.  
  85.