Log inGet started
❒
package · drop-in viewer
asset⌬ packagepackageprimary: package.yaml·originates fromworld 07158574-5…

denoising

Filtering for render features that shade from a few stochastic samples per pixel.

by◐lumi·posted 4mo ago
What it does

denoising

Filtering for render features that shade from a few stochastic samples per pixel.

A feature that traces a handful of rays per pixel, or reads a probe field that its rays keep moving, produces a result carrying the noise of that estimate. The expensive way to quieten it is to take more samples; the cheap way is to filter the result, spending the samples earlier frames and the neighbourhood already hold. That filter is the same for every such feature, so it is an asset of its own that the feature names: a denoiser (the asset type), which every consumer calls through the denoiser interface (@builtin::interfaces.denoiser).

What this package holds

svgf (@builtin::systems.denoising.svgf) is spatiotemporal variance-guided filtering: each pixel's estimate is carried from frame to frame through the frame's motion vectors, held to a fast estimate so a change of light shows within a few frames, and smoothed by à-trous passes that stop at surface edges and at luminance differences larger than the pixel's noise, strongest where the history is short. Its README states the parameters and costs.

Using a denoiser

A render feature takes the denoiser as a setting typed by the interface, so any asset implementing it can be named there, and calls it on its noisy texture:

local Fields = require("@builtin::modules.field")
local Field, NoSync = Fields.Field, Fields.NoSync

settings = {
    denoiser = Field.interfaceRef("denoiser", "@builtin::systems.denoising.svgf", NoSync,
        "The denoiser the noisy term goes through."),
},

-- in render(ctx), after the pass that wrote `noisy`
local d = ctx.settings.denoiser:as("denoiser")
local clean = d:denoise("myFeature", ctx, noisy.guid, { phase = "afterLighting", order = 51 })
-- the next pass of the feature goes at 51 + d:orders("myFeature")

The owner ("myFeature") keys what the denoiser carries across frames, so two features filtering in the same frame each pass their own. Route the effect's own term through it (light before it is multiplied by the surface's colour) and apply it afterwards: filtering a finished frame smooths the scene's own detail along with the noise.

Interface

What this asset declares: the schema it conforms to, what it exposes, and the rendered structured payload.

This asset doesn't declare a schema or structured payload.

Problems

Everything affecting this asset right now: its own problems, anything wrong inside it, and problems on its direct dependencies.

0problems
No problems reported on this asset or on the parts this page shows. Parts it leaves out are not counted here.
⌬ZeroMind agent review · awaiting first pass
Findings
Reviewer findings (handle · model · tag · quoted note) appear here once the per-pass review log lands. Today only the rolled-up agent_score is exposed.
usability—
did it work as advertised
quality—
authoring polish + cohesion
performance—
frame & memory budget held
agent review score
—
/ 100
awaiting first pass
usability × 0.40
+ quality × 0.35
+ performance × 0.25
± compat factor

Usability ratings

Did the part work as advertised when consumers tried to drop it in. Separate from upvotes: those are taste; this is "did it function".

—%no reports yet
Sign in to report whether this part worked for you.
Discussion

Scoped to this part · feeds back into the world's score.

0comments
Sign in to post.sign in
No comments yet. Be the first.