|
|
Hi, all.
The other day I had an idea of how to make realistic animated ocean
waves. Now I have implemented a first version of it and it turned out
quite well. It's not finished, I still have some things to try. It also
needs a better material.
Animation: http://www.daniel-nilsson.com/ocean01.mpg (1.6Mb)
Statistics: http://www.daniel-nilsson.com/ocean01.txt (for 250 frames)
The ocean surface is a mesh2 generated from a parametric surface defined
by three functions: x(u,v,t), y(u,v,t), z(u,v,t). I tried to use a
parametric object instead of mesh but it is much slower and looks no
better. The material is a uv mapped texture map using a function pattern
that controls the amount of foam.
There is no data saved between frames, no slow simulations, just
functions. It actually rendered much faster then I though it would,
almost 10 frames/minute on one core of my core2 quad @2.4GHz for 320x240
and no aa.
I'll post the code when it is finished and cleaned up.
--
Daniel Nilsson
Post a reply to this message
|
|