domenica 1 marzo 2015

A simple water scene

Here are some instruction how to create a flat water surface with a blue sky. The water effect is only simulated, no real waves are created by this code.

// POV-Ray 3.6 Scene File "Prova2.pov"
// created Max
// date:    01/03/2015

#include "colors.inc"
#include "textures.inc"
#include "textures.inc"

global_settings { assumed_gamma 1.1 }

// telecamera -----------------------------------------------------------
#declare Cam0 = camera {/*ultra_wide_angle*/ angle 65
                        location  <0.0 , 1.0 ,-3.0>
                        look_at   <0.0 , 0.8 , 0.0>}
camera{Cam0}

// sole ---------------------------------------------------------------
light_source{<1500,3000,-2500> color White}

// nebbia ---------------------------------------------------------------
fog{fog_type   2   distance 85  color rgb<1,0.99,0.9>
    fog_offset 0.1 fog_alt  2.0 turbulence 0.2}
   
// cielo ---------------------------------------------------------------------
plane{<0,1,0>,1 hollow 
       texture{ pigment{ bozo turbulence 0.99
                         color_map { [0.5 rgb <0.30, 0.30, 1.0>*1]
                                     [0.6 rgb <1,1,0.9>]
                                     [1.0 rgb <0.2,0.2,0.2>]}
                         scale 3.5 translate<10,0,9>
                       }
                finish {ambient 1 diffuse 0} }     
       scale 10000}
//--------------------------------------------------------------------------
  

//--------------------------------------------------------------------

plane{<0,1,0>, 0
      texture{pigment{ rgb <0.2, 0.2, 0.2> }
              normal { bumps 0.18 scale <1,0.25,0.35>*1 turbulence 0.8 }
              finish { ambient 0.05 diffuse 0.55
                       brilliance 6.0 phong 0.8 phong_size 120
                       reflection 0.6 }
             }
     }
//--------------------------------------------------------------------
#declare Asta_H = 1.75;
#declare Asta_R = 0.20;
#declare Asta =   // Oggetto      
union{

 cylinder {<0,-Asta_H,0>,<0,Asta_H,0>,Asta_R translate<0,0,0>
          texture{pigment{spiral1 2
                          color_map{[0.0 White]
                                    [0.5 White]
                                    [0.5 rgb<1,0.5,0>]
                                    [1.0 rgb<1,0.5,0>]}
                                    rotate<90,0,0>
                                    scale<1,0.3,1>}
                  normal {bumps 0.3 scale 0.025}
                  finish {ambient 0.05 diffuse 0.95
                          phong 1 reflection 0.05}
                  }
           }
 union{
   cylinder{<0,-0.05,0>,<0,0.05,0>,Asta_R+0.05 translate<0,Asta_H.0>}
   sphere {<0,0,0>,Asta_R+0.05 translate<0,Asta_H+0.1,0> }
   torus {1.0,0.1 scale 0.12  translate<0,Asta_H+0.01,0>}
      
   texture{pigment{color White}
           normal {bumps 0.3 scale 0.025}
           finish {ambient 0.15 diffuse 0.85 phong 1 reflection 0.05}}}
}// fine di Asta --------  

//---------------------------------------------------------------------
object{Asta scale 1 rotate<0,0,2> translate <-1.0,0,3>}     
          
//----------------------------------------------------------------- fine





Nessun commento:

Posta un commento