qwertymine3
f91d400ed5
Added documentation
...
This is possibly too 'complete' - however I feel that this
would be useful to those with no knowledge of other distance
metrics
2016-04-01 13:05:25 +01:00
qwertymine3
8e463147a3
Fix crash
2015-12-12 22:43:50 +00:00
qwertymine3
99e69ceabd
Point numbers are now using relative rarity
2015-11-26 23:20:53 +00:00
qwertymine3
643cbbcb92
Fixed typo
2015-11-15 19:06:30 +00:00
qwertymine3
a971746c40
Fixed typos
2015-11-15 19:05:46 +00:00
qwertymine3
6cebc63569
Fixed typo
2015-11-15 19:02:22 +00:00
qwertymine3
4ff3bb1c42
Fixed typos
2015-11-15 19:01:03 +00:00
qwertymine3
150a467e12
Fixed spelling mistakes
2015-11-15 13:21:38 +00:00
qwertymine3
3b3fe5f5ae
Some modifications to the sample layer
...
Hopefully more useful for documentaion purposes
2015-11-15 11:48:31 +00:00
qwertymine3
143ed0ae61
Added a map registration function
...
This should allow others to trivially add new map types
2015-11-15 11:39:48 +00:00
qwertymine3
e3e6d03b83
Added basic distance maps
...
These are all of the basic maps I can think of other than x and y
axis aligned ones - but those can be trivially added by others, or
if there is a need
2015-11-15 11:35:02 +00:00
qwertymine3
322f6a1166
Removed old debugging code
2015-11-15 00:12:29 +00:00
qwertymine3
0d5f4e87a6
Added check to get_node_biome
2015-11-15 00:11:23 +00:00
qwertymine3
b7bdbf2cbe
Minor name change
2015-11-15 00:00:03 +00:00
qwertymine3
09ba16b2b1
Fixed perlin maps
...
These are now initialised on the first call
2015-11-14 22:57:34 +00:00
qwertymine3
fb2d122636
Found issue with noise registration model
...
This actually make noise much simpler to handle - was there a change?
2015-11-14 14:58:26 +00:00
qwertymine3
8d238faef1
Fixed error in generate_biomed_points
...
This still doesn't work, the maps are not correctly being created
2015-11-14 01:03:32 +00:00
qwertymine3
573c108de0
Removed redundant map values
2015-11-14 00:44:59 +00:00
qwertymine3
969a35d759
Fix typo
2015-11-14 00:41:36 +00:00
qwertymine3
b1778e952a
Removed layer parameter
...
These should be self contained objects
2015-11-14 00:38:12 +00:00
qwertymine3
4f1993001a
Refactored the generate_biomed_points function
...
Added a new maps file for custom maps
Modified the format for maps
Modified the position of geometric functions
Modified test layer to reflect this
2015-11-14 00:32:27 +00:00
qwertymine3
7c4cf5ed98
Some more documentation
2015-11-13 22:45:36 +00:00
qwertymine3
c33648d89f
Fixed point distribution
...
Added some more documentation
2015-11-12 23:28:41 +00:00
qwertymine3
84ffce91f3
Fixed some typos
2015-11-12 20:35:24 +00:00
qwertymine3
16a7da9bba
Added some more comments
...
Hopefully this should make the code easier for others to understand
2015-11-12 20:21:28 +00:00
qwertymine3
f7edb11a7c
Added the distance.lua
...
This was referenced and required by the previous commit
2015-11-12 20:08:31 +00:00
qwertymine3
4b855c4969
Simplified distance handling
2015-11-12 20:07:53 +00:00
qwertymine3
49d456ef30
Fixed error in point loading code
2015-11-11 21:34:41 +00:00
qwertymine3
3242e53e90
Slight optimisation
2015-11-10 20:42:22 +00:00
qwertymine3
59a4caabc6
Removed the heatmap and tolmap biome methods
...
These can easily be emulated with the multimaps - removing these
makes maintinance easier
2015-11-10 20:37:29 +00:00
qwertymine3
1f4e7025cd
Slight optimisation
2015-11-10 20:31:30 +00:00
qwertymine3
5fede9f5c6
Moved ommented code to seperate file
...
This should help to de-clutter the main init file.
If cubic noise is added, then these functions are essential, which
is why they are not removed
2015-11-10 20:25:44 +00:00
qwertymine3
32d31426c9
Better protection for the point distribution
...
There is now an enforced minimum of 1 - this is required for the noise to
be accurate in any case, so there is no issue
Can easily be removed for use of code in other areas
2015-11-10 20:16:49 +00:00
qwertymine3
caf4282689
Added new functionality - point distribution setting
...
This is somewhat technical in nature - but is completely flexible and
allow of emulation of any distribution while keeping within the limits
of the noise function
2015-11-10 20:11:58 +00:00
qwertymine3
4e9d0ff30b
Removed Support for custom maps
...
This was unsafe and unintuative - if a map is need it should be added to
the core engine
2015-11-10 19:54:05 +00:00
qwertymine3
98745e0502
More comments
2015-11-08 01:24:29 +00:00
qwertymine3
e120ac403c
Some comments added
...
More will be added in the future, but this is a start
2015-11-08 01:07:03 +00:00
qwertymine3
81d7dbccb6
Removed unused code
...
I have removed the flattened scaling code as there is almost no performance improvement,
and I was strugling to get the code to work correctly
2015-11-08 00:44:21 +00:00
qwertymine3
1bb751608c
Quick optimisation for single point case
...
This has to stay in the generate_block for good code structure
2015-11-08 00:38:16 +00:00
qwertymine3
243b2442ce
Replaced vector.add with local checkless function
...
I don't need the contant addition functionality, so this should improve performance
2015-11-01 20:48:30 +00:00
qwertymine3
9524d802fe
Fixed euclidean distance for get_dist
2015-11-01 20:44:31 +00:00
qwertymine3
2596f801d6
Optimisation of find closest
...
Should have significantly better performance
2015-11-01 17:29:18 +00:00
qwertymine3
7be4d1e971
Fix for the oddprod distance metric
...
This will still have artifacts with the cubic noise, however these are
unavoidable with how the distance is non-consistant
2015-11-01 16:54:16 +00:00
qwertymine3
de8c8553ba
Single shared byot, rather than layer stored
...
No functional difference, but less memory used
2015-11-01 12:44:09 +00:00
qwertymine3
f71feaab76
Added byot to the block generation function
2015-11-01 12:36:25 +00:00
qwertymine3
d104a43703
Completed basic user-side byot functionality
...
Should allow for much lower memory usage and far fewer gcs
2015-11-01 10:21:11 +00:00
qwertymine3
3d8de11627
Moved map_gen logic out of the scale function
...
Started to add some basic support of bring your own table - currenty just gets thrown away
Need to also add table re-use to the main other non-user facing code, such as blockdata
2015-11-01 09:53:55 +00:00
qwertymine3
e7363555e1
Added experimental 2d map generation
...
This is currently untested, had to add some new bockfiller functions, as I was
unable to easily adapt my code to the x,y style required by the original
2015-10-31 21:12:46 +00:00
qwertymine3
1942093e53
Moved scaling logic to a seperate function
...
This should have no noticeable overhead and save alot of code duplication
2015-10-31 20:22:41 +00:00
qwertymine3
60552d6e9c
Noise Change - points no longer block aligned
...
This greatly improves accuracy for the block based algorithm - accuracy
has increased from 95-96% to > 99%
This now no-longer blocks release - just need to add scaling and 2d support
ALSO:
-check oddprod still works - I think that it can't work for the block algorithm
due to it's nature - may work better if a different distance metric is
used for the block centre
Need to cap the minimum multiply value, as points are not block-aligned
This may also get rid of the annoying floating blocks :)
-optimise the single valid point case - this is rare in this small sector map, but
for larger maps this will be a good optimisation
2015-10-31 19:05:30 +00:00