Deep well (c), centred warp, affine FogField bound, range ceiling; SNOISE_HESSIAN and SNOISE2_LIPSCHITZ measured and pinned; cull map
(c) is FogField.DeepWell (ruling wells-scale-order-of-magnitude), measured under the centred-warp interval bound and the affine bound on the same seeds; the shallow wells are the printed (c-band) row. The warp-enlarged ball and the warp-carrying detail ball in FogField.Bound are gone. (c) asserts affine cheaper than the centred interval at both warps, with the 0.5 cull floor under both (ruling affine-wells-contract-cheaper-than-interval). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
ad7e3079d4
commit
4137285e58
4 changed files with 833 additions and 81 deletions
|
|
@ -27,7 +27,7 @@ public static partial class math
|
|||
// NoiseBoundTests.HessianConstantPinsSampledCurvature pins this value against a fast re-measure and
|
||||
// the ascent from MeasureHessian's witness. Empirical with a margin, not a proof; the enclosure
|
||||
// tests are the defence. A change to the snoise kernel must re-run MeasureHessian and re-pin it.
|
||||
public const float SNOISE_HESSIAN = 68.94f;
|
||||
public const float SNOISE_HESSIAN = 56.050385f;
|
||||
|
||||
/// <summary>The point form (x, 0, 0): the value x at every eps. Exact.</summary>
|
||||
public static float3 af_point(float value) => new(value, 0.0f, 0.0f);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public static partial class math
|
|||
// multiplies by 1.10; NoiseBoundTests.Lipschitz2ConstantPins pins it against a fast re-measure and
|
||||
// the ascent from MeasureLipschitz2's witness. A change to the 2D snoise kernel must re-run
|
||||
// MeasureLipschitz2 and re-pin this constant.
|
||||
public const float SNOISE2_LIPSCHITZ = 9.19f;
|
||||
public const float SNOISE2_LIPSCHITZ = 8.117002f;
|
||||
|
||||
/// <summary>The point interval [x, x].</summary>
|
||||
public static float2 iv_point(float value) => new(value, value);
|
||||
|
|
|
|||
|
|
@ -297,14 +297,23 @@ public sealed class AffineTests
|
|||
}
|
||||
|
||||
// A float32 point of the set centre + axis eps + w, |w| <= radius, checked in double; the first eight
|
||||
// w are on the surface (pulled in by 2^-20 so their rounding stays inside). NaN-free: a point whose
|
||||
// rounding leaves the set is reported as null and skipped.
|
||||
// w are on the surface. Where the float32 sum rounds a point out of the set, w is pulled in by the
|
||||
// overshoot and 2^-21 (|centre|_1 + |axis|_1) and the sum retried; a point that still rounds out is
|
||||
// reported as null and skipped.
|
||||
private static float3? PointOf(System.Random random, float3 centre, float3 axis, float radius, float eps, int index)
|
||||
{
|
||||
var w = UnitVector(random) * (index < 8 ? radius * (1.0f - 9.5367431640625e-7f) : radius * MathF.Cbrt(random.NextSingle()));
|
||||
var p = centre + axis * eps + w;
|
||||
var (dx, dy, dz) = (p.x - (centre.x + (double)axis.x * eps), p.y - (centre.y + (double)axis.y * eps), p.z - (centre.z + (double)axis.z * eps));
|
||||
return Math.Sqrt(dx * dx + dy * dy + dz * dz) <= radius ? p : null;
|
||||
var w = UnitVector(random) * (index < 8 ? radius : radius * MathF.Cbrt(random.NextSingle()));
|
||||
for (var k = 0; k < 6; k++)
|
||||
{
|
||||
var p = centre + axis * eps + w;
|
||||
var (dx, dy, dz) = (p.x - (centre.x + (double)axis.x * eps), p.y - (centre.y + (double)axis.y * eps), p.z - (centre.z + (double)axis.z * eps));
|
||||
var distance = Math.Sqrt(dx * dx + dy * dy + dz * dz);
|
||||
if (distance <= radius)
|
||||
return p;
|
||||
w *= (float)(Math.Max(0.0, 2.0 * radius - distance - Math.ScaleB(Math.Abs(centre.x) + Math.Abs(centre.y) + Math.Abs(centre.z) + Math.Abs(axis.x) + Math.Abs(axis.y) + Math.Abs(axis.z), -21)) / radius);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue