agentleFS
scottsttsscottstts/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-temporal-stability/SKILL.md

threejs-temporal-stability

Skill1.1k starsChanged 4 days agoMITView on GitHub

Keep Three.js scenes crisp and artifact-free in motion, not only in converged stills. Use for antialiasing strategy (MSAA and specular AA versus TAA smear), stochastic and amortised raymarching contracts, full-quality still paths, screen-space guard bands, update-rate parity for moving shadows and reflections, detail-tier hysteresis, preventing camera-following artifacts and wrap seams, motion bisection, and animation plausibility.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Add a 15–20% screen-space guard band (cropped on output) and graceful pixel-position fallbacks for screen-space refraction, SSR, AO, and …

    line 15
  2. Distinctive:

    Update moving shadows, moving reflections, and live simulations every frame.

    line 16
  3. Distinctive:

    Verify stability with a 6-move motion capture suite stepped frame-by-frame at real frame rate, bisecting any artifact by freezing time and …

    line 17
  4. Distinctive:

    Read references/temporal-stability-and-aa.md for the AA hierarchy, amortised-pass contract, guard-band sizing, update-rate parity, …

    line 19
  5. Distinctive:

    Read references/motion-bisection-and-plausibility.md for the motion capture protocol, frame-stepped bisection workflow, secondary-motion …

    line 21

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Temporal Stability

Judge every stochastic, screen-space, camera-dependent, or animated system in motion and close up. A still frame captured after N identical frames hides grain, disocclusion stripes, reprojection smear, and stepped updates.

Build order

  1. Inventory every temporal surface in the scene: antialiasing, stochastic passes, amortised or accumulated buffers, per-N-frame updates, detail-tier handovers, screen-space lookups, camera-dependent terms, periodic procedural wraps, and object animations.
  2. Choose MSAA on the scene pass plus specular AA and anisotropic mipmaps in materials; keep TAA light or off so moving edges stay sharp.
  3. For every stochastic or amortised pass, define its per-frame stability plan, disocclusion fallback, and a full-quality non-amortised path for stills and offline captures.
  4. Add a 15–20% screen-space guard band (cropped on output) and graceful pixel-position fallbacks for screen-space refraction, SSR, AO, and blur.
  5. Update moving shadows, moving reflections, and live simulations every frame; remove horizontal distance-from-camera clearing or darkening hacks.
  6. Verify stability with a 6-move motion capture suite stepped frame-by-frame at real frame rate, bisecting any artifact by freezing time and toggling passes one at a time.

Read references/temporal-stability-and-aa.md for the AA hierarchy, amortised-pass contract, guard-band sizing, update-rate parity, periodic-wrap alignment, and temporal failure catalogue.

Read references/motion-bisection-and-plausibility.md for the motion capture protocol, frame-stepped bisection workflow, secondary-motion physics, and per-frame clearance verification.

Non-negotiable rules

  • MSAA + specular AA first: TAA alone smears thin edges and foliage during motion; never substitute TAA or reduced render resolution for geometric MSAA and material roughness filtering.
  • Amortised passes must be invisible in motion: 1-in-N pixel tracing or staggered updates are valid only when untraced pixels fill from a matching current trace, disocclusions fill from a direction-correct sky/probe fallback, reprojection does not blur on turns, and a full-quality path exists.
  • Guard bands on screen-space lookups: render internal scene/depth targets 15–20% wider than the viewport and crop on output; fall back smoothly toward the pixel's own UV rather than clamping to a single edge row.
  • No camera-following shading hacks: camera-dependent terms must be physically view-dependent (Fresnel, specular, parallax), never horizontal distance-from-camera clearing discs or darkening bands.
  • Moving content updates every frame: shadows of wind-blown foliage, characters, and vehicles plus reflections of moving scenes update every frame — never stepped over N frames or rotating one cube face per frame.
  • Every lookup wraps identically: for endless roads, scrolling surf, or periodic loops, wrap geometry, textures, foam, and shadows on the exact same period.

Failure conditions

  • grain or fireflies appear only while moving because temporal accumulation resets on camera motion;
  • edges and fine detail smear during camera pans due to TAA without MSAA or eased camera velocity never reaching zero;
  • slanted stripes trail behind fast turns because disoccluded pixels sample stale previous-direction history;
  • vertical streaks or ghost trails appear along viewport borders from unclamped screen-space refraction/SSR lookups;
  • a bare circular disc or shadow pole travels underneath the camera when looking downward;
  • shadows, reflections, or detail tiers step or pop noticeably during smooth travel;
  • periodic loop seams flash because one texture or shadow lookup wraps at a different offset than the others;
  • animated parts interpenetrate mid-cycle or ignore physical timescales.

Routing boundary

This skill owns general frame-to-frame stability, AA policy, guard bands, amortised/accumulated pass contracts, and motion bisection across the whole renderer. Use $threejs-temporal-surfaces for view-aligned screen-space persistent effects (touch-history frost, wet-window rain droplets); $threejs-procedural-animation for authored transform timelines, docking, springs, and quaternions; $threejs-image-pipeline for multi-pass render-target ownership; $threejs-volumetric-clouds for cloud-specific temporal upscaling; and $threejs-visual-validation for deterministic capture harnesses and quantitative image metrics.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.