Commit Graph

1264 Commits

Author SHA1 Message Date
James Seibel 90295b7dcf Fix QuadNode.getDirectChildNodeIterator() 2023-04-02 21:31:17 -05:00
James Seibel d2a0057919 Replace consumer based QuadTree iteration with Iterators
This drastically improves debugging, because lambda consumers cause the stack trace to become messy very quickly.
2023-04-02 19:39:47 -05:00
James Seibel 45b410806b refactor worldGenQueue removeOutOfRangeTasks 2023-03-30 19:28:24 -05:00
James Seibel afc045dd4c Fix holes when moving around the world 2023-03-30 07:26:25 -05:00
James Seibel 8856843830 minor refactoring 2023-03-29 07:09:41 -05:00
James Seibel afd18ef56c add a TODO for areChildRenderSectionsLoaded 2023-03-27 21:20:21 -05:00
James Seibel 4f496958fb add TODO comments 2023-03-27 21:12:25 -05:00
James Seibel 82fe7c099d refactoring quadTree/Node, RenderSection, and ColRenderSource 2023-03-27 21:11:09 -05:00
James Seibel 779d93700f temporary fix for missing LOD corners 2023-03-27 20:11:15 -05:00
coolGi 7d060d8b85 Fixed up some things to do with the Java screen 2023-03-26 17:31:53 +10:30
coolGi f4c1c9ebbf Moved OS getting utils to its own Platform enum. 2023-03-26 16:03:02 +10:30
coolGi cb88a48d78 Changed default config values and fixed up lang for Lod bias. 2023-03-26 12:53:11 +10:30
James Seibel 3ffd4e9ff6 rename QuadNode .forEachDirectChildNode() 2023-03-25 18:44:09 -05:00
James Seibel ba64241774 Fix render sections incorrectly disabling/enabling when moving 2023-03-25 18:43:49 -05:00
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