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#
- 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. - 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). - 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.
- 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. - 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 anameand ONE ofposition+target(the viewer'scamera.set),ferret {x, z, yaw, pitch, y}(yaw in radians, forward = (sin yaw, 0, cos yaw); pitch in degrees, positive looks up;ythe eye height, default--eye), orue {x, y, z, yawDeg, pitch}(x mirrored, z = Unreal y, yaw = Unreal yaw - 90 degrees, height = Unreal z / 100). An optionalfovin radians.- The reference of a camera is
<name>.png|.jpg|.webpin 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-renderergoes 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), andreport.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, withueplaces) are read as they are; the Unreal side is shot bycapture-unreal*.ps1andcapture_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.