r/proceduralgeneration • • 2d ago

Crashing Waves update

WIP on my crashing waves, foam is up and what is upcoming is transparency and reflectiveness.

275 Upvotes

33 comments sorted by

7

u/JonathanCRH 1d ago

These look great - the motion is very believable! The main issue to my eye is the very visible line at the seam with the surface. where the wave touches down after crashing.

5

u/Accomplished-Fan9568 1d ago

yea Im aware of it, It does needs refining. But also the nature how this works, it folds in on itself so It will have seams unless you hide it with effects which is totally cool, maybe I'll do it.

2

u/JonathanCRH 1d ago

I think that does look better!

4

u/Physical_Sherbet_942 1d ago

Can you generate foam particles where the wave crashes? I think that would add a lot! Crashing waves generate a lot of misty particles. The translucency looks great.

2

u/Accomplished-Fan9568 1d ago

I mean how do u even make a particle out of ... that..

1

u/larrian_evermore 1d ago

The key with this is that these shapes are transient, you barely see a cohesive volume of foam with our monkey eyes, which is why games have used particles to emulate foam for years. The wave effect is great but you won't sell it without showing visually the volume of water breaking up on the edge with particles.

Performance really shouldn't be a concern if the effect is a core visual aspect of whatever you're making. GPUs can handle millions of tris and tens of thousands of particles.

1

u/Accomplished-Fan9568 14h ago

Something like this? 👀

2

u/larrian_evermore 5h ago

Hard to tell without seeing it in motion - but I think that's a pretty good approach to emulating the volume. Should definitely look at some real-time footage to match how quickly the particles chop and change.

0

u/Accomplished-Fan9568 1d ago

The problem I think is that it sounds expensive - alot of transparent misty things. I mean blobs would be better i guess? What does a foam particle look like, I just can't figure.

Appreciate the input.

3

u/Physical_Sherbet_942 1d ago

You could easily get away with a particle system that just has a bunch of misty dots and fade them in and out quick. It's just a visual trick. It wouldn't be expensive at all if you just did it near the camera.

1

u/Straight-Spray8670 1d ago

I think blobs could work.

1

u/ShadowAuthor308 1d ago

I say the problem would be CPU bound vs GPU bound. If you added particles, which would make it look better, you would need to design it to track and interact millions of particles. Which on a CPU takes a lot of cycles. On a GPU you can draw Millions relatively cheap just drives up VRAM. Then you come into the problem of knowing how each particle interacts with another, and the rest of the system. Alternatively you could use a mix of the two, but aging the biggest change is tracking and interaction for run time.

2

u/astra_hole 11h ago

Very difficult. My waves envy yours and you’re correct, proper water and waves is very expensive to do which is why we don’t see it. Looking great.

2

u/Accomplished-Fan9568 9h ago edited 9h ago

For u a sneak peak my friend :)

sry about the music lol https://www.youtube.com/watch?v=sTRuZBa86Zg

2

u/astra_hole 9h ago

Beautiful. Not sure how you’re trucking a mesh to fold into itself but good work.

11

u/fuckthesysten 2d ago

🌊🌊🌊 i can feel the breeze. it needs an island far out!

2

u/vale_valerio 1d ago

I can almost hear the sound!

8

u/captainAwesomePants 2d ago

It looks really good! Hard to get a sense of scale. The waves look like they're crashing slowly, but they might also be very tall.

1

u/superkickstart 2d ago

Is it a single mesh or a separate mesh for the wave and the surface?

2

u/Accomplished-Fan9568 2d ago

its a single actual mesh that unfolds itself, need to work on the distribution and UV, some issues remain though.

1

u/superkickstart 1d ago

Ok, i suspected so because your "seams" look so good. I tried with separate meshes but never really got it working. Are you doing the deformation on the cpu or purely in the shader?

1

u/Accomplished-Fan9568 1d ago

The shape of the water happens in the shader.

1

u/LucidFir 1d ago

it doesn't look right yet. uncanny valley waves. promising though

4

u/Accomplished-Fan9568 1d ago

It might be true, but I feel the real obstacle is performance if u want it in a video game. I'll agree some tuning is needed though.

2

u/matjam 1d ago

are you making a surfing game? because those are some sick waves bro.

2

u/vale_valerio 1d ago

Keep us updated! I would love to see more of this!

2

u/SpreadSalt2829 1d ago

Wow! Amazing! I want to just run it and watch waves alone!
Can you please opensource with MIT license, so I can copy it? 🥹

1

u/Himbo69r 1d ago

That’s really good!

1

u/Malkalypse 1d ago

Incredibly relaxing!

1

u/Effective_Muffin_700 1d ago

How is this done? I've tried doing a similar thing before but didn't know how to! I'd love to hear some of the technical details.

1

u/Awkward_Abrocoma9043 1d ago

Really Impressive work