summaryrefslogtreecommitdiffstats
path: root/src/Generating/Noise3DGenerator.cpp (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-03-18shared_ptr -> unique_ptr in generatorsTiger Wang1-8/+3
2020-05-15Enable some more clang-tidy linter checks (#4738)peterbell101-1/+1
* Avoid inefficient AString -> c_str() -> AString round trip * Avoid redundant string init expressions * Avoid unnecessary return, continue, etc. * Add .clang-format to help with clang-tidy fix-its * Avoid unnecessary passing by value * Avoid unnecessary local copying * Avoid copying in range-for loops * Avoid over-complicated boolean expressions * Some violations missed by my local clang-tidy * Allow unnecessary continue statements * Add brackets * Another expression missed locally * Move BindingsProcessor call into clang-tidy.sh and add space * Fix pushd not found error * Different grouping of CheckBlockInteractionRate
2019-09-08ChunkGenerator: Changed to use cChunkCoords.Mattes D1-14/+9
2019-09-08ShapeGen, HeiGen: Changed to use cChunkCoords.Mattes D1-23/+19
2019-09-08BiomeGen: Changed to use cChunkCoords params.Mattes D1-1/+1
2019-09-06Separated chunk generator from world / plugin interfaces.Mattes D1-3/+3
The generator now only takes care of servicing synchronous "GetChunk(X, Y)" and "GetBiomes(X, Y)" requests.
2018-07-26CheckBasicStyle: Check number of empty lines between functions (#4267)peterbell101-0/+1
Add check for number of empty lines between functions and fix the corresponding failures
2017-08-03Remove double includes part 2 (#3890)peterbell101-1/+0
2017-06-14Remove redundant heighmap codepeterbell101-23/+1
2016-03-18Fixed misuse of comma.Lukas Pioch1-4/+4
2015-08-12Fix old style casts and implicit conversionsMatti Hänninen1-33/+33
2015-05-19More fixed warningstycho1-2/+5
2015-05-09More style checking.Mattes D1-1/+1
Spaces around some operators are checked.
2015-01-23Fixed defect #43665 in Coverity list.Kirill Kirilenko1-0/+11
2014-12-21cNoise3DComposable: Fixed unitialized member variables.Mattes D1-1/+3
Fixes CID 43665.
2014-12-07Reduced river heightSTRWarrior1-2/+2
Rivers would exceed the water height quite often
2014-12-01Noise3D: Fixed missing initialization.Mattes D1-1/+3
This should fix terrain being at Y=0 or Y=255 for the spawn chunk. Fixes #1433.
2014-11-26Merge remote-tracking branch 'origin-master' into c++11Tiger Wang1-288/+119
2014-11-23Removed unnecessary #includesTiger Wang1-1/+0
2014-11-23Noise3D generator: Enlarged averaging to avoid steep beach slopes.Mattes D1-2/+2
2014-11-20BiomalNoise3D generator: finished all biomes.Mattes D1-66/+74
2014-11-20Generators: Unified SeaLevel into a single variable.Mattes D1-66/+2
It is shared between shape generators and composition generators and there's no sense in having two different values for those.
2014-11-19cInterpolNoise: Implemented optimized 2D generating.Mattes D1-7/+54
2014-11-18Added a cInterpolNoise template for faster noise generator.Mattes D1-3/+50
Used an instance of it in the Noise3D generator.
2014-11-17Added cImprovedNoise implementation.Mattes D1-33/+4
2014-11-16BiomalNoise3D: Added more biomes.Mattes D1-13/+65
2014-11-14Noise3D: Added jungles.Mattes D1-0/+2
2014-11-13Noise3D: Added oceans.Mattes D1-0/+3
2014-11-12Generator: Shape initial refactoring.Mattes D1-155/+42
The code compiles, but several structure generators are broken, crash on start.
2014-11-10BiomalNoise3D: Added a few biomes.Mattes D1-5/+8
2014-11-10Added BiomalNoise3D shape generator.Mattes D1-29/+275
2014-11-09Noise3d Generator: Fixed unused function error.Mattes D1-1/+1
2014-11-09Noise3D generator: rewritten from scratch.Mattes D1-71/+106
Now it uses three 3D and one 2D perlin noises to generate the terrain, and is highly parametrizable.
2014-10-23Merged IniFile into main MCS sources.Mattes D1-1/+1
2014-09-22Made it compile with clangChris Darnell1-2/+2
2014-08-04CheckBasicStyle: multi-level indent change.madmaxoft1-2/+3
2014-07-17Normalized comments.madmaxoft1-2/+2
This was mostly done automatically and then visually inspected for obvious errors. All //-style comments should have a 2-space separation from the code, and 1 space after the comment sign.
2014-03-21Implemented faster upscaling using templates.madmaxoft1-1/+1
Fixes #819.
2014-01-10Decoupled cChunkGenerator from cWorld and cRoot.madmaxoft1-3/+1
Now the chunk generator can be used by other projects without depending on the two hugest structures in MCS.
2013-12-20Fixed compiler warning when iterating over a fixed array of items (ARRAYCOUNT).madmaxoft1-4/+4
2013-11-27Fixed the remaining derpsAlexander Harkness1-1/+1
2013-11-25Further attempts to fix compileTiger Wang1-1/+1
2013-11-24Attempt to fix compilationTiger Wang1-1/+1
2013-11-24Moved source to srcAlexander Harkness1-0/+0
2013-11-16Got rid of another unused variable.Alexander Harkness1-1/+0
2013-11-16Those variables weren't used.Alexander Harkness1-4/+0
It seems strange for them to be there, is the code written wrong?
2013-11-16Fixed another one...Alexander Harkness1-1/+1
2013-11-16Fixed yet another unsigned integer comparison.Alexander Harkness1-26/+26
2013-07-29Changed everyting to Unix line endings.Alexander Harkness1-581/+581
2013-05-15Moved noise debugging into the Noise.* filesmadmaxoft@gmail.com1-77/+0
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1485 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-15Fixed 2D linear upscale to compile on Linux, added a test for it.madmaxoft@gmail.com1-4/+42
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1484 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-14Noise3D generator is now using linear upscalingmadmaxoft@gmail.com1-36/+58
Measured 30% performance increase. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1482 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12LinearUpscale: postfixed with InPlace to differentiate from a future src/dst versionmadmaxoft@gmail.com1-1/+1
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1479 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12Noise3D: cleanupmadmaxoft@gmail.com1-14/+18
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1477 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-12Renamed linear interpolation from Noise.h to a more proper LinearUpscale and moved it to a separate file.madmaxoft@gmail.com1-1/+2
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1475 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-05-11Converted the Noise3D generator to optimized noise and lerpmadmaxoft@gmail.com1-105/+175
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1471 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Noise3D: Re-fixed composition, finally no fake-tree remnantsmadmaxoft@gmail.com1-2/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1423 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Noise3D: Fixed composition when reusing the buffer (caused chopped trees)madmaxoft@gmail.com1-0/+4
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1420 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Noise3D made into Composable - both a HeightGen and a CompositionGenmadmaxoft@gmail.com1-0/+229
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1419 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Noise3D: Made settable through INI, added slight height control, added basic compositingmadmaxoft@gmail.com1-49/+136
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1417 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27Noise3D: Shifted to normal groundlevel, added water on sealevelmadmaxoft@gmail.com1-2/+17
git-svn-id: http://mc-server.googlecode.com/svn/trunk@1416 0a769ca7-a7f5-676a-18bf-c427514a06d6
2013-04-27New terrain generator - Noise3D.madmaxoft@gmail.com1-0/+186
A testbed for a generator based on 3D noise. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1414 0a769ca7-a7f5-676a-18bf-c427514a06d6