# film-street-look: match the game to the film

> Blender’s grade becomes a LUT the game can use. Game and film frames are compared weather by weather.

- Type: Lab Skill (downloadable Agent Skill)
- Category: [Game creation](https://www.sandbase.ai/skills/games)
- Version: 0.1.1
- Page: https://www.sandbase.ai/skills/games/film-street-look

## Install

Download the Skill package from https://www.sandbase.ai/skills/games/film-street-look (sign-in required), unzip it into your agent's skills folder, then ask your agent to use it:

```text
/film-street-look make my baked street game match its film in every weather
```

## How it works

1. **Bake the LUT and grab film frames** Film Street Look runs after film-street-bake. blender -b street.blend -P scripts/make_lut.py -- out=app/public/assets bakes the film's AgX view transform and look into a 64-cubed LUT. Then save one film frame per lighting state from the same camera, for example ffmpeg -ss 5 -i street_night.mp4 -frames:v 1 -vf scale=1600:900 film/night.png.
2. **Capture and compare game frames** With the film-street app running, node scripts/capture.mjs http://localhost:5199/ game dusk night storm snow takes game frames at the film's framing, with HUD and player hidden. node scripts/compare.mjs film game --sheet sheet.jpg reports mean brightness, per-channel and 3x3 region differences and an exposure hint in stops. It needs Blender, Chrome and Node 18+ with sharp.
3. **Tune each state until it passes** Change the smallest thing first: the state's exposure for the overall level, the bloom triple of strength, radius and threshold for glow, and scene.lights.rigs for dark live actors at night. Repeat capture and compare. The work is done when every state reports ok, within 5 percent mean brightness, and the side-by-side sheet shows no regional differences.

## FAQ

### What does Film Street Look change in the game?

Film Street Look changes only the game's exposure, bloom, live-light rigs and the LUT; the bake stays as it is. Compositor values such as saturation and haze in manifest.look come from the film's compositor, so change them only to follow a change made in the film itself.

### Does Film Street Look need a model or an API key?

No. Film Street Look uses Blender for the LUT, Chrome to capture frames and Node with sharp to compare them, all on your own machine. It calls no SandBase model, so matching a street to its film is not billed. The sharp version is pinned in package.json.

### How close does Film Street Look get to the film?

Film Street Look targets 5 percent mean brightness per lighting state, and its Sunset Street example passes in all four states. Mean brightness is coarse, so read the sheet too: it cannot fix missing geometry, people or effects, and moving cars, snow or rain differ between any two frames.

### Why is one region still wrong after Film Street Look tuning?

A region off by more than about 20 percent in Film Street Look's 3x3 grid usually means a bake problem, not a look problem. Common causes are a black sheet that needs a flip and re-bake, a clipped lamp in the lightmap range, or a light sphere behind glass that needs adding to scene.globes.

### Why does the Film Street Look exposure hint need re-checking?

Film Street Look computes its exposure hint by inverting only the sRGB curve, while the AgX transform is not linear. Treat the hint as a starting value in stops, apply it, then capture and compare again after each change until that state reports ok on the sheet.

## Examples

- Match the film (image)
