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

How to make a Hole in the Water - Whirlpool

This shows how to do this by simple CSG.
At last we have to put a texture with an according "normal" component on the plane to simulate the wirling of the water.
For making it easier to see what happens a quater of the plane is cut off.

Hole in the water:
Description of this scene for POV-Ray: .pov file or .txt file
Hole in the Water 0
Hole in the Water 1
Hole in the Water 2
We take a xz plane (plane{<0,1,0>,0} and a cylinder as deep as we want our hole to be. The upper end must be a little bit higher than the plane to avoid coincident surfaces in difference.
We subtract this cylinder from our plane.
We've got a hole with a sharp edge.
Hole in the Water 2
Hole in the Water 4
To get a round edge we have to take another cylinder of the radius of our first cylinder plus the edge radius which we want.
Once again we subtract it!
Hole in the Water 5
Hole in the Water 6
Now we add a torus with
the major radius = radius of our second cylinder
and the minor radius = our edge radius.
This is all we need for a hole with a rounded edge.
At last we have to add to our water texture
a normal like this:
   normal {spiral1  20  0.25
           sine_wave
           turbulence 0.1
           rotate<90,0,0>
           scale 0.5 }

That's it!
Hole in the Water 7

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

top

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