A Minecraft clone made for fun in Java using OpenGL.
WASD
to moveSpace
to fly upL-Shift
to fly downt
to see the wireframeEscape
to toggle/untoggle the cursor
- LWJGL3 for graphics rendering
- JOML for maths
- ImGui Java for the GUI
- Used this repository as reference
- FastNoiseLite for world generation
- Optimize loading new chunks
- Optimize the loop for the blocks or whatever
- For loading new chunks, you know that the rest of the blocks above the noiseYThreshold will be air so no need for perlin
- Implement a tick system to load the chunks progressively
- 20 ticks/sec, or 1 tick/0.05 sec
- Load the chunks at the tick rate
- AABB
- What happens if the player is between chunks? I believe it shouldn't matter
- Block highlight
- Instanced rendering
- Have only 1-2 draw calls instead of multiple thousand
- source
- There are some magical areas where the chunks are not being meshed nor are they being properly chosen for the raycast