Commit Graph

313 Commits

Author SHA1 Message Date
James Seibel 811e24ee5e Improve and simplify LodChunk 2021-05-29 13:00:43 -05:00
James Seibel 5002db15d6 Remove LodLocation since LodCorner exists 2021-05-29 12:45:46 -05:00
James Seibel a3357c1193 Replace LodGeometryQuality with LodDetail 2021-05-29 12:45:19 -05:00
James Seibel af36224a57 Remove unneeded object creation 2021-05-29 12:42:39 -05:00
James Seibel 630ff361d3 in ColorDirection replace N,S,E,W with NORTH, SOUTH, EAST, WEST 2021-05-19 12:51:23 -05:00
James Seibel 34c6f29a18 Add file versioning to the file handler 2021-05-19 12:34:02 -05:00
James Seibel 909718e491 Remove the readyToReadAndWrite method 2021-05-19 12:10:36 -05:00
James Seibel 8a3d199247 Implement Single and Quad geometry qualities for CubicLod Rendering 2021-05-19 08:47:22 -05:00
James Seibel fa13c981b7 Add a missing empty line in the config file 2021-05-18 21:56:33 -05:00
James Seibel 815b00c3ca Add multiple color modes and set up for geometry quality 2021-05-08 16:41:55 -05:00
James Seibel ae9144a6c4 Add the basis for different LOD drawing modes (aka templates) 2021-05-08 14:58:41 -05:00
James Seibel 359fde3b6b Remove an unneeded line 2021-05-08 14:37:05 -05:00
James Seibel 92fa904cc6 Setup the config and enum for multiple LOD drawing modes 2021-05-05 16:55:01 -05:00
James Seibel 2583ae34d4 Remove DrawMode since it wasn't supported anyway 2021-05-05 16:53:39 -05:00
James Seibel e36b3394f4 Remove an unneeded comment 2021-05-05 16:35:23 -05:00
James Seibel 7af38df92c Remove some outdated TODOs 2021-04-18 21:23:30 -05:00
James Seibel 51add24110 Merge branch '1.16.4' of gitlab.com:jeseibel/minecraft-lod-mod into 1.16.4 2021-04-03 12:11:32 -05:00
James Seibel 9e5aac3bf7 Close #18 (allow client use on servers) 2021-04-03 12:11:20 -05:00
James Seibel 5738a5b7cd Close #8 (allow client use on servers) 2021-04-03 12:05:16 -05:00
James Seibel e1216966a3 Add error checking 2021-04-02 22:56:13 -05:00
James Seibel 222c0de7f1 Only try generating chunks on a local server 2021-04-02 22:50:33 -05:00
James Seibel b4f1fb6d28 Improve a TODO
related to issue #13
2021-04-01 21:05:45 -05:00
James Seibel a32082ad20 Remove the need for a World object in LodBuilder
The world hasn't been needed for a while, I just never got around to removing it.
2021-04-01 13:57:47 -05:00
James Seibel eeb5fb6c3c Improve the generateLodChunkAsync method 2021-04-01 13:56:52 -05:00
James Seibel cb50f24c86 Improve how a unloaded LodWorld is handled 2021-04-01 13:13:14 -05:00
James Seibel 5ca5764c0e Improve how LodWorld, LodBuilder, and LodRenderer objects are handled to prevent multiple references
There was a problem where upon changing worlds the LodWorld wouldn't reflect the commit along with 6c515350 and fccd1db0 should fix that problem.
2021-03-31 14:22:35 -05:00
James Seibel fccd1db045 Add the ability to select and deselect worlds 2021-03-31 14:18:11 -05:00
James Seibel 6c515350bc Clean up references to LodDimension objects 2021-03-31 14:15:49 -05:00
James Seibel 50aee9dfb2 Move getCurrentWorldID into the LodUtils class 2021-03-31 10:56:50 -05:00
James Seibel 0649504770 Fix #16 (stop placeholder chunks from being saved to disk) 2021-03-30 14:55:12 -05:00
James Seibel 29068f9550 Fix the projection matrix not being reset after rendering LODs
Regressive fix for 18c08ccd.
2021-03-30 08:07:15 -05:00
James Seibel 18c08ccd88 Fix #8 and #9 (inaccurate lighting and rendering behind transparent objects)
Instead of using a stencil and rendering in the forgelastdraw event, we now you a mixin to render right before the sold block layer.

The main purpose of this was to allow for LODs to be drawn behind transparent objects; however as a happy accident it seems to have also improved the lighting, I'm not sure if it is perfect, but it is much better.
2021-03-28 22:39:58 -05:00
James Seibel b71d6a5e3f Closes issue #10 (Regen LODs on block change) 2021-03-27 21:49:23 -05:00
James Seibel 8f619f3fa1 Closes issue #12 (improve world change detection) 2021-03-27 21:28:03 -05:00
James Seibel eab16ff20a Move all buffer building into the LodBufferBuilder and improve chunk generation logic
Chunks generation requests should no longer stack exponentially (before whenever one chunk was generated the LODs would be regenerated, causing more chunks to generate so if more than one chunk was ever generated at a time they would stack).
2021-03-25 23:04:48 -05:00
James Seibel d913ed9621 Fix issue #11 (generate chunks closer to the player first) 2021-03-25 16:31:11 -05:00
James Seibel a649cf179f comment out a debug statement 2021-03-25 16:04:02 -05:00
James Seibel cf5de39250 Rename SingleLodChunkGenWorker to LodChunkGenWorker 2021-03-25 16:03:44 -05:00
James Seibel bab3cd9656 Move SingleLodChunkGenWorker into the builders package 2021-03-24 21:59:32 -05:00
James Seibel cafd4f0c47 Move all LodChunk generation code to the LodBuilder object 2021-03-24 21:59:06 -05:00
James Seibel e20833225f Slightly improve LOD generation speed and add code related to heightmap
The slight speed increase is done by only generating the chunk to the "FEATURES" status instead of "FULL".

The code related to the heightmap is currently unused, since the LOD color generation requires blocks. Although it may have some use in the future so I will keep it in, albeit commented out.
2021-03-24 19:09:30 -05:00
James Seibel 14a06c220b Move the enums into their own package 2021-03-24 17:50:17 -05:00
James Seibel e5a5ba327e Add a TODO 2021-03-19 20:36:11 -05:00
James Seibel fedc8f7b66 Add LODs generating outside the player's view distance
It isn't fast enough to keep up with flying creating or spectator players; but it does function without causing heavy server or client lag.
LODs are generated in lines starting far away from the player and moving towards them, in the future they should be generated close to the player first.

Also add a RegionPos object and a way to convert from ChunkPos objects in LodUtils
2021-03-19 20:25:23 -05:00
James Seibel 7a3497d44c Update and improve Access Transformer
Remove old unneeded transformations and add useful comments.
1.16.4-a1.1
2021-03-04 21:55:26 -06:00
James Seibel 873034f7e4 Merge branch '1.16.4' of gitlab.com:jeseibel/minecraft-lod-mod into 1.16.4 2021-03-04 21:30:33 -06:00
James Seibel a151054b48 Fix issue #7 (screen space distortions not be applied) 2021-03-04 21:30:19 -06:00
James Seibel 14c69971f6 Fix a bug with holding grass blocks
For some reason hold grass blocks (and presumably other biome colored blocks)  would look gray if GL_COLOR_MATERIAL is disabled
2021-03-04 21:16:41 -06:00
James Seibel edc3858699 Add the youtube demo video 2021-03-03 16:16:47 +00:00
James Seibel bdaf33b80b Add a simplified description to the readme 2021-03-03 03:48:13 +00:00