How would I go about creating a realistic ocean?

How would I go about creating a realistic ocean?

I could use SkinnedMeshes to simulate waves, however I don’t know how to still have an “Ocean” under it that you can swim in. Also I don’t know how I would add buoyancy to this method, and depth to the water?

1 Like

Or just use robloxs terrain, it has properties for wave etc

3 Likes

yeah but the default water wouldnt look good

1 Like

True, you could utilise EdittableMeshes, quite a bit of maths involved though i believe.
If you go this route use Actors and parallel lua

Search the dev forum #resources there are a number of ocean posts

1 Like

They are all either telling you to insert a module (which I want to make this, not use someone else’s module) or telling you about a script in blender you need for your plane but not giving you it.

Probably the best way if I wanted to keep an ocean underneath it.

1 Like

Adding onto this, they put “bones” inside a plane, when you move a bone inside the plane it will move that segment, i think that makes sense

Yeah I already made a plane with a lot of bones but do you know how would I make the server know where the waves will be since for the buoyancy since the ocean will be on the client

1 Like

I’m unsure on that part, I’m not very good with maths myself.
Could use GPT for a bit of help :eyes:

yeah same here, good idea lol.

1 Like

perlin noise via math.noise() and a mesh deformation bones, thats usually the method. can also look up other algorithms to make waves wash ashore. theres actually an open source on this that uses sine waves and mesh deformation, you can view the code there, its pretty simple.

wow, I’ll probably look at the game, view the code to understand it, and make a similar version. thank you!

np if this was the solution make sure to mark it so the thread closes, have a nice day