Terrain Water Wave Physics

Had an idea to make Roblox terrain water better, so I made a system which produces waves that interact with physics objects!

You can see it in action here

Right now the waves are limited to small variations and intensity, but I might make an alternate version which allows for really high waves

Let me know if you’d like to see a game with this feature, I was thinking something like Galleons, but I’d need to find the time.

23 Likes

Very cool! I have always wanted to make a system like this however I don’t know how to. Could you let me in on how to get started?

1 Like

The system I use right now edits voxel terrain occupancy levels with a sine wave equation

1 Like

Ah. I might try something like that soon.

1 Like

This looks nice for sure but the game is really laggy even though it’s so small. Unsure if this will be good for large games that want to do something like this.

1 Like

oop, I forgot to mention, this might require a bit of a beefy PC to operate with minimal frame loss because the waves are all simulated locally. It isn’t that small, just roblox LOD is bad.

I may consider adding a LOD function into this to allow slower computers to see it smoothly

1 Like

I have a beefy PC and can run many big games fine, for some reason your was pretty laggy. I understand why though

1 Like

huh, I don’t get any lag at all. Can I have your specs? Maybe I can do something with the info

Here’s my specs :
NVIDIA 1060 3gb - Graphics Card
Intel e3 v3 - CPU
16GB Ram

1 Like

Oh, I took a look at the microprofiler and I see what you mean, I’ll work on something to try to minimalize that, probably only simulating the waves in a radius would work.

Its really cool feature! I always wanted to make high waves but roblox dont allow it. Can you please make a game with high waves, like Galleons

1 Like

This is amazing!

Do you think this will be laggy for low-end users though? Since I’m assuming it’s all physics that give the boats the balancing.

Without the boats, would the waves still create lag for low-end users?

1 Like

The physics load is shared among players, so with a full server I imagine the physics shouldn’t be very laggy. A majority of the lag is coming from rendering the water as the terrain is constantly being changed. Right now I’m working on a LOD system to address that.

1 Like

I have implemented a LOD system which should attempt to curb the lag, saw a 15-20 frame improvement

1 Like

can you please teach us how to make this wave system. Popular games will use this and in games water will be better!

I’m really excited to see something like this in the future. I am also pretty sure people will pay good money for a system like this.

Good job on it I really like it and its kinda fun. If you can, can you try fixing the issue with the water showing weird gaps its pretty distracting. Here’s what I mean.

I have something just like that, but it uses a mesh I made in blender as a wave. The downside is it doesn’t look great. But maybe after SurfaceAppearance is added, it will look nicer.

My wave uses raycasting on each end of the ship and points the Vector3 Positions to eachother. The wave is never laggy, and can be enlarged to “Stormy Seas” like in the movies. Perhaps try using your own meshes for waterrobloxapp-20200905-1643481.wmv (1.3 MB)

Is this open source? I’m limited to a phone only Rn because of United States Marine Corps training so idk…

This water system isn’t open sourced.