GET MARCHING: How I Used Compute Shaders to Make a Never Ending Ocean Environment

https://www.youtube.com/watc...
Sebastian's video: https://youtu.be/M3iI2l0ltbE GitHub repository: https://github.com/luizppa/game-dev-techniques#-marching-cubes The script for the camera controls in the video was also made by me, I expect to upload them to the asset store at some point, but for now, check them out on GitHub: https://github.com/luizppa/third-person-camera ------------------------------------------------------------------------------------ Disclaimers Multi core processors: in the video I mention that one CPU can only run one instruction at a time, while this is technically correct, it may oversimplify how processors work. For further information see https://www.bbc.co.uk/bitesize/guides/zws8d2p/revision. ------------------------------------------------------------------------------------ Chapters 00:00 Introduction 01:50 Initial Implementation 05:53 Chunk Loading 04:26 CPU Limitations 06:56 Compute Shaders 08:15 Technical Details 12:36 Results and Polishing 13:50 Terraforming 15:00 Conclusion ------------------------------------------------------------------------------------ Learning Resources Original article about marching cubes: https://people.eecs.berkeley.edu/~jrs/meshpapers/LorensenCline.pdf Web article: http://paulbourke.net/geometry/polygonise/ Web article on the density function: https://developer.nvidia.com/gpugems/gpugems3/part-i-geometry/chapter-1-generating-complex-procedural-terrains-using-gpu Complexity Analysis: https://discrete.gr/complexity/ ------------------------------------------------------------------------------------ Music Sunset Vibes Lo-Fi Chillhop by Geibral Elisha from Pixabay https://pixabay.com/music/beats-sunset-vibes-lo-fichillhop-9503/ Empty Mind by Lofi_hour from Pixabay https://pixabay.com/music/beats-empty-mind-118973/ Watr Fluid by ItsWatR from Pixabay https://pixabay.com/music/beats-watr-fluid-10149/ Assets UI icons: https://assetstore.unity.com/packages/2d/gui/icons/ux-flat-icons-free-202525 Fish models: https://assetstore.unity.com/packages/3d/characters/animals/fish/fish-polypack-202232 Monster duo model: https://assetstore.unity.com/packages/3d/characters/creatures/rpg-monster-duo-pbr-polyart-157762 Rocket model: https://assetstore.unity.com/packages/3d/vehicles/space/rocket-cartoon-capsule-196997 Spark particles: https://assetstore.unity.com/packages/vfx/particles/stylized-sparks-vfx-pack-maiami-studio-226113 Grass foliage: https://assetstore.unity.com/packages/3d/vegetation/plants/stylized-grass-narcissus-project-82872 Skybox: https://assetstore.unity.com/packages/2d/textures-materials/sky/os-super-simple-skybox-procedural-skybox-urp-birp-210177
Home
/
Indie Game Developers
/
Luiz Philippe
/
GET MARCHING: How I Used Compute Shaders to Make a Never Ending Ocean Environment