home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #7 / amigamamagazinepolishissue1998.iso / varia / povray3 / povray3_fpu / pov3demo / halo / cloud2.pov < prev    next >
Text File  |  1997-12-12  |  2KB  |  108 lines

  1. // Persistence Of Vision raytracer version 3.0 sample file.
  2. // File by Dieter Bayer
  3.  
  4. #version 3.0
  5. global_settings { assumed_gamma 2.2 }
  6.  
  7. #include "colors.inc"
  8. #include "metals.inc"
  9.  
  10. camera {
  11.   location <15, 2, -100>
  12.   look_at <0, 0, 0>
  13. }
  14.  
  15. //light_source{<-20,100,-100> colour White}
  16. light_source{<-10, 40, 100> colour Orange}
  17.  
  18. sky_sphere {
  19.     pigment {
  20.         gradient y
  21.         color_map {
  22.             [0.0 Pink ]
  23.             [0.2 SteelBlue ]
  24.             [0.6 MidnightBlue ]
  25.         }
  26.     }
  27. }
  28.  
  29. #declare Cloud =
  30. sphere { 0, 1
  31.   hollow
  32.   texture {
  33.     pigment { colour Clear }
  34.     halo {
  35.       linear
  36.       max_value 0.1
  37.       spherical_mapping
  38.       attenuating
  39.       turbulence 0.75
  40.       octaves 6
  41.       omega (1/1.618)
  42.       lambda 1.618
  43.       colour_map {
  44.         [0.0 color rgbt <1, 1, 1, 1>]
  45.         [0.5 color rgbt <1, 1, 1, 0.65>]
  46.         [1.0 color rgbt <0, 0, 0, 0>]
  47.       }
  48.       scale <0.9, 0.4, 0.5>
  49.       samples 10
  50.       aa_level 0
  51.       aa_threshold 0.3
  52.     }
  53.   }
  54.   scale <100, 50, 20>
  55.   translate y*10
  56. }
  57.  
  58. // The Sun's halo
  59. #declare SunGlow =
  60. texture {
  61.    pigment { colour Clear }
  62.    halo {
  63.       linear
  64.       max_value 0.3
  65.       spherical_mapping
  66.       emitting
  67.       colour_map {
  68.          [0.05 color rgbt <1.0, 0.0, 0.0,  1.0> ]
  69.          [0.30 color rgbt <1.0, 1.0, 0.0,  0.0> ]
  70.       }
  71.       samples 10
  72.    }
  73. }
  74.  
  75. #declare Sun =
  76. union {
  77.     sphere { 0, 1
  78.         hollow
  79.         no_shadow
  80.         texture { SunGlow }
  81.         scale 0.75
  82.         scale <3, 3, 3>
  83.         translate <0, 0.05, 0>
  84.     }
  85.     sphere { 0, 0.1
  86.         no_shadow
  87.         hollow
  88.         pigment { Orange filter 0.5}
  89.         finish { ambient 0.75 }
  90.     }
  91.     scale 4
  92.     translate <2.5, -0.25, 15>
  93. }
  94.  
  95. #declare Sea =
  96. plane { y, 0
  97.     texture { T_Silver_1A
  98.         normal {
  99.             wrinkles 0.5
  100.             omega (1/1.618)
  101.             lambda 1.618
  102.         }
  103.     }
  104. }
  105. object { Cloud }
  106. object { Sun }
  107. object { Sea }
  108.