A cubical voxel engine, with chunks, interval maps and greedy meshing
 
 
 
 
 
 
Go to file
EmaMaker 88abf21502 multithread: refactor update thread, communication between mesh/gen/upd threads
- Use parallel_for to iterate over all the stored chunks
- Only push a chunk to a queue if it is not already present, using chunk state bitfield (solves
	memory leak, continously adding new elements to a queue)
- Properly delete an element from chunks concurrent_hash_map using accessor, then free the memory
(solves memory leak: not being able to delete old elements and always adding new ones)

Breaks:

- Rendering (will be properly refactored in a future commit)
- Block picking (will be refactored in a future commit)
2023-10-04 13:10:05 +02:00
include multithread: refactor update thread, communication between mesh/gen/upd threads 2023-10-04 13:10:05 +02:00
lib lib: add dearimgui lib 2023-09-20 12:42:05 +02:00
shaders hud: crosshair with fragment shader 2023-09-20 12:42:05 +02:00
src multithread: refactor update thread, communication between mesh/gen/upd threads 2023-10-04 13:10:05 +02:00
textures Initial tree generation 2023-07-30 12:16:32 +02:00
.gitignore create debug window with imgui 2023-09-20 12:42:05 +02:00
.gitmodules lib: add dearimgui lib 2023-09-20 12:42:05 +02:00
CMakeLists.txt create debug window with imgui 2023-09-20 12:42:05 +02:00
README.md initial commit 2022-11-10 19:53:52 +01:00
build-and-run.sh initial commit 2022-11-10 19:53:52 +01:00
intervalmap.hpp renderer: render scene to a texture 2023-09-20 12:37:32 +02:00

README.md

Port of https://git.emamaker/voxel-test-intervalmaps to C++ and OpenGL.

Credits

CMake template based on https://github.com/kigster/cmake-project-template by Konstantin Gredeskoul under MIT License

Rest of credits is in respective source files (OpenSimplexNoise, glad, glm, stb_image)