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
Water in a Glass
For simulating water im a glass, we need a transparent
material with an index of refraction ior = 1.33.
material{
texture{
pigment{ rgbf<.93,.95,.98,0.825>*0.99}
finish { ambient 0.0 diffuse 0.15
reflection{0.1,0.1 fresnel_on}
specular 0.6 roughness 0.005
conserve_energy
} // end finish
} // end of texture
interior{ ior 1.33
fade_power 1001
fade_distance 0.5
fade_color <0.8,0.8,0.8>
caustics 0.16
} // end of interior
} // end of material
//----------------------------------------- |
|
A material for water
|
To get this shape with a wavy top side, we intersect the above shape with
the same shape, but somewhat wider and lower with this material and the additional
normal in texture:
normal{ ripples 1.15
scale 0.0125
turbulence 0.3
translate<-0.05,0,0>
rotate<0,-20,0>
} // end normal
//----------------------------------------- |
|
A material for water with wavy top side
|
All we got to do now: Adding this to a simple glass!
(Glass material has an higher IOR (~1.5) and a little bit different color).
For details see the following scene file text.
Water in a Glass:
Description of this scene for POV-Ray
Waterglass_01c.pov
|
Water in a Glass
part
1 | 2 | 3 |
4 | 5 | 6 |
7
|
|