Commit Graph

1250 Commits

Author SHA1 Message Date
James Seibel 1b682580fd Merge the data structure in LodQuadTree and RenderBufferHandler
This prevents needing to sync both data structures, reducing the chance for things to go wrong
2023-03-25 16:18:22 -05:00
James Seibel 7b795af7b3 update the quadTree tests to support the dynamical detail tree 2023-03-25 11:45:04 -05:00
James Seibel eec8db6223 make the quad tree max detail level dynamic 2023-03-25 11:44:47 -05:00
James Seibel a465a8da9d Replace WorldGen and LodQuadTree with the new QuadTree<T>
There are some issues for the render tree, but the world gen tree appears to be working correctly
2023-03-25 09:25:13 -05:00
James Seibel 0b05ced5b9 Add QuadTree toString() and getChildCountAtPos() 2023-03-25 09:23:24 -05:00
James Seibel a985e1c542 Fix quadNode getChildByIndex inconsistent with DhSectionPos 2023-03-25 07:43:55 -05:00
James Seibel 8a32d7f84a Add the ability to limit how deep a quad tree can go 2023-03-23 21:04:27 -05:00
James Seibel d4b6ec74a8 Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core 2023-03-23 07:24:53 -05:00
James Seibel cda265b07f Add SquareIntersectTest 2023-03-23 07:24:49 -05:00
James Seibel 57fec0f805 Fix QuadTree adjacent position issues 2023-03-23 07:13:09 -05:00
coolGi 04b12a2715 New ui frame now shows 2023-03-23 19:25:19 +10:30
coolGi 63950edc96 Sava commit for the new Config UI 2023-03-23 18:08:36 +10:30
James Seibel 515ebb8c99 Fix QuadTree boundary issues and add tests 2023-03-20 20:12:27 -05:00
James Seibel 03acb159e0 separate a quadTree test 2023-03-20 19:55:12 -05:00
James Seibel 837f7d6b5f QuadTree refactoring and fixes 2023-03-20 19:52:13 -05:00
James Seibel ea8076db97 remove unused QuadTree code 2023-03-20 19:52:00 -05:00
James Seibel 38ff3b6942 QuadTree test refactoring 2023-03-20 19:50:45 -05:00
James Seibel 29b5cd9a50 Move SectionPos tests into their own file 2023-03-20 19:50:18 -05:00
James Seibel 4e0254154f Overhaul the QuadTree object
Previously the quad tree was closer to a 3D array than a traditional quadTree. This change brings it closer to a traditional quad tree.
2023-03-20 07:16:35 -05:00
James Seibel adf5d3eb14 fix LodQuadTree compiling and in-mobile functionality 2023-03-18 21:57:54 -05:00
James Seibel 3c4faf1cd0 incomplete LodQuadTree tick modification 2023-03-18 18:14:48 -05:00
James Seibel bf2ae21c21 Improve LodQuadTree assert messages 2023-03-18 09:53:45 -05:00
James Seibel 32e11062df Add a rough diagram to LodQuadTree 2023-03-18 09:50:59 -05:00
coolGi 7d2ab7f589 Updated logo svg so they can be defined in variables 2023-03-18 12:30:33 +10:30
coolGi aac99f1682 Fixed up more things to do with JavaFX, and added some extra stuff for the MinecraftScreen 2023-03-17 22:29:28 +10:30
coolGi 64bed83ddb Removed FlatLaf (which was used for theming) and replaced it with JavaFX 2023-03-17 19:45:18 +10:30
James Seibel 333dc4d0e0 add a message to a LodQuadTree assert 2023-03-16 07:55:30 -05:00
James Seibel d7338a7bb7 update world gen queue comments 2023-03-16 07:26:08 -05:00
James Seibel 0ddd68b6e6 Refactor worldGeneratorQueue thread and comments 2023-03-15 22:25:34 -05:00
James Seibel a9583a6227 Make world gen task queuing async 2023-03-14 22:12:06 -05:00
James Seibel 2020cae17a fix halfSize being the same for every detail level
This may not set the halfSize to the right value, but it is better than having a value of "10" for everything like before
2023-03-14 22:03:30 -05:00
James Seibel af3916b089 refactoring 2023-03-14 21:43:31 -05:00
James Seibel df0a5f5bd0 finish the world generatior 2023-03-14 07:30:42 -05:00
James Seibel 44e280e8b7 fix a class missing exception 2023-03-14 07:24:07 -05:00
James Seibel b6ef754d61 rename DhLodPos overlaps() -> overlapsExactly() 2023-03-12 18:50:58 -05:00
James Seibel 579302f643 start replacing WorldGenQueue's backend with a QuadTree
previously it was a list that grew too quickly for large distances
2023-03-12 18:45:51 -05:00
James Seibel cb23fddd53 add try catch to ServerApi 2023-03-12 17:53:07 -05:00
James Seibel 2f99de7900 remove unused imports 2023-03-12 17:51:46 -05:00
James Seibel 6056d7f7d1 refactoring 2023-03-11 21:10:42 -06:00
James Seibel 586c550c80 fix potential ColumnBox empty data point error 2023-03-11 21:10:09 -06:00
James Seibel 4b5bfe6799 Fix the QuadTree not updating when new LODs are generated 2023-03-11 12:02:22 -06:00
James Seibel 45cc0f38be fix incorrect commit for DhClientServerWorld 2023-03-11 12:01:54 -06:00
James Seibel 3c72765c9a refactoring 2023-03-11 12:00:08 -06:00
James Seibel ded7dde42a Fix generated data not saving 2023-03-11 11:00:37 -06:00
James Seibel 3510facd1e refactor fullDataMetaFile 2023-03-11 11:00:14 -06:00
James Seibel c5c298708f refactoring 2023-03-11 10:37:02 -06:00
James Seibel d687ec892a refactoring/renaming 2023-03-11 09:50:33 -06:00
James Seibel dbfde9f637 Fix files not saving 2023-03-10 22:49:11 -06:00
James Seibel f2be1bd034 rename Steps -> EGenerationStep 2023-03-10 22:00:26 -06:00
James Seibel dd8ee36487 replace OutputStream's with BufferedOutputStream for performance 2023-03-09 21:43:54 -06:00