Commit Graph

16 Commits

Author SHA1 Message Date
evrooije 39bccf6bef Added pure Lua lighting code, first cut (with lots of issues) 2018-07-22 03:33:51 +02:00
evrooije e26e2a3994 Fixed the relative/ offset y calculation. Copied engine's lighting
calculation in a block comment and started translating the code to
Lua
2018-07-21 12:20:46 +02:00
evrooije 33b611feec License fixes 2018-07-19 12:01:13 +02:00
evrooije 1be55e012a Moved licensing around a bit. Committing levels code. 2018-07-19 11:48:34 +02:00
evrooije 9303f35d5e Fixed license, attributed paramat and included paramat's copyright
notice and MIT license
2018-07-19 03:15:37 +02:00
evrooije 2c2cba19ee Introduced the ability to register a fallback or layer generator with
arguments, updated simple generator to allow switching between different
content ids for the terrain generation, i.e. it can now switch between
stone and sandstone (the one registered is sandstone, the fallback does
not specify arguments during registration so it uses a default, stone).
2018-07-19 00:11:59 +02:00
evrooije 35d768d79f Created framework for supporting multiple map generators per layer, with
a fallback (or default if need be) generator in case no layer specified
generator is found. Added sample/ basis mod to demonstrate registration
of map generators. Rewrote Proxima Testauri map generator to conform to
multi_map, simple map generator is fallback in demo. Testauri now uses
a single noise which increases generation time but reduces memory usage.
To try and reduce generation time, it keeps track of the last layer used
and based on that will not reinitialize unless the layer changes.
2018-07-18 23:22:18 +02:00
evrooije d6d827849d Fixed issue in simple mapgen depends.txt 2018-07-17 23:35:05 +02:00
evrooije 18f6b8f3cc Lighting seems to work properly, alignment is proper. Separated the simple
mapgen code into multi_mapgen_simple mod and registered with multi_map_core
which now properly calls the registered mapgen
2018-07-17 22:59:58 +02:00
evrooije d5d4520b2e Turned into a modpack, supplying simple mapgen. Changed to work on chunk
boundaries. Current version does not call the registered mapgen yet, and
simple mapgen is part of core (to be moved)
2018-07-17 21:16:37 +02:00
evrooije f643ce0700 Further tweaking of the skyrock and bedrock layers, fixes in lighting
and another refactoring with a first cut of a multi_map class and API
2018-07-15 23:42:46 +02:00
evrooije a626ec05a1 Made proper mod as the mapgen.lua was a file in default. So separated into
correct mod named folder with init.lua, renamed bedrock and skyrock nodes
to the correct namespace. Added textures folder.
2018-07-14 12:38:27 +02:00
Emiel van Rooijen 8e6629cf67
Fixed some bugs
Fixed typo for the mountain peak seed (said map instead of peak) and the fact the random numbers were generated in the table and then not referenced in the noise parameters (forgot to update when refactoring the code)
2018-07-14 02:16:19 +02:00
Emiel van Rooijen f8ac6237ad
Testing bedrock/ skyrock, added unique layers
Temporarily added a bedrock and skyrock node (in default namespace for now on my local machine as it is in the default mod ... sorry ...). Introduced a layer table containing and a loop to populate the layer settings based on a single random seed and with some noise settings hard coded for now.
2018-07-14 01:58:43 +02:00
Emiel van Rooijen 4e76adb03d
Initial commit
Still PoC phase at this stage, but first commit to publicize the idea and allow others to copy or modify the initial code
2018-07-12 23:12:55 +02:00
Emiel van Rooijen 278a76f41a
Initial commit 2018-07-12 23:10:28 +02:00