Commit Graph

  • fa3d36ec58 shaders: fix rotated textures on x axis main EmaMaker 2023-10-11 20:47:41 +0200
  • ebef608000 blockpick: avoid blocks being placed diagonally EmaMaker 2023-10-11 11:27:05 +0200
  • 0b294bb35b blockpick: cleanup blockpick place code EmaMaker 2023-10-09 21:55:31 +0200
  • f3d8ffed54 blockpick: skip iteration if block has not changed EmaMaker 2023-10-04 22:33:43 +0200
  • 0560fd43c6 print gpu in debug window EmaMaker 2023-10-04 20:58:06 +0200
  • 62212a22ab main: do not terminate imgui, leads to crash EmaMaker 2023-10-04 14:59:31 +0200
  • 357f67aac1 chunkmgr: debug info for chunkmgr EmaMaker 2023-10-04 14:59:17 +0200
  • 1b4cef8958 Merge pull request 'Refactor Main/Update thread communication' (#14) from multithread-refactor into main EmaMaker 2023-10-04 14:58:07 +0200
  • e4c6eb50f3 Merge branch 'main' into multithread-refactor multithread-refactor EmaMaker 2023-10-04 14:55:47 +0200
  • 9b5939d256 renderer: do not send empty meshes to the gpu only at creation EmaMaker 2023-10-04 13:55:32 +0200
  • 8401a3dca7 Merge branch 'main' into multithread-refactor EmaMaker 2023-10-04 14:51:56 +0200
  • 255460892d blockpick control belongs to control, not chunkmgr EmaMaker 2023-10-04 14:41:44 +0200
  • afdd622ec2 refactor message system between main and update threads EmaMaker 2023-10-03 18:43:29 +0200
  • 93bc0e7066 renderer: do not send empty meshes to the gpu only at creation EmaMaker 2023-10-04 13:55:32 +0200
  • 8544620899 Merge pull request 'Refactor Meshing/Rendering communication' (#13) from multithread-refactor into main EmaMaker 2023-10-04 13:52:26 +0200
  • a4f1e5fc1f Merge branch 'main' into multithread-refactor EmaMaker 2023-10-04 13:51:56 +0200
  • 78b65894b7 chunkmesher: compiler flag to not show borders at world limit EmaMaker 2023-10-04 13:26:11 +0200
  • 355da726f6 Merge pull request 'Refactor Secondary Threads' (#12) from multithread-refactor into main EmaMaker 2023-10-04 13:32:23 +0200
  • ba95db4678 renderer: also delete meshes of old chunks EmaMaker 2023-10-04 13:02:10 +0200
  • 7c82a71dd0 chunk: vram buffers are managed by renderer now EmaMaker 2023-10-04 12:55:16 +0200
  • 7786d4f04d renderer: use ChunkMeshData from rendering thread EmaMaker 2023-10-04 12:54:16 +0200
  • 1822911845 chunkmesher: use goto for error handling EmaMaker 2023-10-04 12:12:29 +0200
  • d0ddf2256f move chunkmeshdata into its own file EmaMaker 2023-10-04 12:10:33 +0200
  • 88abf21502 multithread: refactor update thread, communication between mesh/gen/upd threads EmaMaker 2023-10-04 11:33:00 +0200
  • f4947d5f70 debugwindow: catch exception to avoid crash when missing parameters EmaMaker 2023-10-04 11:27:53 +0200
  • 4e7fadd2b9 chunk: use chunk state to mark presence of chunk in thread communication queues EmaMaker 2023-10-04 11:23:38 +0200
  • d1b151f92f chunk: typedef for chunk state EmaMaker 2023-10-04 11:14:18 +0200
  • 44edf3e53a Merge pull request 'Misc fixes in preparation for multithreading refactor' (#10) from multithread-refactor into main EmaMaker 2023-10-03 22:55:11 +0200
  • 3adb061057 Merge branch 'main' into multithread-refactor EmaMaker 2023-10-03 22:53:42 +0200
  • 1a50d1fb84 chunkmgr: span chunk indices in a cube around the player, not a sphere EmaMaker 2023-10-03 22:41:06 +0200
  • 60bbc85682 chunk: store index in chunk itself EmaMaker 2023-10-03 22:32:16 +0200
  • 490f207e39 chunk/mgr: calculate index belongs to chunk namespace EmaMaker 2023-10-03 22:30:42 +0200
  • c6d00c4200 fix type mismatch in chunk index/coordinates EmaMaker 2023-10-03 22:25:46 +0200
  • 2a57796ed2 move input handling from main into dedicated file EmaMaker 2023-10-03 18:16:45 +0200
  • ca043bac68 threads: allow for proper shutdown EmaMaker 2023-10-03 22:01:32 +0200
  • f6f4057109 update player debug variables in main instead of chunkmgr EmaMaker 2023-10-03 21:57:09 +0200
  • 353ef37186 renderer: perform frustum culling only if chunk has vertices EmaMaker 2023-10-03 21:35:50 +0200
  • 880c634be0 camera: set atomic position at startup EmaMaker 2023-09-21 15:43:51 +0200
  • e593696af3 restore seamless chunk borders fix-multithread EmaMaker 2023-10-03 19:10:06 +0200
  • df933bebdd refactor message-sending system between main and update thread EmaMaker 2023-10-03 18:43:29 +0200
  • 950e8c68ab separate input handling from main EmaMaker 2023-10-03 18:16:45 +0200
  • 4c46811a25 delete meshes relative to deleted chunks EmaMaker 2023-10-03 16:02:49 +0200
  • bc3c5587f8 calculateIndex belongs to Chunk namespace EmaMaker 2023-10-03 15:42:01 +0200
  • b95ea49c93 gpu printed in debug window EmaMaker 2023-10-03 15:35:56 +0200
  • 90fabf73ee add to queues only if completely free EmaMaker 2023-10-03 15:35:34 +0200
  • 96bf3c651d player debug variables updated in main EmaMaker 2023-10-03 15:30:22 +0200
  • 170deaccf7 eliminate unused variables+stricter "free" condition EmaMaker 2023-10-03 15:28:21 +0200
  • da6ceeb605 set generation/meshing queue flags before pushing to queues EmaMaker 2023-10-03 12:30:57 +0200
  • ca44c0f284 initial update/mesh/render thread communication refactor EmaMaker 2023-10-03 12:25:56 +0200
  • a05d019c69 use concurrent_hash_map and parallel_for for chunk update EmaMaker 2023-10-01 19:45:51 +0200
  • 49edf2de85 move chunk update back to secondary thread EmaMaker 2023-10-01 11:00:00 +0200
  • 8a3c963721 solve some memory leaks regarding thread communication queues EmaMaker 2023-09-30 22:54:47 +0200
  • 1ec529fae5 fallimentary attempt at fixing memory management with onetbb EmaMaker 2023-09-30 15:09:26 +0200
  • 00cdd22e10 renderer: try frustum culling only if chunk has vertices EmaMaker 2023-09-22 09:06:48 +0200
  • a65fc44069 renderer: correct distance check EmaMaker 2023-09-21 17:13:21 +0200
  • 3f02ca91db chunkmgr: proper use of int instead of uint in chunk indices EmaMaker 2023-09-21 16:58:18 +0200
  • 01f1f9da16 squashed commits EmaMaker 2023-09-21 15:49:50 +0200
  • 5f396a9801 camera: set atomic position at startup EmaMaker 2023-09-21 15:43:51 +0200
  • 9ad0485a79 Merge pull request 'Adds HUD elements' (#9) from hud into main EmaMaker 2023-09-20 12:43:59 +0200
  • 50bc52a679 debug window: use wireframe from checkbox in rendering hud EmaMaker 2023-09-18 21:37:21 +0200
  • 07068d740a debug window: use block type from slider in block picking EmaMaker 2023-09-18 21:00:55 +0200
  • 52696f2dde debug window: use crosshair type from slider in shader EmaMaker 2023-09-18 21:00:08 +0200
  • 9d2d0c8772 debug window: populate with data EmaMaker 2023-09-18 20:54:57 +0200
  • f526e9b152 create debug window with imgui EmaMaker 2023-09-18 17:29:55 +0200
  • e7c4b2d56b lib: add dearimgui lib EmaMaker 2023-09-18 16:03:30 +0200
  • a6a419fdff hud: crosshair with fragment shader EmaMaker 2023-09-17 15:50:54 +0200
  • 3f61a6a753 renderer: screenshot by saving render texture to file EmaMaker 2023-09-17 15:50:25 +0200
  • 00a4b8e1e2 renderer: properly handle framebuffer resizing EmaMaker 2023-09-17 15:48:11 +0200
  • 4b723d58fa libs: import stb_image_write EmaMaker 2023-09-17 15:45:21 +0200
  • 1c0ee1315f renderer: render scene to a texture EmaMaker 2023-09-17 10:40:55 +0200
  • 6670f3b41c shader: make geometry shader not mandatory EmaMaker 2023-09-17 10:40:21 +0200
  • 41275486a6 blockpicking: eventually mesh nearby chunks when destroying a block EmaMaker 2023-08-12 08:44:46 +0200
  • 3d0d8b7593 chunkmgr: chunk can be meshed if all neighbors are generated EmaMaker 2023-08-04 13:01:39 +0200
  • 8d160c3239 Merge pull request 'Responsive block picking during generation and meshing' (#7) from better-generation into main EmaMaker 2023-07-30 12:30:31 +0200
  • ca04afcc89 Merge pull request 'Better World Generation' (#6) from better-generation into main EmaMaker 2023-07-30 12:28:59 +0200
  • 1bea6c835c separate mesh and generation threads, with priority queues for input better-generation EmaMaker 2023-07-29 23:32:45 +0200
  • 83f0aafba0 give leaves a sprinkle of color EmaMaker 2023-07-28 16:39:24 +0200
  • b0cf413baf generator: add comments + a bit of refactor EmaMaker 2023-07-28 16:36:14 +0200
  • baa8d14bb3 generator: optimize leaves generation routine with LUT EmaMaker 2023-07-28 16:25:57 +0200
  • 381cd698c7 Initial tree generation EmaMaker 2023-07-23 11:49:40 +0200
  • 9bc5bab3b2 mountain terrain with multiple octaves of noise EmaMaker 2023-07-23 12:36:28 +0200
  • 32b9c3e8ca [MERGE_UNSURE] use bytes for vertex info vram-reduce EmaMaker 2023-07-19 14:41:40 +0200
  • 8313ee97bc Merge pull request 'Use Geometry Shader to generate the Mesh' (#5) from vram-reduce into main EmaMaker 2023-07-19 13:19:18 +0200
  • 4fa89fd2f5 gamma correction EmaMaker 2023-07-19 13:06:01 +0200
  • 950c43b163 refactor chunk meshing routine EmaMaker 2023-07-19 12:56:55 +0200
  • 54c7fa172f generate mesh from points using geometry shader EmaMaker 2023-07-19 12:42:45 +0200
  • e7fc35ec47 create chunk mesh as cloud of points EmaMaker 2023-07-19 12:42:23 +0200
  • ea036f403c shader.hpp: add geometry shader support EmaMaker 2023-07-19 12:41:44 +0200
  • bff9e6ad4f move normal data to own array EmaMaker 2023-07-18 21:18:12 +0200
  • a7b4671517 toggle wireframe with F EmaMaker 2023-07-18 20:03:59 +0200
  • 4ada24e0d5 chunkmesher: check for NULLBLK to avoid holes at chunkborders EmaMaker 2023-06-15 10:10:49 +0200
  • 73f38e5d2f Merge pull request 'Seamless chunk borders' (#4) from chunkborders into main EmaMaker 2023-06-01 21:37:17 +0200
  • 393e5ca9b2 chunkmesher: seamless chunkborders by checking neighbouring chunks EmaMaker 2023-06-01 21:23:57 +0200
  • f798575cac chunkmanager: add function getBlockAtPos, returns block at world pos EmaMaker 2023-06-01 21:22:52 +0200
  • 0ebbb897dc chunk: handle special cases for getBlocks EmaMaker 2023-06-01 21:20:19 +0200
  • 32d0475dbf Merge pull request 'multithread blockpicking' (#2) from multithread into main EmaMaker 2023-06-01 17:47:48 +0200
  • 095ebfa70d Merge branch 'main' into multithread EmaMaker 2023-06-01 17:47:38 +0200
  • 105fff0029 write number of triangles to Chunk only when sending to GPU EmaMaker 2023-05-26 23:05:29 +0200
  • 6113886117 multithreaded blockpicking EmaMaker 2023-05-26 22:41:18 +0200
  • 802257abe3 Merge pull request 'multithread' (#1) from multithread into main EmaMaker 2023-05-20 22:33:56 +0200