Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Noise: Prevent unittest crash caused by division by zero | SmallJoker | 2018-06-03 |
| | |||
* | PcgRandom: Fix/improve documentation | kwolekr | 2016-06-04 |
| | |||
* | Change internal type for seeds to s32 | kwolekr | 2016-06-04 |
| | | | | | This fixes value truncation (and therefore incompatibility) on platforms with an LP32 data model, such as VAX or MS-DOS. | ||
* | Fix spelling of noise_threshold | Jun Zhang | 2015-12-06 |
| | |||
* | Fix Noise compiled under clang >= 3.7.x with -O2 or higher | kwolekr | 2015-11-01 |
| | | | | | | | | | | When compiled with optimizations, the most recent versions of clang seem to 'optimize' out a crucial "and %reg, 0x7FFFFFFF" instruction in noise2d(), probably because it somehow assumed the variable n would never become greater than that amount. Indeed, signed integer underflow is undefined behavior in C and C++, so while this optimization is "correct" in that sense, it breaks lots of existing code. Solved by changing n to an unsigned type, making behavior well-defined. | ||
* | Fix Lua PcgRandom | est31 | 2015-08-12 |
| | | | | | | | | | | | | | | | | Before, this lua code led to a crash: local pcg = PcgRandom(42) local value = pcg:next() This was because if you called s32 PcgRandom::range(min, max) with the minimum and maximum possible values for s32 integers (which the lua binding code did), u32 PcgRandom::range(bound) got called with 0 as the bound. The bound however is one above the maximum value, so 0 is a "special" value to pass to this function. This commit fixes the lua crash by assigning the RNG's full range to the bound 0, which is also fits to the "maximum is bound - 1" principle, as (u32)-1 is the maximum value in the u32 range. | ||
* | Remove some old dead code. Fix some Clang warnings in SRP (ng->N... will | Loic Blot | 2015-07-24 |
| | | | | always evaluate to true. | ||
* | Misc. minor fixes | kwolekr | 2015-07-10 |
| | |||
* | Noise: Fix interpolation at negative coordinates | kwolekr | 2015-05-17 |
| | |||
* | Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler ↵ | kwolekr | 2015-05-16 |
| | | | | warnings | ||
* | Noise: Make buffer size parameters unsigned | kwolekr | 2015-05-15 |
| | |||
* | Fix MSVC compatibility | kwolekr | 2015-04-29 |
| | | | | | | Make sure to include random unittests in android builds, too Use SWAP() macro Ensure that negative ranges are tested as well in random unittests | ||
* | Noise: Fix PcgRandom::randNormalDist() when range contains negative numbers | kwolekr | 2015-04-27 |
| | | | | | This fixes an issue with erroneous float-to-int rounding that resulted in truncation toward 0, causing a biased distribution. | ||
* | Replace PRNG assertions with PrngException | kwolekr | 2015-04-27 |
| | |||
* | Noise: Add noise unittests | kwolekr | 2015-04-21 |
| | | | | | Fix buffer size calculation for lacunarity < 1.0 Add guard against absurd noise parameters | ||
* | Noise: Correct noise objects created with invalid dimensions | kwolekr | 2015-04-19 |
| | |||
* | Fix endianness inconsistency with PcgRandom::bytes() | kwolekr | 2015-03-23 |
| | |||
* | Fix some loose ends from 3993093f | kwolekr | 2015-03-22 |
| | |||
* | Add support for the PCG32 PRNG algo (and associated script APIs) | kwolekr | 2015-03-22 |
| | |||
* | Noise: Don't assume Noise is used for 2D unless gradientMap2D is actually called | kwolekr | 2014-12-14 |
| | |||
* | Clean up Noise macros | kwolekr | 2014-12-11 |
| | |||
* | Noise: Automatically transform noise maps if needed | kwolekr | 2014-12-10 |
| | |||
* | Noise: Create a deep copy of NoiseParams | kwolekr | 2014-12-10 |
| | |||
* | Noise: Update Noise::resizeNoiseBuf to account for lacunarity not equal to 2 | kwolekr | 2014-12-09 |
| | |||
* | Optimize noise implementations | kwolekr | 2014-12-08 |
| | |||
* | Add flags and lacunarity as new noise parameters | kwolekr | 2014-12-07 |
| | | | | | | | 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 | ||
* | noise: Throw exception on noise allocation failure | kwolekr | 2014-11-29 |
| | |||
* | Add eased 3d point-value noise functions | kwolekr | 2014-11-12 |
| | |||
* | Add mgv5. New noise code, uses biome API. Eased 3d noise for terrain, caves, ↵ | paramat | 2014-11-08 |
| | | | | blobs | ||
* | Change license of noise implementation to Simplified BSD | kwolekr | 2014-10-27 |
| | |||
* | Add support for eased 3d noise | kwolekr | 2014-10-27 |
| | |||
* | Omnicleanup: header cleanup, add ModApiUtil shared between game and mainmenu | Kahrl | 2013-08-14 |
| | |||
* | Add Mapgen V7, reorganize biomes | kwolekr | 2013-04-07 |
| | |||
* | Fix most warnings, re-fix MSVC compile error | kwolekr | 2013-02-26 |
| | |||
* | Update Copyright Years | Sfan5 | 2013-02-24 |
| | |||
* | Change Minetest-c55 to Minetest | PilzAdam | 2013-02-24 |
| | |||
* | Fix and improve noise map functions | kwolekr | 2013-02-06 |
| | |||
* | Finish and clean up mapgen configuration | kwolekr | 2013-01-21 |
| | |||
* | Readded and optimized mapgen V6 | kwolekr | 2013-01-21 |
| | |||
* | Cleaned & enhanced noise object management | kwolekr | 2013-01-21 |
| | |||
* | Add initial Lua biomedef support, fixed biome selection | kwolekr | 2013-01-21 |
| | |||
* | The new mapgen, noise functions, et al. | kwolekr | 2013-01-21 |
| | |||
* | Replace pow() with multiplikation to improve speed | PilzAdam | 2012-11-02 |
| | |||
* | Switch the license to be LGPLv2/later, with small parts still remaining as ↵ | Perttu Ahola | 2012-06-05 |
| | | | | GPLv2/later, by agreement of major contributors | ||
* | updated noise stuff | Perttu Ahola | 2011-06-26 |
| | |||
* | New map generator added (and SQLite, messed up the commits at that time...) ↵ | Perttu Ahola | 2011-06-25 |
| | | | | (import from temporary git repo) | ||
* | tested out and commented out some new stuff for the terrain generator, to be ↵ | Perttu Ahola | 2011-04-26 |
| | | | | used in the future. | ||
* | mapgen work-in-progress | Perttu Ahola | 2011-03-02 |
| | |||
* | mapgen tweaking | Perttu Ahola | 2011-03-01 |
| | |||
* | A third try on terrain generation. No trees yet. | Perttu Ahola | 2011-02-28 |
| |