James Seibel
ce1bfde49e
Improve rendering of empty or thin LODs
2021-02-13 10:05:05 -06:00
James Seibel
ffae35eba0
Add rudamentary lighting, and have the LODs stay put relative to the camera
2021-02-12 15:42:23 -06:00
James Seibel
4b33dd6a1a
Improve performance
...
The LODs are only regenerated when the player moves.
The number of threads building the LOD buffers were reduced to 1, since any more than 1 hurt performance.
2021-02-12 15:41:19 -06:00
James Seibel
5ed8127f0e
Make sure enough LOD regions are stored to cover the whole area
2021-02-11 23:04:08 -06:00
James Seibel
562b7f2b65
Add true multithreading to the buffer building
2021-02-10 22:16:44 -06:00
James Seibel
df7695819b
Fix a bug where resizing the view distance would break the LOD buffers
...
Some would keep their old data and render things that shouldn't exist.
2021-02-10 16:37:39 -06:00
James Seibel
23e5100b74
Give the BuildBufferThread its own class
2021-02-10 16:03:58 -06:00
James Seibel
81b1980670
Add the first attempt at multithreading the buffer building
2021-02-10 15:29:58 -06:00
James Seibel
fdfc55f200
Add lodCore so gradle can build the project
2021-02-10 15:24:35 -06:00
James Seibel
d5b6d21a53
Clean up a bunch of small things
2021-02-08 22:18:08 -06:00
James Seibel
35b3d77ae7
Rename OfConfig to ReflectionHandler
2021-02-08 14:44:17 -06:00
James Seibel
741aa435b5
Fix rendering the wrong LOD dimension when changing dimension
2021-02-08 14:43:02 -06:00
James Seibel
ddf66b4111
Remove OfConfigReflector, since everything was commented out anyways
2021-02-08 14:29:55 -06:00
James Seibel
79caa72ea9
Add a TODO
2021-02-08 10:58:37 -06:00
James Seibel
a02e5ba275
Have the LODs change brightness based on the time of day
2021-02-08 10:49:04 -06:00
James Seibel
d3107303dd
Revert the perspective matrix after drawing is completed.
2021-02-08 10:11:02 -06:00
James Seibel
9cb9a6082c
Add method comments
2021-02-08 10:08:01 -06:00
James Seibel
2273bf9058
Improve the internal mod name and update the desc.
2021-02-08 10:03:27 -06:00
James Seibel
0afb1fcfe5
Remove unneeded code
...
This was used for debugging a while ago, but isn't needed anymore
2021-02-08 10:01:02 -06:00
James Seibel
dbd5cc50e5
Change the package backsun.lod... to com.backsun.lod...
2021-02-08 09:59:46 -06:00
James Seibel
88f4883639
Remove unneeded code and add a endStencilDraw call
2021-02-08 09:49:08 -06:00
James Seibel
129faca20f
Update TODOs
2021-02-08 09:48:44 -06:00
James Seibel
4dfa7c31ad
Remove unneeded comments
2021-02-08 09:48:28 -06:00
James Seibel
c84bb4411d
Remove old coreMod code
2021-02-08 09:48:01 -06:00
James Seibel
6b6ef84909
Add a version number for the lodcore dependency
2021-02-08 08:35:06 -06:00
James Seibel
fe86e1f353
Separate the core mod from the main project.
...
It should be imported in the referenced libraries.
2021-02-07 23:03:51 -06:00
James Seibel
b22d6345d2
Initial Commit
2021-02-07 21:32:26 -06:00
James Seibel
a08e36f127
Add the location of the srg file to the readme
2021-02-06 12:35:12 -06:00
James Seibel
8c1c13a523
Prepare for using a Mixin
2021-02-04 08:04:04 -06:00
James Seibel
3da5ad145c
First try at using the stencil buffer to render behind the world
...
This attempt will partially render LODs on top of close up mountains and
other tall objects.
2021-02-03 09:58:34 -06:00
James Seibel
878015bb7c
Misc code fixes and cleaning
2021-02-03 09:57:13 -06:00
James Seibel
ff65ea1f01
Revert a few of the EntityRender perspective far clip planes
2021-02-03 09:53:15 -06:00
James Seibel
58a37aa08b
prevent fileSaving errors when given a null region
2021-02-03 09:51:32 -06:00
James Seibel
9d635f4fea
Enable the StencilBuffer
2021-02-03 09:51:10 -06:00
James Seibel
4b1b762087
Revert to RenderWorldLastEvent since the previous change didn't work
2021-02-01 09:31:58 -06:00
James Seibel
f496d09490
Uncomment code needed for resizing regions
2021-02-01 08:39:17 -06:00
James Seibel
b2417957d6
Have the stored regions size change based on view distance
...
also fix/improve the profiler
2021-02-01 08:38:30 -06:00
James Seibel
d9ce8e24ea
Remove completed TODOs
2021-01-31 17:45:49 -06:00
James Seibel
ff215c19a4
Fix LODs rendering over loaded chunks
2021-01-31 16:33:47 -06:00
James Seibel
b8c3df45ff
Revert a value in the EntityRender to its default value
2021-01-31 16:23:05 -06:00
James Seibel
508fa92e04
Add several notes
...
These are files related to figuring out how to store regions
2021-01-30 22:31:45 -06:00
James Seibel
1351acb359
Add a few TODOs
2021-01-30 22:27:45 -06:00
James Seibel
f6622dfd68
Add a TODO and slight improvement to the view frustum
2021-01-30 20:41:18 -06:00
James Seibel
89a5fabbf0
Fix a bug causing out of bounds errors
2021-01-30 20:40:47 -06:00
James Seibel
e9c927d1fb
Prevent building LODs if we can't draw them
2021-01-30 19:22:41 -06:00
James Seibel
9d9f364ca0
Complete the FileHandler and allow switching between worlds
2021-01-30 19:16:24 -06:00
James Seibel
bc0d9f0a67
Fix a null pointer where the player could be null
2021-01-30 16:12:49 -06:00
James Seibel
e05ffb47e9
Normalize LOD object naming convention
2021-01-30 15:59:27 -06:00
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