If you have a good source for the wave height,
the new elevationModifier class, should be the ideal candidate for
this... it's much faster than perlin if you use a source,
of course perlin or any other noises stays possible if you alter the
source.
I have a demo to finish, but when done, I'll give it a shot.
Fabrice
On Sep 22, 2008, at 3:49 PM, Benoit Beausejour wrote:
Here's an old pv3d(sry!) proto we built for a client that wanted a
wave animation in a site with floating "bottles".
We ended up not using it, and it's extremely unoptimized (can you say
reuse that perlin!) but it's workable.
http://agit8.turbulent.ca/experiments/water/OceanSurface/
Code at :
http://agit8.turbulent.ca/experiments/water/OceanSurface/OceanSurface.as
It's using a low poly plane with some perlin, just like John
suggested.
-b
On Sep 22, 9:03 am, Jon Bradley <[EMAIL PROTECTED]> wrote:
On Sep 21, 2008, at 4:50 PM, Knut Urdalen wrote:
Triggered by Jensa's recent post with his sailboat I remembered
that I have been studying a paper lately on Interactive Animation
of Ocean Waves [1][2] which seems to be the best solution to adapt
for real time rendering of nice looking ocean waves [3] in a 3D
engine in Flash. I discussed this paper some time ago with Tonny
Espeset at Electric Oyster [4] and he said this should be possible
with their engine.
What about Away3D?
Can you do it? Sure. You can do anything in AS3 that you can in any
other language. Will it run in realtime and look decent, probably
not.
This has nothing to do with which 'engine' you use. The algorithms
listed in that paper are very expensive and will demolish your
processor. All of the calculation does is end up giving you
positional data for the mesh.
I'd expect waay less than 1 frames/sec, and it won't look as good as
what you see in that paper. The shading alone isn't going to run well
at that resolution.
You are better off trying to use the native flash routines -
combinations of perlin functions for example.
good luck,
jon