Skip to content

About

Reusable toolkit for renderer fidelity suites: folder contract, metrics/delta CLI, and viewer

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

173 Commits

Folders and files

Repository files navigation

npm package npm downloads coverage discord chat documentation


fidelity-kit

Compare renderer output without building a comparison site.

  • 📊 PSNR Metrics per Comparison
  • 🔥 Visual Delta Images
  • 🖼️ Browsable Side-by-Side Viewer
  • ⚡ Live-Reloading Dev Server
  • 📦 Static Site or Docker Serving
  • 🎞️ Temporal Fidelity and Benchmarks

fidelity-kit turns a folder of AVIF renders into image quality metrics, visual difference images, and a browsable website. Use it for rendering fidelity suites, visual regression reviews, and side-by-side comparisons of a renderer against one or more references.

Your renderer writes images; fidelity-kit handles the comparisons and viewer. Run the viewer locally while developing, serve the results from a container, or export a static site.

Read the documentation.

Quick start

Put your renders in a results folder, then run:

npx fidelity-kit dev results

Open the URL printed by the command (usually http://localhost:3000). dev processes stale images, watches for new or changed renders, and reloads the viewer. See the working example for a complete suite.

A suite is a results directory with a fidelity.json and one image per renderer under each scene and output:

results/
  fidelity.json
  materials/brushed-metal/beauty/reference.avif
  materials/brushed-metal/beauty/my-renderer.avif
{
  "title": "My Renderer Comparisons",
  "renderers": [
    { "id": "reference", "label": "Reference", "reference": true },
    { "id": "my-renderer", "label": "My Renderer" }
  ]
}

See it in action

Material Fidelity uses fidelity-kit to compare renderer output side by side, with visual deltas and PSNR metrics.

Material Fidelity comparison site showing renderer images, visual deltas, and PSNR metrics

Learn more

Releases

See RELEASING.md for how releases are published and GitHub Releases for changes.

Contribution

See the Contributing Guide.

License

MIT

Author

Ben Houston, Sponsored by Land of Assets.

About

Reusable toolkit for renderer fidelity suites: folder contract, metrics/delta CLI, and viewer

Topics

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages