kwolekr
87a4d95c84
Noise: Fix interpolation at negative coordinates
2015-05-31 23:20:43 +10:00
kwolekr
fc6015590f
Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler warnings
2015-05-31 23:20:35 +10:00
kwolekr
e20e5b69f4
Noise: Make buffer size parameters unsigned
2015-05-31 23:16:21 +10:00
kwolekr
afd27cd3ea
Fix MSVC compatibility
...
Make sure to include random unittests in android builds, too
Use SWAP() macro
Ensure that negative ranges are tested as well in random unittests
2015-05-04 16:51:51 +10:00
kwolekr
879c24f939
Noise: Fix PcgRandom::randNormalDist() when range contains negative numbers
...
This fixes an issue with erroneous float-to-int rounding that resulted in
truncation toward 0, causing a biased distribution.
2015-04-27 04:05:25 -04:00
kwolekr
eade25a4b6
Replace PRNG assertions with PrngException
2015-04-27 01:24:37 -04:00
kwolekr
7f0c03b011
Noise: Add noise unittests
...
Fix buffer size calculation for lacunarity < 1.0
Add guard against absurd noise parameters
2015-04-21 13:05:14 -04:00
kwolekr
fd6b4536bc
Noise: Correct noise objects created with invalid dimensions
2015-04-19 21:39:10 -04:00
kwolekr
44f8d53b77
Fix endianness inconsistency with PcgRandom::bytes()
2015-03-23 22:23:16 -04:00
kwolekr
914486efb5
Fix some loose ends from 3993093f
2015-03-22 02:58:54 -04:00
kwolekr
16407b9f46
Add support for the PCG32 PRNG algo (and associated script APIs)
2015-03-22 00:48:08 -04:00
kwolekr
acf751e3dc
Noise: Don't assume Noise is used for 2D unless gradientMap2D is actually called
2014-12-14 00:18:31 -05:00
kwolekr
9ac2db17df
Clean up Noise macros
2014-12-11 02:53:10 -05:00
kwolekr
6f398af64f
Noise: Automatically transform noise maps if needed
2014-12-10 23:35:37 -05:00
kwolekr
180c455ab1
Noise: Create a deep copy of NoiseParams
2014-12-10 00:37:09 -05:00
kwolekr
1264fffc46
Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2
2014-12-09 00:50:58 -05:00
kwolekr
d89a2b4da7
Optimize noise implementations
2014-12-08 03:26:29 -05:00
kwolekr
22b22968a1
Add flags and lacunarity as new noise parameters
...
Add 'absolute value' option to noise map functions
Extend persistence modulation to 3D noise
Extend 'eased' option to noise2d_perlin* functions
Some noise.cpp formatting fixups
2014-12-07 21:59:32 -05:00
kwolekr
019cb29665
noise: Throw exception on noise allocation failure
2014-11-29 16:52:45 -05:00
kwolekr
95a8b03898
Add eased 3d point-value noise functions
2014-11-12 23:49:45 -05:00
paramat
28ed3ea7c4
Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, blobs
2014-11-08 21:37:26 +01:00
kwolekr
323b91945e
Change license of noise implementation to Simplified BSD
2014-10-27 21:17:07 -04:00
kwolekr
258ad1b6ec
Add support for eased 3d noise
2014-10-27 02:02:38 -04:00
Kahrl
ee90d438b8
Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu
2013-08-14 21:03:33 +02:00
kwolekr
6d9ff57f15
Add Mapgen V7, reorganize biomes
2013-04-07 00:50:21 -04:00
kwolekr
2de944c208
Fix most warnings, re-fix MSVC compile error
2013-02-26 01:57:59 -05:00
Sfan5
3fab3825aa
Update Copyright Years
2013-02-24 20:15:24 +01:00
PilzAdam
269f01224b
Change Minetest-c55 to Minetest
2013-02-24 18:49:03 +01:00
kwolekr
cbffb26491
Fix and improve noise map functions
2013-02-06 01:12:36 -05:00
kwolekr
3d9ebbcc63
Finish and clean up mapgen configuration
2013-01-21 21:41:37 +02:00
kwolekr
af04401ae2
Readded and optimized mapgen V6
2013-01-21 21:41:37 +02:00
kwolekr
a1bea91921
Cleaned & enhanced noise object management
2013-01-21 21:41:37 +02:00
kwolekr
b2ece95f10
Add initial Lua biomedef support, fixed biome selection
2013-01-21 21:41:37 +02:00
kwolekr
6df7f001e5
The new mapgen, noise functions, et al.
2013-01-21 21:41:33 +02:00
PilzAdam
7afeee1a5b
Replace pow() with multiplikation to improve speed
2012-11-02 16:24:57 +01:00
Perttu Ahola
e70b6545b1
Switch the license to be LGPLv2/later, with small parts still remaining as GPLv2/later, by agreement of major contributors
2012-06-05 18:54:07 +03:00
Perttu Ahola
2bd2bdff08
updated noise stuff
2011-06-26 18:50:13 +03:00
Perttu Ahola
7538b4c620
New map generator added (and SQLite, messed up the commits at that time...) (import from temporary git repo)
2011-06-25 04:25:14 +03:00
Perttu Ahola
ffb1128951
tested out and commented out some new stuff for the terrain generator, to be used in the future.
2011-04-26 15:38:42 +03:00
Perttu Ahola
2e7b15fed3
mapgen work-in-progress
2011-03-02 02:00:11 +02:00
Perttu Ahola
9a22d02903
mapgen tweaking
2011-03-01 01:32:54 +02:00
Perttu Ahola
c8be58a65c
A third try on terrain generation. No trees yet.
2011-02-28 02:01:40 +02:00
Perttu Ahola
d9d0efdeed
fixed 3d noise and made 2d noise faster
2011-02-27 00:59:56 +02:00
Perttu Ahola
48a772b3c6
3d noise stuff
2011-02-26 20:16:47 +02:00
Perttu Ahola
15f27a1937
made it to work with my windows compiler
2011-02-08 10:11:26 +02:00
Perttu Ahola
ea2d03e468
added noise.*
2011-02-05 14:56:01 +02:00