Commit Graph

136 Commits

Author SHA1 Message Date
James Seibel bdab5bad00 Add a LodStorage object for all LOD objects 2021-01-30 15:46:08 -06:00
James Seibel c22efa762c Set up per world LOD file reading and writing
Note: this doesn't change the LoadedRegions upon world change.
2021-01-30 14:50:41 -06:00
James Seibel ca6e165bbb Add a TODO to the renderer 2021-01-30 14:43:47 -06:00
James Seibel 4d273c7b8a Implement LOD file reading 2021-01-28 21:42:19 -06:00
James Seibel 34e00c0355 Fix chunk not using toData and minor spacing changes 2021-01-28 14:54:23 -06:00
James Seibel 6137a0b5a6 Rename index to value in the enums 2021-01-28 14:42:38 -06:00
James Seibel c757e49473 Add LodRegion toString 2021-01-28 14:39:36 -06:00
James Seibel 4be13923f1 Simplify the toString 2021-01-28 14:38:09 -06:00
James Seibel 0c129f1157 Set up partially functional LOD file writing 2021-01-28 14:28:09 -06:00
James Seibel d10dd07a68 Add the ability to get all LOD chunks 2021-01-28 14:25:16 -06:00
James Seibel 75e272814d Update the file handler 2021-01-28 14:24:33 -06:00
James Seibel 983c00df4b Move where the fog setup happens 2021-01-28 14:18:55 -06:00
James Seibel 4c19e0dc52 Rename FogType and FogMode
FogType -> FogQuality
FogMode -> FogDistanceMode
2021-01-27 13:23:10 -06:00
James Seibel 50c7b577dd Remove completed TODOs 2021-01-27 11:27:03 -06:00
James Seibel ed852a34ad Remove completed TODO 2021-01-27 11:22:00 -06:00
James Seibel 78e3ef07af Add surface culling to LOD rendering 2021-01-26 16:30:12 -06:00
James Seibel 9354218853 Remove unneeded and debug code 2021-01-26 13:28:36 -06:00
James Seibel 789af563c3 Fixed a bug where looking south tanked fps
This was somehow related to sending lod objects to the gpu when the
chunk at the given coordinates was null.
2021-01-26 13:18:50 -06:00
James Seibel 8ce53d649f Make Lod generation asynchronous
using a thread pool
2021-01-26 13:12:58 -06:00
James Seibel 9da15baf69 Add an enum for render modes
Batch or individual
2021-01-25 18:16:40 -06:00
James Seibel 594700eebd Improved variable names 2021-01-25 16:41:46 -06:00
James Seibel 95e0f333f5 Fix a few potential null pointers 2021-01-23 16:38:13 -06:00
James Seibel 632665785f Add a TODO note 2021-01-22 08:47:29 -06:00
James Seibel b044ebc520 Fix some inconsistencies between getting and setting LOD chunks
also improve variable naming in a few places
2021-01-22 08:47:09 -06:00
James Seibel 8e0700bbf9 Improve debug rendering so the checkerboard patern doesn't move 2021-01-20 20:03:00 -06:00
James Seibel 79e997de94 Partially implement the new region methods. 2021-01-20 15:52:32 -06:00
James Seibel ed7ca54e41 Implement LOD generation, temporary storage, and rendering 2021-01-20 15:52:13 -06:00
James Seibel d1eabb4821 Added comments and changed index to value 2021-01-20 15:48:59 -06:00
James Seibel ea71da67fe Add null protection to LodRenderer 2020-10-25 21:06:51 -05:00
James Seibel 7d67724089 Use the LoadedRegions getChunk method 2020-10-25 20:50:46 -05:00
James Seibel fc48e2fbb5 Improve getChunk method 2020-10-25 20:38:44 -05:00
James Seibel dc52b86fcd Remove completed TODOs 2020-10-25 20:28:40 -05:00
James Seibel 84be9ec684 Add the LoadedRegions object 2020-10-25 20:13:30 -05:00
James Seibel bfa4062928 Use the refactored variable names 2020-10-25 20:03:23 -05:00
James Seibel 3bc0c3368c Improve variable names 2020-10-25 19:57:45 -05:00
James Seibel a1abccadd9 Refactor several variables into constants 2020-10-22 12:06:22 -05:00
James Seibel e38b1788a0 Send a single region from the clientProxy to the LodRenderer 2020-10-22 11:53:47 -05:00
James Seibel 9b454748aa Remove unneeded code and improve a few TODOs 2020-10-22 11:27:30 -05:00
James Seibel 5766ca5a9f Improve formating for LodChunk, rename ColorPosition to ColorDirection, and LodPosition to LodLocation 2020-10-17 18:22:30 -05:00
James Seibel 005535fef1 Improve comments 2020-10-17 18:08:39 -05:00
James Seibel f06620b986 Finish generateLodColorSection 2020-10-17 18:06:36 -05:00
James Seibel 48730f9306 Improve comments and update version number 2020-10-17 18:06:04 -05:00
James Seibel 4071862bae Add generateLodChunk to onChunkPopulate 2020-10-17 18:01:12 -05:00
James Seibel c3c2b3233f Improve comments 2020-10-15 11:42:02 -05:00
James Seibel bcf6a9cb7b Finish generateLodColorVertical 2020-10-10 20:34:14 -05:00
James Seibel 1e28b7d544 Merge branch 'master' of gitlab.com:jeseibel/minecraft-lod-mod into master 2020-10-06 13:49:26 -05:00
James Seibel 60cef16a61 improve comment 2020-10-06 13:49:23 -05:00
James Seibel 13e0be73e5 Add generateLodColorVertical (only top works) and testing code 2020-10-06 13:20:16 -05:00
James Seibel 553abf1c75 Improve formating and extract a constant 2020-10-06 11:02:31 -05:00
James Seibel 66febf3e61 Finish the generatreLodColorTop method 2020-10-06 10:52:13 -05:00