r/GraphicsProgramming • • Sep 08 '24

My ocean simulation using gerstner waves

244 Upvotes

14 comments sorted by

30

u/smolderas Sep 08 '24

It seams backwards.

5

u/Crybabylikespasta Sep 08 '24

It steep from both sides. But it might be is because i didnt apply the kludge effect from fournier paper to control the shape of the crest

7

u/fgennari Sep 08 '24

The foam should be on the leading edge of the wave rather than the trailing edge. I think? That's why it appears backwards.

1

u/Interesting-Chance28 Mar 01 '26

Hey, I'm a year late, but I'm reading that same paper. Could you explain what the "kludge" is?

1

u/Crybabylikespasta Mar 03 '26

Ahh my mistake i reread it and that part is to simulate the effect of wind on top of the waves, but the author though its bad. Its the third term inside the phase angle that controls the supposed shape of the wave at the top u can see it in figure 5 on the paper for example. The bigger the constant the more tip move horizontally i assume

2

u/vildvuxen Sep 08 '24

Nice! Did you figure out how to calculate the jacobian?

4

u/Crybabylikespasta Sep 08 '24

Thank you, Idk what jacobian means. But if you mean partial derivatives yes

1

u/Htmlpro19 Sep 08 '24

What engine/api did you use to make this?

3

u/ashleigh_dashie Sep 08 '24

impressive, very nice

3

u/PearsonThrowaway Sep 08 '24

Very cool but the foam seems to be on the wrong edge

2

u/zninja-bg Sep 08 '24

To me this is most likely Stealth UFO. XD