{"repo":"paternostrox/Minecraft4Unity","free":true,"listed":false,"github":"https://github.com/paternostrox/Minecraft4Unity","clone":"git clone https://github.com/paternostrox/Minecraft4Unity.git","description":"A minimal and very optimized version of Minecraft made in Unity, virtually endless in all three axis.","language":"C#","stars":158,"topics":["computer-graphics","greedy-algorithms","greedy-meshing","job-system","minecraft","procedural-generation","unity","voxel","voxel-game","perlin-noise"],"license":"MIT","category":"game-templates","readme_excerpt":":crystal ball: Minecraft4Unity A minimal and very optimized version of Minecraft made in Unity, virtually endless in all three axis. It features procedural world generation with greedy meshing, data persistence and an inventory system. :fire: Basic setup: Just clone the project and open it in Unity version 2022.3.7f1 LTS or newer, it should also run in any 2020+ version with no issues. All the packages needed for the project will import automatically when opening it for the first time. :desktop computer: Code description Procedural generation While exploring the world, the game generates land and objects around the player position. For performance reasons, the game world is divided in chunks, like in the original game. Each chunk goes through the following process: 3D Simplex Noise - Block Data Generation - Mesh & Collider Generation (Greedy Meshing) - Object Spawning The basis for the procedural generation is a simplex noise function that is interpreted by the system. The system attributes different voxel types (e.g. air, stone, brick) for different value ranges. The block data is then used to generate the chunk meshes and colliders. The collider data is then used to spawn non-voxel objects (e.g. characters, items) in the chunk, which are placed randomly on top of ground voxels. An atlas shader takes care of texturing the chunk according to the UV data built by the mesh generation. The Unity job system is used in the most compute-intensive tasks, like in mesh and collider ge","default_branch":null,"files":null,"tree":[],"storefront":"/r/paternostrox","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/paternostrox/Minecraft4Unity/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}