[Help Request] 2D Wave Generation & Animation
I'm working on a 2D surfing game and could use some suggestions on creating a dynamically generated and animated wave.
Here's my concept art:
I'm going to break the wave into two main parts. The back of the wave (what the surfer will contact) and the front of the wave (what makes the tube).
I've created the back of the wave by manually position vertices of a mesh.
Here's a screenshot (dark blue is the wave):
I plan to adjust the position of the vertices in the Update() function. I'll pick a vertex somewhere along the top edge to start the wave "crashing". Form this vertex, I'll create another mesh that will represent the front part of the wave that will continue to get larger and fall towards the ground.
I'm a little worried about the math to accomplish this so that it looks organic, and also allows dynamic generation (smaller/larger waves, bigger barrel, etc).
I wanted to check with the community incase anyone had some creative ideas on how you would approach it? I'm willing to purchase assets from the asset store if they'll help.
Answer by diegopandrade · Sep 29, 2016 at 01:21 PM
Maybe you could get in touch with these guys to get some info
https://itunes.apple.com/br/app/go-surf-surfe-a-onda-infinita/id1088941177?mt=8
Answer by babayatasovich · Feb 03, 2020 at 07:31 PM
You just need to make the animation of the wave cycle in a static state and seamless. Here's how to do it in TVPaint: http://2danimator.ru/showpost.php?p=92509&postcount=121,You just need to make the animation of the wave cycle in a static state and seamless. Here's how to do it in TVPaint: http://2danimator.ru/showpost.php?p=92509&postcount=121
I went the wrong way, like you - tried to generate the WAY of the wave. Then he solved the problem by expanding the wave along the entire length from peak to repeated peak. He outlined the movements of the masses of water and foam. The result was a seamless and static wave. Now it can be removed in a static state during coastal motion and in a dynamic state with a static coast.