Descriptions and Examples for the POV-Ray raytracer
by Friedrich A. Lohmüller
Deutsch
Italiano Italiano
Français français

Home
- POV-Ray Tutorial

- Realistic Water
    - opaque reflecting
    - Heavy Seas
    - partly transparent
    - Whirlpool
    - Water in a Glass
    - Isosurface Water
   > Isosurface Sea

    - Download
 
                                       

Realistic Water with POV-Ray

part 1 | 2 | 3 | 4 | 5 | 6 | 7

Sea Water by Isosurface
The idea: using a isosurface with a modulation by a pigment_pattern for a sculptural water surface at close range and a plane with the same pigment_pattern as normal at far away range.
#declare Water_Texture =
  texture{ Polished_Chrome }
// Pigment for isosurface modulation
// and pigment pattern for normal:
#declare Pigment_01 =
pigment { bumps
          turbulence 0.2
          scale<3,1,1>
} // end pigment
//-----------------------------------------
#declare Pigment_Function_01 =
function {
  pigment { Pigment_01 }
} // end of function
//-----------------------------------------

// sizes x/z of isosurface container box:
#local Scale_x = 10;
#local Scale_z = 7;
#local Iso_Start=<-Scale_x,-1.0,-Scale_z>;
#local Iso_End  =< Scale_x, 0.5, Scale_z>;
//-----------------------------------------
isosurface {
  function{
    y
   -Pigment_Function_01(x,y,z).gray* 0.95
  } //
  contained_by { box {Iso_Start,Iso_End} }
  accuracy 0.01
  max_gradient 2
  texture{ Water_Texture
           normal{
            pigment_pattern{Pigment_01}
             }
         }
  // dont scale this isosurface!
  // scale the Pigment_01 if necessary!
translate >0, -0.3, 0> // adapt here!
} // end of isosurface --------------------
//-----------------------------------------
// far away with 'pigment pattern':
difference{
 plane{<0,1,0>, 0 }
 box { Iso_Start,Iso_End  }
 texture{
    Water_Texture
    normal{
     pigment_pattern{ Pigment_01 }, 5}
          }
}// end difference
//-----------------------------------------

For more details see the following
description of these scenes for POV-Ray :
      IsoWater_01.pov
      IsoWater_02.pov


Special Recommendation:
For more about realistic waves with POV-Ray,
take a look on the excelent page of Christoph Hormann
about Realistic water with POV-Ray and also
his: Waves include file, animatable waves!

pigment_pattern on plane and isosurface
The pigment_pattern on plane and isosurface
isosurface with wavy top side
An isosurface with wavy top side for water
Sea water by isosurface
Sea water by isosurface - scene 1
Sea water by isosurface
Sea water by isosurface - scene 2

part 1 | 2 | 3 | 4 | 5 | 6 | 7

top

© Friedrich A. Lohmüller, 2013
homepage:www.f-lohmueller.de
 
Visitors:
(since May-1999)
Thanks for your visit!