How to do Foam Whitecaps on Mesh Deformed Oceans?

I can’t help but wonder, how other games do ocean foam whitecaps on their oceans. I want to try achieving it in Roblox, but I don’t know how to put it on mesh-deformed oceans. If anyone knows how to do this, let me know here.

Reference: Real-time Animation and Rendering of Ocean Whitecaps - YouTube

1 Like

More References:


2 Likes

I’m not that experienced in mesh-deformation, but I’d assume they need to change the texture. This is possible in Roblox using a Texture.

The texture would probably need to be animated, can you find a texture with those whitecaps

1 Like

I’m unaware of textures like that. You can always make one yourself.

1 Like

I think you can change the terrain water reflectance for a similar effect.

I don’t plan on using terrain water for this project, and besides, the effect I am looking for has nothing to do with reflectance

What programs can I use to do so?

I would always recommend GIMP for something like this.

I got the program in mind, but any idea on what specific tools in that program I would use for my purpose?

Not really. I haven’t used the program in the while.

However, you might want to try out the texturing tools and the brush tool.

In roblox studio there is currently no way to do this without tons of work. Im really hoping roblox will add a shader system like in Unity which would make many effects including this work.

2 Likes

It would be great if Roblox could add shader graph functionality💧

is there a way to script a shader in Roblox? (idc if its a thousand lines of code at this point)

The only thing i can think of for this is to create a TON of textures for the mesh and change the texture to a new one for the whitecaps. I also wouldnt say there is really any way to script shaders like this.

try surface appearance tool and add normal map of some sort or i guess a smoothing map

A surface appearance couldn’t really change the color

ok what is he trying to do anyways then

He wants to create foam on the water when it reaches a higher point.

what scripts would be needed to make the texture only show or the water color only change when the water is high?