Mini Minecraft
November 6, 2024Less than 1 minute
Mini Minecraft
- Milestone 1: procedural terrain
- Milestone 2:
- 3D noise
- texture
- Multithreaded terrain generation
- Milestone 3:
- 50
- extra 50
Noise
Berlin, Worley noise
Summed Perlin noise terrain
Increase number of grid lines
the lower freq the flatter
different freq and
float dessertH = dessertHeight(xz);
float grassH = grassLandHeight(xz);
float t = biomeBlender(xz);
t = smoothsep(0.4, 0.6, t); // smooth between biome
float h = mix(dessertH, grassH, t);
write
- grass
- mountain
noise and distribution
chunk rendering
class Chunk {
private:
std::array<BlockType, 65536> m_blocks;
int minX, minZ;
std::unordered_map<Direction, Chunk*, EnumHash> m_neighbors;
}
struct InputBundle {
bool press
}
physics
every tick check distance between ground and