Skip to content

Look Capture Tools

Summary: Python tools in Tools/ArtSpikes/ that capture fixed game-camera views in PIE and compare them, so a look change (a material value, a cvar, an engine build) is judged as an on/off pair with a measured noise floor. frame_study.py measures a frame's value masses, which is how the LD Bible's light and value rules are checked.

Table of Contents


Why Fixed Bookmarks

A look change is often a few levels of brightness in part of the frame. Wind, AI and texture streaming move the frame by about as much between two shots, so a single before/after can't tell a change from noise. A bookmark fixes the camera (the game camera's pitch, yaw and field of view at a set distance from a focus point), and every run repeats its first variant at the end. The difference between that repeat and the first shot is the noise floor that a change has to clear.


How a Capture Runs

capture.py <run> --only <bookmarks> --variants off= "on=<console commands>"
   │
   ├─ load the host map (rooms: a dark host built on first use in /Game/Developers; lab: the Surface Lab)
   ├─ start PIE, stream the rooms as level instances, stream each bookmark's lighting level
   ├─ clear enemies, run the bookmark's setup (player and elite placement, a Showcase scenario)
   ├─ slow time, warm up a discarded view (texture streaming)
   └─ per variant: run its commands in the player's console, take the view
        → Saved/SurfaceLab/ArtSpikes/<run>/<bookmark>__<variant>.png (+ the first variant again as <variant>2)
Tool Job
capture.py The capture run above
bookmarks.json The views: rooms (forest and factory rooms under their Domain's light) and lab (the Surface Lab Showcase)
grid.py, flip.py Labelled grids, in-place flip videos and 100% crops of a run
compare.py Side-by-side sheets with difference images and a summary (runs inside Blender for numpy)
clip.py A short fight clip per variant
frame_study.py Value masses and their shares, contrast, colour in light and shade, warm/cool split, per frame
pie.py, Tools/Harness/mcp.py PIE control and calls to the editor's MCP endpoint

Common Jobs

Job How
A cvar on and off --variants off= "on=r.Some.CVar 1"
A material value on and off A variant runs py exec(open(r'<file>').read()) in the player's console; the file sets the instance value with MaterialEditingLibrary and calls update_material_instance. Set it back and save afterwards in the editor, with PIE stopped
Two engine builds One run per build with --fresh, then compare.py <run> <other_run>
A frame's light share Run frame_study.py on the capture; the LD Bible asks for about 20–30% of the frame lit and the dark at most half
A new view Add a bookmark (focus point and arm) to bookmarks.json; rooms need a fixed origin in rooms

Traps

  • The editor must be open with nothing else driving it: there is one MCP endpoint.
  • capture.py leaves PIE running. Scripts that read the editor world see nothing until PIE stops.
  • Console cvars set by a variant stay set for the whole editor session. Reset them after an A/B.
  • The Surface Lab keeps LS_Forest loaded, so it can't host other lighting; room bookmarks use the dark host map.
  • Captures go through the AgX tonemapper, which flattens values. Compare structure (shares, where light sits), not exact numbers.
  • For the Steam Deck's material branch, launch the editor with -DPCVars=r.MaterialQualityLevel=0.

Source References

Component Location
Capture tools and bookmarks Tools/ArtSpikes/ (README there)
PIE-side helpers the tools call (LoadLevelInstance, StreamLighting, QueueFixedViews) Source/ProjectEternalEditor/Private/MCP/SurfaceLabToolset*.cpp


Recent Changes

Date Change Impact
2026-10-16 Documented; room bookmarks moved from the deleted probe level to a dark host built on demand in Developers; frame_study.py added; the old art lab and probe level removed No test maps in the repo; captures work as before