Sam Hocevar
b85c7adfe6
Big header refactor yet again.
Let’s see how it goes with a very flat hierarchy and no .h extension.
il y a 6 ans
Sam Hocevar
8ea7dcfbcf
Move noise functions to the clean header namespace.
il y a 6 ans
Sam Hocevar
ec5f308bd3
Clean up abs/fabs discrepancies here and there.
il y a 6 ans
Sam Hocevar
d05eb96665
Improve standalone inclusion support.
il y a 6 ans
Sam Hocevar
2235ce1635
Various compilation fixes.
il y a 6 ans
Sam Hocevar
155ae65a4e
Start working on the header-only part of the framework.
This implies creating a trimmed down branch that contains almost
nothing. It will then be usable by projects that do not need the
complex build system, and by the engine itself as a submodule from
the same repository.
il y a 6 ans
Sam Hocevar
861568b146
misc: some cleanup in files, including UTF-8 BOM.
il y a 11 ans
Sam Hocevar
acef0b216f
math: fix a refactoring blunder.
il y a 11 ans
Sam Hocevar
d64b117b8d
build: fix license and copyright information.
il y a 11 ans
Sam Hocevar
51b4210361
base: reintroduce array::swap.
It merely performs an std::swap() on both array elements, but it’s
apparently convenient to have.
il y a 11 ans
Sam Hocevar
03c17fcae4
base: clean up and refactor containers.
The containers no longer force the user to use the ptrdiff_t type for
size information. For convenience, size() now always returns an int,
and the size_s() method offers a way to handle arrays with more than
2 billion elements. Internally, we still use ptrdiff_t, though.
Since so much code had to be changed, I took the opportunity to get
rid of capitalised accessors for classes that are lowercase.
il y a 11 ans
Sam Hocevar
1106503917
math: simple Perlin noise for comparison purposes.
il y a 11 ans
Sam Hocevar
5d9488182f
math: extract the gradient generator from simplex noise so that we
can reuse it for other noise implementations.
il y a 11 ans
Sam Hocevar
b0b5bcc6fa
math: tweak simplex noise scale according to dimension.
il y a 11 ans
Sam Hocevar
7faf5d912a
math: tweak simplex noise and add plenty of comments and debug code.
il y a 11 ans
Sam Hocevar
0af8c1fd6f
math: shitloads of tweaks, optimisations, fixes and comments to the
simplex noise code.
il y a 11 ans
Sam Hocevar
5065a2653c
simplex: replace the N-dimensional gradient array with a simple seed.
il y a 11 ans
Sam Hocevar
4c95301d31
simplex: use scaling values that match Stefan Gustavson’s paper.
il y a 11 ans
Sam Hocevar
7ff3456239
simplex: optimisation; reduce the number of matrix multiplications.
il y a 11 ans
Sam Hocevar
ce75538bcb
simplex: some refactoring and comments, but no changes to the algorithm.
il y a 11 ans
Guillaume Bittoun
aa50d1c8e9
simplex_interpolator: scaling noise with an approximative factor 100 that seems to work well. No hint, so far on how to find an exact value for this scaling factor.
il y a 11 ans
Guillaume Bittoun
a815a788e6
simplex_interpolator: bug fix on negative values.
il y a 11 ans
Guillaume Bittoun
959f68142d
simplex_interpolator: first working version of simplex_interpolator. Tested (with std::cout) for 2D, should work for higher dimensions.
il y a 11 ans
Guillaume Bittoun
b65af37e7c
simplex_interpolator: compilation fixes + testing Interp function
il y a 11 ans
Lolbot
7506a8aa62
fixed 7 files out of 4184:
- removed 0 CR characters
- removed 1 trailing whitespaces
- replaced 5 tabs with spaces
- fixed 7 svn:eol-style properties
il y a 11 ans
Guillaume Bittoun
5dbff4b35c
simplex_interpolator: first (non-working) draft for complete interpolator process
il y a 11 ans
Guillaume Bittoun
6bd7142428
simplex_interpolator: sorting coordinates in regular basis + tests.
il y a 11 ans
Guillaume Bittoun
a6e8434c66
simplex_interpolator: adding tests for simplex base matrix check.
il y a 11 ans
Guillaume Bittoun
408b8277ae
simplex_interpolator: bug fixing on matrix computing
il y a 11 ans
Sam Hocevar
fdd6e31eda
simplex_interpolator: compilation fix.
il y a 11 ans
Guillaume Bittoun
97de8946e9
simplex_interpolator: fixing bug on simplex matrix generation
il y a 11 ans
Guillaume Bittoun
06dfb3b0c0
simplex_interpolator: removing tests and correcting skew matrix
il y a 11 ans
Sam Hocevar
24e7663c5c
simplex: fix confusion between interpolated types and coordinate types.
il y a 11 ans
Sam Hocevar
0511d9836a
simplex: fix a bug in the modulo operator. lol. and add unit tests.
il y a 11 ans
Sam Hocevar
a01778d768
simplex_interpolator: use a matrices when n-D arrays are not necessary.
il y a 11 ans
Sam Hocevar
3d0df62ba6
simplex_interpolator: fix behaviour with negative grid indices.
il y a 11 ans
Guillaume Bittoun
5ebce1c0c8
simplex_interpolator: refactoring a bit
il y a 11 ans
Guillaume Bittoun
1f715ae139
simplex_interpolator: const commit
il y a 11 ans
Guillaume Bittoun
4118789a53
simplex_interpolator: initializing interpolator with the samples so that it can be fully usable at creation.
il y a 11 ans
Guillaume Bittoun
a0e31dd6ce
simplex_interpolator: bug fix (enough for tonight)
il y a 11 ans
Guillaume Bittoun
1cd86f9f24
simplex_interpolator: bug fix
il y a 11 ans
Guillaume Bittoun
fee0a6f8e7
simplex_interpolator: bug fix
il y a 11 ans
Guillaume Bittoun
765358b5ac
simplex_interpolator: nit + bug fixes
il y a 11 ans
Guillaume Bittoun
7e01c3afd7
simplex_interpolator: starting first test. Too tired, go to bed :)
il y a 11 ans
Guillaume Bittoun
d513d8ac8c
simplex_interpolator: adding test skeleton + build fixes
il y a 11 ans
Guillaume Bittoun
b2671811b9
simplex_interpolator: still refactoring
il y a 11 ans
Guillaume Bittoun
e179c9f1c5
simplex_interpolator: using a lot more quick (and probably efficient) algorithm.
il y a 11 ans
Guillaume Bittoun
96c54bdb54
simplex_interpolator: bug fix
il y a 11 ans
Guillaume Bittoun
5ac765db57
simplex_interpolator: first draft of final simplex interpolator (incoming tests and bugfix)
il y a 11 ans
Guillaume Bittoun
150db71579
simplex_interpolator: continuing interpolation method (to be continued…)
il y a 11 ans