What are Gerstner Waves?

  Рет қаралды 1,899

Craig Perko

Craig Perko

Күн бұрын

Пікірлер: 15
@tampaints
@tampaints 23 күн бұрын
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.
@zongyewang3601
@zongyewang3601 11 ай бұрын
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.
@charliemossop4057
@charliemossop4057 11 ай бұрын
A fantastic video!
@microwave2420
@microwave2420 5 ай бұрын
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
@CraigPerko
@CraigPerko 5 ай бұрын
Yeah, if you want to go backwards it's a bit harder.
@franknord4826
@franknord4826 11 ай бұрын
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. :)
@CraigPerko
@CraigPerko 11 ай бұрын
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.
@krawlak
@krawlak 11 ай бұрын
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.
@smam2669
@smam2669 5 ай бұрын
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.Official
@Mr.MOA.Official 3 күн бұрын
I feel this math Wikipedia statement so much 😂
@dagan_origin
@dagan_origin 5 ай бұрын
the show off is very true...
@AggroPhene
@AggroPhene 11 ай бұрын
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.
@timmygilbert4102
@timmygilbert4102 11 ай бұрын
Perfection 😂
@AggroPhene
@AggroPhene 11 ай бұрын
@@timmygilbert4102 perfect Storm
@timmygilbert4102
@timmygilbert4102 11 ай бұрын
The true end boss of waves is the crashing 🌊 waves 👋
Structuring Travel in RPGs
21:08
Craig Perko
Рет қаралды 1,3 М.
Writing Visual Novels
14:19
Craig Perko
Рет қаралды 5 М.
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
Challenging Iteration
15:44
Craig Perko
Рет қаралды 475
Physics of Ocean Waves DVD
23:58
John Mair
Рет қаралды 7 М.
LoRF-Ha: AI can see you through walls
15:18
SkimoBen
Рет қаралды 14 М.
How Games Fake Water
22:52
Acerola
Рет қаралды 233 М.
Wave Drive with Rolling Elements - Cycloidal Gear Alternative!
11:49
Mishin Machine
Рет қаралды 29 М.
Perception of Progression
19:26
Craig Perko
Рет қаралды 1,2 М.
Electromagnetic Waves - with Sir Lawrence Bragg
20:23
Ri Archives
Рет қаралды 483 М.
Ocean waves simulation with Fast Fourier transform
14:26
Jump Trajectory
Рет қаралды 376 М.
Chaos Theory: the language of (in)stability
12:37
Gonkee
Рет қаралды 582 М.
Player-Generated Content in MMOs
33:52
Craig Perko
Рет қаралды 663
Don’t Choose The Wrong Box 😱
00:41
Topper Guild
Рет қаралды 62 МЛН