Minecraft implementation from scratch using C++ and OpenGL for advanced computer graphics final work
Check some results
- Chunk division
- Level distance optimization
- Block face culling optimization
- Insert blocks and remove blocks
- Walk in the terrain
- Unable to save modifications on the map, so if the chunk despawn the modifications are lost
- Only can remove and place block from the top of a chunk (for simplicity of implementation)
- Some shrubs and plants may change orientation when the chunk is rebuilt because of the use of randomness
- Sometimes the ray don't hit the closer block, so you will remove/add in the "wrong" location (i forgot to sort that)
- GLFW https://github.com/glfw/glfw
- DB Perlin https://github.com/daniilsjb/perlin-noise
- GLM https://github.com/g-truc/glm
- GLAD https://github.com/Dav1dde/glad
- ImGUI https://github.com/ocornut/imgui
- STB IMAGE https://github.com/nothings/stb
- You can change the movement speed
- Change the mode from fly or walk
- Change the mode from erase block to insert block
- You can select 4 types of block to insert