FERRETGame engine over Babylon.js
Ferret

Frame next to the reference, then "done"

Skill ferret-frame-check · download all skills · SKILL.md

When to use#

Always before hand-over: a new scene, a port, a changed look, a light or material change. "It builds" or "it loads" is not done: the defects are found by the person otherwise.

Steps#

  1. Fix the reference: the person's photo, the Unreal frame from the same camera (capture_parity.py, ferret-unreal-level-look), or the reference the task names. None named: ask once which.
  2. Take the Ferret frame from the same place and field of view: ferret frame compare (below) does steps 2 and 3 for a whole set of cameras; by hand: the live viewer (ferret-live-edit: camera.set, screenshot).
  3. Put them beside each other (one image, reference left, Ferret right; a sheet for several views) and look at it. Compare layout, scale, materials, colour, light, shadows, what is missing.
  4. Motion: record a film in real time (ferret-recording), take frames from it with ffmpeg and compare them to the reference; the film is the proof.
  5. Fix the differences, repeat. In the report list what still differs and why.

ferret frame compare <cameras> <reference dir>#

ferret frame compare cameras.json refs/ [--out <dir>] [--size 1280x720] [--eye 1.6] [--settle ms] [--files <dir> --level /files/<level> | --pkg <url> | --asset <url> | --scene <name>]

  • cameras.json (or a folder holding one): { "size": [w,h], "fov": 0.8, "cameras": [...] }. A camera has a name and ONE of position + target (the viewer's camera.set), ferret {x, z, yaw, pitch, y} (yaw in radians, forward = (sin yaw, 0, cos yaw); pitch in degrees, positive looks up; y the eye height, default --eye), or ue {x, y, z, yawDeg, pitch} (x mirrored, z = Unreal y, yaw = Unreal yaw - 90 degrees, height = Unreal z / 100). An optional fov in radians.
  • The reference of a camera is <name>.png|.jpg|.webp in the reference dir (scaled to the frame; a different aspect ratio is reported). The frames are rendered in the live viewer on the video card (the renderer string is read from the page and must say NVIDIA; --any-renderer goes on otherwise and the report says which renderer it was), in a window-less browser.
  • Output (--out, by default a stamped folder in the temp dir): <name>.ferret.png, <name>.sheet.png (reference | Ferret | difference), and report.json; the command prints, per camera, the mean absolute difference (0 = same, 1 = black against white) and the luminance SSIM (1 = same). Put these numbers and what you see in the sheets into the report.
  • The same camera sets of vschool_ferret (tools/parity/cameras.<set>.json, with ue places) are read as they are; the Unreal side is shot by capture-unreal*.ps1 and capture_parity.py.

Check afterwards#

Every view has its pair; the renderer was the RTX; the differences are listed.

What usually goes wrong#

  • A different focal length or height than the reference: the frame looks "off" by geometry, not by material.
  • Judging the first frame after a change: wait for streaming and the loading screen to end.
  • A viewer or a browser left running after the check: close it.

Files#