Good progress in developing a real ocean

That’s how I felt too :smile:
The waves sometimes stopped me from working because looking at them was somehow relaxing. The waves have something hypnotic about them. The audio listener has to be included so that you can hear ocean noises.

2 Likes

Great example.

Makes my 4090 turn on fans after 10 seconds :sweat_smile:

It really is mesmerizing. Love it.

I have now reduced the TEXTURE_SIZE to 128 in src/waves/wave-constants.js and set the LAMBDA from 1 to 0.9.

The fans will still come on :grin:, but it’s much gentler. The TEXTURE_SIZE determines the resolution of the ifft calculations. IFFT calculations are extremely computationally intensive. This is only possible with the compute shaders in WebGPU.
I reduced the LAMBDA value slightly in order to reduce the wave overlap at higher waves. LAMBDA multiplies the lateral wave movement by the LAMBDA factor. The four values ​​in LAMBDA represent the respective wave cascade.

1 Like

just ran it on my 4090… liquid. so good.

I’ll soon replace the node_modules folder with r164 ​​or wait until r165 :thinking: think about it.
There were some extensions in the renderer that have a positive effect.
I’ve thoroughly cleaned up the repo. There was still a lot of junk in there and the formatting was messy. I’m working on two other apps at the same time, but I’ll continue to develop the ocean.

2 Likes