#💬 nekster_nekʹs Feedback
1 messages · Page 1 of 1 (latest)
i've been trying to figure out how to do that, would you mind telling me?
It's editable mesh
I haven't shown the whole scene
But firstly I made chunk system
So I can change render distance
Also u should have a table with all vertices world offsets
After that we can try moving mesh with player's character
Now we need to make wave formula
For first time u can try to use sine wave
Now to actually generate waves u need to loop through all vertices using table u got
Every vertice has offset
Like in minecraft
Every vertice is a block
And it has it's own coordinate x and y
Depending of coordinates of every vertice u should calculate heigh of vertice's actual position, not offset
And all done
But
Ur waves will be laggy
So u should multithreading
In conclusion it's kinda hard to make actual ocean
Bc editable mesh has limit amount of vertices and faces
My ocean isn't finished yet
I need to make chunks that far away from player to have less amount of faces
Anyways editable mesh is kinda hard to learn
I'll send another video with wider view of my ocean later
no video but here u can see that there are not enough chunks for ocean
there are so many vertices
but
we don't need to see that much far away from player's location
so next thing do to is chunks with less amount of vertices
also waves are tiling but it's fixable
i hope anyone enjoyed this dev log (bc it's showcase i think)
see ya
S3
robloxs lack of self occlusion makes good looking water so hard
only glass has it
It gets really noticeable when you get bigger distances
the look of the water is pretty good tho
How did you achieve that?
reflectance + transparency
i'm trying to make different chunk resolutions
this is all that has happened so far