120 Commits

Author SHA1 Message Date
Astrash
4393a16b2f Use proper static isDifferentiable method 2024-10-09 20:56:11 +11:00
Astrash
b4fa635455 Ensure throw with incorrect use of SimplexStyle derivatives
This should ensure that in the case an implementation fails to correctly
check isDifferentiable then performs a subsequent derivative based sample,
an error is thrown, rather than potentially missing a logic bug due to
noise of 0 and derivative of 0 being returned which could otherwise be
hard to narrow down.
2024-10-09 20:45:25 +11:00
Astrash
9f425c6159 Add support for derivatives in FBM 2024-10-09 20:39:45 +11:00
Astrash
158ffba2a5 Make FractalNoiseFunction impls support derivatives 2024-10-09 20:39:13 +11:00
astrsh
589cf83c38 Flip comparison
As per request from @duplexsystem
2024-09-25 14:08:19 +10:00
Zoe Gidiere
1aa3ef813c add default sampler to pseudoerosion 2024-09-24 09:05:33 -06:00
Zoe Gidiere
f605ee1937 Remove Final from psuedoerosion template 2024-09-23 22:35:01 -06:00
Zoe Gidiere
9c8298fe53 convert pseudoerosion to double 2024-09-23 21:09:19 -06:00
Zoe Gidiere
d69b0dba90 reformat 2 2024-09-23 21:06:07 -06:00
Zoe Gidiere
42166d5239 bump version number 2024-09-23 20:59:02 -06:00
Zoe Gidiere
d6772f51ea Reformat 2024-09-23 20:56:13 -06:00
Zoe Gidiere
f469193909 Make seed affect pseudoerosion hasing 2024-09-23 20:51:00 -06:00
Zoe Gidiere
bd73427072 OpenSimplex 2 Derivative Impl 2024-09-23 20:29:41 -06:00
Zoe Gidiere
017b4608bc Fix build 2024-09-23 19:49:16 -06:00
Zoe Gidiere
5f340f8ffd slight open simplex 2s op\pt 2024-09-23 19:48:22 -06:00
Zoe Gidiere
5b35eb041b Remove temp DerivativeFractl nose 2024-09-23 19:43:56 -06:00
Zoe Gidiere
699d5d1d62 Derivable OpenSimplex2S Impl
baased on https://gist.github.com/KdotJPG/882f36b2ae5ae56a8fc91627ec1c87f4
2024-09-23 19:42:50 -06:00
Zoe Gidiere
07e3d0058d Refractor PseudoErosion 2024-09-23 16:46:48 -06:00
Zoe Gidiere
b1ad820e1c Move pseudoerosion to NoiseFunction 2024-09-23 16:37:42 -06:00
Zoe Gidiere
3644ee7fca Implement DerivateNoiseFunction 2024-09-23 16:28:34 -06:00
Zoe Gidiere
b14b355c6f Merge branch 'dev/fractal-gavoro-pseudoerosion' into ver/6.5.0 2024-09-21 17:22:47 -06:00
Zoe Gidiere
b63f5f4a8f Reformat 2024-09-18 12:43:41 -06:00
Gavin Tran
c20b1eaf10 Apply code style fixes 2024-04-21 15:39:48 -04:00
Gavin Tran
72f761678a Add SaltedNoiseFunctions in sampler conversion 2024-04-21 14:54:45 -04:00
Gavin Tran
62317a2f3f Add SaltedNoiseFunctions 2024-04-21 14:48:46 -04:00
Astrash
823afd592b Reduce number of erosion impulses
A reduction of impulse evaluations from 5^2 to 3^2, original algorithm used exponential falloff function which required evaluating impulses from further away to avoid artifacts. I've changed it to a parabolic falloff function which is exactly 0 at the largest possible distance from a cell origin, meaning any cells further than that will not have an effect, preventing said artifacting from occurring. The parabolic function could be replaced with an exponential function (or any other similar easing function) as long as it has an x-intercept at maxCellDistSq. In addition, an option to control whether averaging impulses has been added as it has more of a visual impact with the aforementioned changes.
2024-04-20 15:55:59 +10:00
Astrash
ff03b38b81 Derivative API documentation 2024-04-19 21:25:16 +10:00
Astrash
35246d65b9 Require implementing derivable check 2024-04-19 21:07:53 +10:00
Astrash
41652d29df Use proper check for derivative sampler validation 2024-04-19 21:05:52 +10:00
Astrash
142d364682 WIP fractal-gavoro-pseudoerosion 2024-04-19 20:55:14 +10:00
dfsek
3622003a39 fix other lerp issues 2023-12-24 02:02:46 -07:00
dfsek
84cd96ecf7 fix BrownianMotionSampler lerp usage 2023-12-24 01:53:05 -07:00
Astrashh
defd775f13
Change Java whitespace handling in .editorconfig (#425)
* Change whitespace handling in .editorconfig

* Reformat code

* fix format error

* Reformat code

---------

Co-authored-by: Zoë Gidiere <duplexsys@protonmail.com>
2023-11-13 00:57:01 +00:00
Astrashh
4065cfea53
Fix YAML formatting (#426)
* Remove trailing whitespace in YAML formatting

* Reformat YAML files
2023-11-10 00:47:12 +00:00
Zoë Gidiere
c4f665ffc5 fix format error 2023-11-05 20:13:04 -07:00
Zoë Gidiere
c00753b0fc let reformat have another go at it 2023-11-05 20:12:57 -07:00
Zoë Gidiere
ad9bc7f67c fix format error 2023-11-02 18:47:45 -06:00
Zoë Gidiere
81a96d6b76 Reformat code 2023-11-02 18:47:36 -06:00
Zoë Gidiere
d696e4fd24 Optimize imports 2023-11-02 18:45:13 -06:00
Zoë Gidiere
c98d39c5d7 Update licence year 2023-11-02 18:42:51 -06:00
Zoë Gidiere
9292d3de17 Remove FastMath
hotspot has intrinsics for almost everything we use it for
2023-10-26 10:37:25 -06:00
Astrash
e51e025e9c Implement cubic spline sampler 2023-10-02 11:14:43 +11:00
Astrash
3f9ead0d66 Remove repeated code in cellular sampler 2023-09-27 13:39:51 +10:00
David W
5eeb5af6c4
Add cell center offset return to CELLULAR sampler (#407)
* Add offset lookup return to cellular sampler

* bump noise function plugin version

* revert version to 1.1.0

* rename OffsetNoiseLookup, switch axis orientation

* rename return type aswell in cellcampler
2023-09-21 22:23:49 +00:00
Astrash
0e3a756011 Bump config-noise-function to v1.1.0 2023-07-18 14:29:54 +10:00
Astrash
02198e1b88 Implement distance sampler 2023-07-18 14:29:28 +10:00
Astrash
00aeb98419 Implement translation sampler 2023-07-18 14:27:36 +10:00
Astrash
1a784b51ac Implement expression normalizer sampler 2023-07-18 14:25:07 +10:00
Astrash
379fa601a3 Meta annotate LINEAR_HEIGHTMAP sampler 2023-07-16 17:04:51 +10:00
Astrash
3ab671827d Re-add old image sampler to config-noise-function w/ deprecation notice 2023-02-07 11:31:23 +11:00