James Seibel
2b0ee29a8c
refactor and rename
2023-07-04 10:29:32 -05:00
Cailin Smith
55f39996cb
Rename class
2023-07-02 22:34:47 +02:00
Cailin Smith
44a66a3d93
Add ability for servers to communicate with the client to set the world.
...
This prevents the client from accidentally selected the wrong world
folder to load LODs from, since levels of the same dimension can't
naturally be distinguished from each other. With level similarity
detection, this can sometimes work, but in general is not reliable. This
mechanism instead allows servers to send a packet to the client on load,
enabling the override system, and then a second packet on world change,
which specifically sets the world key, based on knowledge that only the
server has, leading to a reliable way of detecting the correct world.
2023-07-02 21:44:54 +02:00
Cailin Smith
649cd5bbe8
Add ability for servers to communicate with the client to set the world.
...
This prevents the client from accidentally selected the wrong world
folder to load LODs from, since levels of the same dimension can't
naturally be distinguished from each other. With level similarity
detection, this can sometimes work, but in general is not reliable. This
mechanism instead allows servers to send a packet to the client on load,
enabling the override system, and then a second packet on world change,
which specifically sets the world key, based on knowledge that only the
server has, leading to a reliable way of detecting the correct world.
2023-07-02 21:41:14 +02:00
Cailin Smith
368541b09c
Fix small bugs + make level map concurrent to prevent exceptions
2023-06-25 22:22:23 +02:00
coolGi
d04b4c0d55
Moved SSAO to the new AbstractShader thing
2023-06-24 23:17:58 +09:30
James Seibel
1dad6fd83f
Overhaul Dh API event definition system
...
Whether an event is a one time event or a cancelable event is now defined via their interface.
Also replace DhApiLevelSaveEvent with DhApiChunkModifiedEvent
2023-06-23 23:07:41 -05:00
TomTheFurry
be38d82b26
Greatly improve Gen queue stability & improve loading times and performance
2023-06-24 00:24:11 +08:00
James Seibel
b0f9122599
DhApiTerrainDataRepo reformat
2023-06-22 19:49:43 -05:00
James Seibel
feb03efafa
Add AbstractDhApiChunkWorldGenerator
2023-06-22 07:56:43 -05:00
James Seibel
6066b98a9b
Remove micro vertical vertex offset
...
remove to attempt fixing a SSAO bug where some blocks have black borders.
Also the vertical offset shouldn't be necessary since all vertical LODs should be the same size.
2023-06-21 07:30:31 -05:00
James Seibel
cf60322be6
Add a comment from leetom explaining granularity
2023-06-21 07:14:36 -05:00
James Seibel
5dcb73b30a
Merge branch 'main' of https://gitlab.com/jeseibel/distant-horizons-core
2023-06-21 07:03:41 -05:00
James Seibel
a3c991d769
Remove unimplemented IDhApiWorldGen.getThreadingMode()
2023-06-21 07:03:28 -05:00
coolGi
31a563ee90
Copied noise to its own shader, and maybe fixed fog fragment
2023-06-21 19:40:24 +09:30
coolGi
5bc9ce7c8a
Moved SSAORenderer to shaders folder
2023-06-21 19:27:06 +09:30
James Seibel
56e4454e41
Fix Api runtime error and add comments on how to fix in future
2023-06-20 20:55:06 -05:00
TomTheFurry
d5c1b7669d
Fixed up last of the bugs
2023-06-20 19:04:23 +08:00
TomTheFurry
2f249c39d4
fixed and optimize a lot of stuff.
2023-06-20 15:47:52 +08:00
James Seibel
173e216fa3
Add (untested) DhApiTerrainDataRepo.overwriteChunkDataAsync()
2023-06-19 22:04:10 -05:00
James Seibel
e760c6a4e3
Add an API event for modified render and full data files
2023-06-19 21:41:42 -05:00
James Seibel
419323bedb
Fix config default thread counts being 0
2023-06-19 20:40:54 -05:00
coolGi
71f8bccb7d
Forgot to turn down default noise intensity
2023-06-20 00:03:53 +09:30
coolGi
40225cb13f
Started work on putting fog in its own shader
2023-06-20 00:01:54 +09:30
coolGi
1568f73c40
Edited some stuff so noise is less on transparent, bright, or dark objects
2023-06-20 00:01:37 +09:30
TomTheFurry
6127ca192d
Fix the issues. (Tho now render buffer would need constant refresh. Todo: Add buffer dirty flag.)
2023-06-19 14:39:37 +08:00
TomTheFurry
64b7e2ef33
Continue on impl the gen queue re-queueing. (Might have broke buffer updates tho...)
2023-06-19 14:25:38 +08:00
James Seibel
808380b461
improve FileHandler directory creation logic
2023-06-18 08:51:12 -05:00
James Seibel
773cd3aaef
Allow API override for configs by default
2023-06-17 21:53:05 -05:00
James Seibel
55019c51ed
Fix Config setApi not firing listeners
2023-06-17 21:52:52 -05:00
James Seibel
f5784c07b1
Fix some config setup not running if the UI isn't opened
2023-06-17 21:52:38 -05:00
James Seibel
ac73b52b23
remove fixme in DhApiTerrainRepo
2023-06-17 21:01:14 -05:00
James Seibel
122e24ad6d
Add validation to FullDataArray and SingleColumnData
2023-06-17 21:00:35 -05:00
James Seibel
b7ca6dbd87
Fix DhLodPos.getDhSectionRelativePositionForDetailLevel()
...
It had an off by 1 error
2023-06-17 20:57:41 -05:00
James Seibel
594f42a889
rename namespace lod -> distanthorizons
2023-06-17 17:45:21 -05:00
James Seibel
5c2f89a0a5
uncomment debug code in DhApiTerrainDataRepo
...
Might as well keep the debug code up to date in case it is needed
2023-06-17 16:51:42 -05:00
James Seibel
a5db19cfc9
Add a logger and fixme note to DhApiTerrainDataRepo
2023-06-17 16:44:51 -05:00
James Seibel
fa8a62b8a9
rename IDhApiUnsafeWrapper method
2023-06-17 16:36:01 -05:00
James Seibel
d0819fb6c1
rename DhApiMain -> DhApi
...
I missed a file
2023-06-17 16:12:06 -05:00
James Seibel
d335e10057
rename DhApiMain -> DhApi
2023-06-17 12:01:37 -05:00
James Seibel
f5a0789321
Fix DhApiWorldProxy.getSinglePlayerLevel()
2023-06-17 12:01:23 -05:00
TomTheFurry
fb77c766a6
Refactor the DhLevel class structure.
...
Note: Known issue where sections need reload before gen is queued up. Will fix next
2023-06-18 00:23:51 +08:00
TomTheFurry
1c65d030b1
First baby step towards a pre-lod-loader.
2023-06-17 01:00:34 +08:00
TomTheFurry
f98ab8a56b
Merge remote-tracking branch 'origin/main'
2023-06-15 21:55:26 +08:00
TomTheFurry
175581ca76
Refactor and cleanup render buffer management
2023-06-15 21:55:18 +08:00
James Seibel
ed61354ec0
Fix lines on screen from SSAO (thanks notalpha)
2023-06-15 07:42:29 -05:00
TomTheFurry
0631f7adf7
Ops.
2023-06-15 16:46:23 +08:00
TomTheFurry
9f81194d21
Merge remote-tracking branch 'origin/main'
...
# Conflicts:
# core/src/main/java/com/seibel/lod/core/render/glObject/GLProxy.java
2023-06-15 16:41:57 +08:00
TomTheFurry
419af81523
Fix lighting issues in both client-only and single player world
2023-06-15 16:41:17 +08:00
James Seibel
6832d21a3b
config renaming and add new configs to DhApi
2023-06-14 21:32:10 -05:00