JakuJ / minecraft-clone

Minecraft-like terrain from scratch with OpenGL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yet another Minecraft clone

An attempt to recreate a (very limited) subset of the popular game "Minecraft", delving deeper and deeper into OpenGL and modern C++ along the way.

What's working so far

  • A controllable free-floating camera
  • A quad tree for efficient querying of chunk info
  • Chunks only generated when first seen
  • Only rendering chunks in a radius around the player
  • Chunk geometry loaded on a separate thread
  • Transparent and semi-transparent blocks (leaves, water)
  • Seeded terrain generation based on simplex noise
  • Two renderers - one based on glDrawElementArrays, and one based on instancing
  • Simple sky block
  • Day and night cycle with dynamic lighting during sunset and dusk
  • Jumping and swimming

Extra stuff

  • GitHub Actions pipeline for Linux and MacOS

Screenshots

A screenshot of the current state A screenshot of the current state A screenshot of the current state

About

Minecraft-like terrain from scratch with OpenGL


Languages

Language:C++ 89.7%Language:GLSL 5.7%Language:CMake 4.2%Language:Shell 0.4%