|
![](/i/fill.gif) |
Given that Thomas was interested in it, I am attaching the code that I used to
generate the wake waves in my Rock The Boat image (see p.b.i).
A few disclaimers:
- It's created specifically for my Rock The Boat scene. This image required an
assymetrical wake, which makes the code more complicated than would be required
for a "simple" symmetrical wake.
- It has a few comments, but not enough to be easily understood.
Nevertheless, it may give some inspiration/useful suggestions on how to create
wakes for your own scenes.
The scene should be used with animation enabled to generates three image maps:
1. An image map with wake waves (as well as the waves caused by the wind). It is
to be used in a height_field, e.g.
height_field {
png "MakeWake1.png"
smooth
// Move water level down to y=0
translate -y * 0.5
// Reduce size of waves
scale <1, 0.002, 1>
}
2. A partially masked version of the first image, only needed to make the
illusion work. Just ignore this one.
3. An image map that provides a mask to be used as an image pattern for a
texture map. E.g.
texture {
image_pattern {
png "MakeWake3.png"
}
texture_map {
[0.00 FoamyWaterTexture]
[0.05 FoamyWaterTexture]
[0.20 QuietWaterTexture]
[0.40 QuietWaterTexture]
[0.55 ChoppyWaterTexture]
[0.75 QuietWaterTexture]
}
}
Cheers,
Erwin
Post a reply to this message
Attachments:
Download 'makewake.pov.txt' (12 KB)
|
![](/i/fill.gif) |