Commit ee318f5
committed
feat(terrain): oblivion-style rolling hills preset (validated)
Node simulation of 54 param combinations + 5 alternative height
formulas; measured height delta, std-dev, jagginess (Laplacian),
biome distribution (plains/hills/mid/mountains) and walkability over
1800x1800m sample areas.
Validated findings:
1. Octaves > 10 change terrain < 1 cm at character scale
(8 vs 10: 0.35m max; 10 vs 12: 0.10m max; 12 vs 14: 0.03m max).
Keep octaves: 10, compute saved with zero visual loss.
2. Alternative height functions (linear, sign-preserving square,
hybrid, asymmetric) all produce LESS jagged terrain at same
stddev than current n^2 <-> n^3 lerp. Keep current formula.
3. Real roughness levers are gain and lacunarity.
gain 0.52 -> 0.58 and lacunarity 2.0 -> 2.2 gives +15% jagginess
with no walkability loss.
Final preset: freq 0.0014 amp 0.28 strength 40 gain 0.58 lac 2.2
erosion 0.52 erosionSoftness 0.42 smoothLowerPlanes 0.20.
Result on a 300^2 sample grid: range -7 to +60m, stddev 10.2m,
jag 3.08, 15%% plains, 47%% hills, 31%% rough, 7%% mountains,
85%% walkable - rolling-hills character scaled 3-8x player.1 parent e0f0772 commit ee318f5
2 files changed
Lines changed: 15 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
0 commit comments