Mini Minecraft
A voxel engine with infinite procedural worlds
C++, OpenGL, Qt, GLSL · Oct – Dec 2024 · Team of 3
- 1M+ blocks of infinite procedural world
- 60+ FPS while the world generates
- 5 biomes from Perlin noise
A voxel game engine in C++ and OpenGL with Qt, built by three of us: an infinite procedural world of 1M+ blocks that holds 60+ FPS while it generates.
What's in it
- Terrain from layered 2D and 3D Perlin noise, in five biomes (grassland, mountain, desert, islands and caves), each with its own mix of blocks and its own procedurally placed vegetation.
- Chunks, with frustum culling and level of detail. Faces between neighboring blocks are culled, which cuts draw calls by 80%.
- Post-processing in GLSL: underwater and lava distortion by warping the UV coordinates, and a crosshair overlay.
- Physics two ways: gravity and collision with the terrain on foot, and buoyancy in water and lava. A fly mode moves with six degrees of freedom.
- Mining and placing blocks by ray casting, with the chunk's mesh rebuilt at once, across 16 block types with their own textures and properties.