Coding Adventure: Ocean Simulation and Buoyancy
In this video, I explore what it takes to generate ocean waves and apply buoyancy to a boat. This video was created for my Computer Graphics Final Project. 00:04 - Introduction to ocean simulation in Unity 00:16 - Implementing Gerstner waves for realistic water simulation 00:51 - Generating a plane and updating vertices to create waves 01:42 - Combining multiple Gerstner waves for a more realistic ocean 02:25 - Improving performance with a shader in Unity's Shader Graph 03:07 - Calculating ocean height and implementing buoyancy for ship interaction 04:05 - Applying drag and angular drag to improve ship stability 04:28 - Adding ship movement with keyboard input 04:55 - Creating an infinite ocean and adding additional features 05:21 - Conclusion and additional resources Project Files: The Unity project is on github: https://github.com/shanlemon/ocean-and-boat-simulation A windows build is on itch.io: https://shanlemon.itch.io/ocean-and-boat-simulation Credits: Gerstner Wave Math: https://catlikecoding.com/unity/tutorials/flow/waves/ Height Sampling Explanation: https://www.youtube.com/watch?v=kGEqaX4Y4bQ Dynamic Water Physics: https://www.youtube.com/watch?v=eL_zHQEju8s&t=465s Stock Ocean Video by Videezy.com Inspired by and made in the style of Sebastion Lague's Coding Adventure videos. Check out his channel here: https://www.youtube.com/user/Cercopithecan
Download
0 formatsNo download links available.