I had the same issue with implementing water in Godot. There is no pre-built wave anything, so you have to write it all from scratch. I used a wave function and then a few noise textures to get it to feel more organic. My version of Godot doesn't even have compute shaders. What I ended up doing was having the wave code run on the GPU in the shader, and also on the CPU by rewriting the math and reading the same textures again. I then pass the delta from the CPU to the GPU through the shader uniform to make the timing all line up. Definitely one of the more expensive ways to solve it, but as long as the game stays simple enough, you can get away with it. I'm sure this is all stuff you already knew, but in case it's helpful to anyone, its a way to go about it. All told, I have an average render time of around 5ms which isn't horrible for the most expensive effect in my game.
@zongyewang360111 ай бұрын
As a physicist, I think the wiki page is trying to convey how the circular motion of water molecules arises from the underlying physics. Before Gerstner actually solved the equations, he didn't know about the circular trajectory for sure.
@charliemossop405711 ай бұрын
A fantastic video!
@microwave24205 ай бұрын
to figure out the height of a particular point of wave you'd need to probably implement some sort of FFT algorithm or at least a DFT system (which btw is a great way to sum up all the waves for all their phases at each point) and then sample the height displacement for that vertex in the time domain
@CraigPerko5 ай бұрын
Yeah, if you want to go backwards it's a bit harder.
@franknord482611 ай бұрын
Thanks - I'm currently getting started with shader programming and am prototyping a water displacement shader, so this comes at a very opportune time for me. :)
@CraigPerko11 ай бұрын
Actually coding them typically involves a few variables to keep things under control, but if you know the basics, you'll know why those variables exist.
@krawlak11 ай бұрын
ThreeBlueOneBrown once said in a podcast something like that math wikipedia articles are not for teaching students but as reference material for teachers/tutors to draw from and create their understandable version tailored to specific students.
@smam26695 ай бұрын
I have never related more to anything than that comment about the wikipedia article. What is the point of writing an article that is supposed to give information in a way where people can't get information from it?
@Mr.MOA.Official3 күн бұрын
I feel this math Wikipedia statement so much 😂
@dagan_origin5 ай бұрын
the show off is very true...
@AggroPhene11 ай бұрын
I call it 'Z' and think it relates to quantum collapse; this cosine variable moving against the current, yet time congruent. Not truly a physics-based assessment, just a radio technician - alchemists outlook, that I thought might help. 'X' being the mesh, and 'Y' the sine.
@timmygilbert410211 ай бұрын
Perfection 😂
@AggroPhene11 ай бұрын
@@timmygilbert4102 perfect Storm
@timmygilbert410211 ай бұрын
The true end boss of waves is the crashing 🌊 waves 👋