API Reference · Diagnostics

Diagnostics.PbrCalibration

Namespace: Ava3D.Diagnostics

public static class Diagnostics.PbrCalibration

A reproducible interior for comparing material channels, contact, shadows and reflections. Render at 960×540, 4 samples, exposure 1; call PbrCalibration.Frame with a recorded time for A/B comparisons. The scene has no random state or wall-clock animation and contains no external assets.

Methods

MemberDescription
static void ConfigureHdrEnvironment(Scene scene, bool roomProbes = true, int resolution = 128)

Adds synthetic HDR global/room images and two reflective spheres. The images contain linear bright rectangles; use roomProbes false for the matching global-only comparison. Turns on Scene.LinearHdr, replaces the environment's probes, and runs EnvironmentLight.Prepare before returning. Call it once per scene.

scene

A scene from PbrCalibration.Create.

roomProbes

Whether to add the two room probes.

resolution

Sets EnvironmentLight.ReflectionResolution.

static Scene Create(MaterialDebugView view = MaterialDebugView.None, bool authoredAo = true)

Creates two adjoining rooms, material samples, contact objects and two casting lights. Set Scene.MaxShadowedLights to 2 for both lights to cast at once.

view

The diagnostic to show; see Scene.DebugView.

authoredAo

False sets the channel swatch's authored occlusion strength to zero.

static void Frame(Camera camera, double seconds = 0.0)

Poses the camera: zero is the fixed comparison view, and 0..20 seconds is a slow, repeatable traverse for motion checks. Also sets field of view and clip planes.

See also