Method for one cinematic CGI shot in Unreal Engine 5 or Blender built by an AI agent: pick the route (engine plus asset library, or a flat-colour blockout plus a video model), keep an asset catalog, block out with the final camera, fix assets in Blender, light by roles, render an image sequence, catch single bad frames, review with four fresh critics. Tools check scene contact and scale, the asset catalog and rendered frames. Use whenever the user asks for a 3D shot, CGI, a scene in Unreal or...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Cgi Shot?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/maskaads-cgi-shot)
---
name: cgi-shot
description: "Method for one cinematic CGI shot in Unreal Engine 5 or Blender built by an AI agent: pick the route (engine plus asset library, or a flat-colour blockout plus a video model), keep an asset catalog, block out with the final camera, fix assets in Blender, light by roles, render an image sequence, catch single bad frames, review with four fresh critics. Tools check scene contact and scale, the asset catalog and rendered frames. Use whenever the user asks for a 3D shot, CGI, a scene in Unreal or Blender, or a video-model shot guided by a 3D layout."
---
# cgi-shot.md
Read this whole file before you start, then follow it. It is for one cinematic CGI shot, or a few shots of the same place, built by an AI agent in Unreal Engine 5 or Blender: a ship in a storm, a car on a mountain road, a creature in a forest. It comes from a production method for photoreal 3D explainers and from the Promptosaur test "Claude Fable 5.2 with $1,440 for 20 seconds of CGI".
The rule behind everything here: **a studio does not model a hero ship for one shot.** It keeps an asset library and spends its time on camera, light and timing. An agent that builds every plank from formulas hits a ceiling that more thinking time does not lift.
If the request and this file disagree, the request wins. Write every such case into `plan.md`.
Tools in `tools/` (use them when they are next to this file):
| Tool | Use it to |
|---|---|
| `library_check.py` | check `library.json`, find assets without a record and records without a file, write `LIBRARY.md` |
| `blender_check.py` | before light and render: floating, sunk and intersecting objects, unit mistakes, unapplied scale, empty materials |
| `frame_glitch.py` | after render: single bad frames (water that jumps to another wave set, a popping cloud, a one-frame flash) and a re-render list |
| `review.py` | contact sheets per shot, empty / dark / burned frames, final file check |
| `watchdog.py` | restart a render that stopped writing frames |
Deeper notes live in `reference/`: `unreal-pitfalls.md` (about 70 traps with the exact setting that fixes each), `render.md`, `light.md`, `camera.md`, `placement.md`, `library.md`, `review.md`. Read the one for the step you are on, all of it, before that step.
## 0. Pick the route first
| You need | Route | Cost in the test |
|---|---|---|
| one shot that has to look filmed | **Draft + video model**: a flat-colour blockout with the exact camera move, then one generation in a video model that follows it (section 8) | about $23 and under an hour |
| a place you will film again: many shots, new angles tomorrow, the same ship in every shot | **Engine + asset library + this file** (sections 1 to 7) | a real scene you can open and edit |
| everything from code, no assets allowed | expect a ship that reads as a ship made of code; set effort to high, more does not buy realism | high: about $25, 1 hour; max: about $134, 2 h 10 min |
Write the route and the reason into `plan.md`.
## 1. Order of work (engine route)
1. **Brief to plan.** Write `plan.md`: what the viewer must understand or feel in one sentence; the shot list with seconds; for every shot what moves, what touches what, the events (a lightning strike, a lamp turning on) with their second, the light, the background, the sound. Fps: 24 unless the edit says otherwise, one number for the whole project.
2. **Library first.** Read `LIBRARY.md`. Every object that exists in the library is placed, never modelled. Missing hero objects are bought or downloaded from a source whose license allows the use (section 3), recorded in `library.json`, then placed. Read the pack's own documentation and open its demo level before using it.
3. **Blockout.** Gray boxes for every big object at real size, the terrain or water plane, and the final camera move on top. Render a gray preview at low quality with frame numbers burned in. This locks timing and composition. Nothing else starts until the blockout reads at 1x speed.
4. **Assets in, fixed in Blender.** Import at real scale, apply transforms, fix pivots, materials and broken pieces. Run `blender_check.py` until it reports 0 problems. Then into the engine.
5. **Environment and light.** Sky, water, terrain, set dressing by purpose (section 4), then light by roles (section 5).
6. **Effects.** Rain, spray, smoke, dust, lightning. Bake every simulation at the delivery fps.
7. **Test render, notes, fix.** Between every two steps above: a low-quality test render, a contact sheet, and written notes in `notes.md`: what is wrong, which step it came from, what changes. Fix in the step where the defect was born, even when you found it on the render.
8. **Final render as an image sequence**, never straight to video, under the watchdog, in chunks of about 250 frames. Run `frame_glitch.py` over the frames, re-render only the listed frames, run it again.
9. **Review** by fresh eyes (section 7), fix, review again, then encode and check the file.
10. Do not ask questions. Decide, and write the decision into `plan.md`.
## 2. Blockout rules
- Real sizes in metres from the start. A brig is about 30 m long, a lighthouse 20 to 40 m, a person 1.75 m. Put one known-size object in every place.
- The camera move is final in the blockout. One continuous trajectory per shot, 2 to 4 control points, moving from the first frame to the last; acceleration and braking sit outside the frame range.
- Burn the frame number into the preview. Notes refer to frames, never to "around the middle".
- The blockout is also the guide for the video-model route (section 8): keep it, even on the engine route.
## 3. Asset library
- One record per asset in `library.json` (template in `templates/library.json`): id, path, what it is, real height in metres, units of the file and import scale, pivot, engine, license, source URL, known problems. No record, not in the shot.
- Run `library_check.py library.json --scan assets --md LIBRARY.md` after every change. The agent reads `LIBRARY.md`, so it never guesses what a file is.
- Licenses for anything published or paid: no NC (non-commercial), no ND (you will change materials and scale), no source whose terms you have not read. CC-BY needs a credit line in the description: "<title>" (<author>), <url>, CC BY 4.0.
- Copy an asset with all its dependencies and keep its paths. Move whole systems (water, sky, fog) as one unit. Never mix two versions of one pack.
- Measure a known edge after every import. A 100x size error is a cm/m mix-up, 39.4x is inches.
- Details in `reference/library.md`.
## 4. Placement and contact
- Every prop has a reason: who uses it, what it stands on. Random scatter reads as generator junk.
- Place by code: position, rotation, support (ground or another object), height from the surface under the base. Then check contact: nothing hangs or sinks more than 1 cm (`blender_check.py`, or a ray down from the lowest point in the engine).
- Penetration of visible meshes stays under 1 mm in every frame of the shot, not only on the first.
- A check that never failed proves nothing: move one prop 5 cm into the air on purpose and confirm the check catches it.
- Details in `reference/placement.md`.
## 5. Light
- Every light has a motive you can see or guess: the moon, a lamp, lightning, a window. Shadows agree with the visible lamps.
- Roles: key (form, main shadow), fill 5 to 8 times weaker than the key on the hero (2.3 to 3 stops), rim 0.5 to 1 of the key to separate the silhouette, background 1 to 2 stops below the lit side of the hero. A 2:1 fill gives the flat look that marks CG.
- A visible lamp is an emissive surface plus a real light next to it. Emissive alone lights weakly and noisily.
- Fix overexposure with light, never with exposure. Manual exposure, the same for every shot of one place. Clipping on the hero at most 0.5% of its pixels.
- Night storm: the moon or the sky gives a cold key, practicals (stern windows, lanterns, the lighthouse lamp) give warm accents, lightning is a 2 to 4 frame event that changes the key and casts shadows.
- Details in `reference/light.md`.
## 6. Camera
- Answer before the first key: what the viewer learns, the point of interest in the first and last frame, the motive of the move, the lens, the length, how the shot joins its neighbours.
- Speed in hero lengths per second: drift 0.01 to 0.03, calm 0.05 to 0.10, working 0.10 to 0.20, following a fast hero 0.25 to 0.50. A pan from a fixed point no faster than horizontal field of view / 7 degrees per second (24 mm: 10.5, 35 mm: 7.8, 50 mm: 5.7).
- The camera never passes through anything: every frame it stays outside every object's bounds by the near clip plane plus 1 cm, and outside effect streams.
- Shake only from a physical event (a wave hit, thunder): 0.1 to 0.3% of the frame, decaying over 1 to 2 s, as noise on top of the keys, from a fixed seed.
- At least three depth cues in every frame: overlap, parallax, haze, tonal separation. A foreground at one third of the hero distance gives visible parallax.
- Details in `reference/camera.md`.
## 7. Render and review
- Test before every full render with final settings: three stills (start, middle, end) at 100%, plus 2 seconds of continuous motion at the fastest moment played at 1x. A still that looks clean can flicker in motion.
- Image sequence, chunks of about 250 frames in fresh processes, under `watchdog.py`. Success means every frame of the range exists, opens and is not black. Never trust the renderer's own success flag.
- Engines draw single frames wrong: water jumps to another wave set, clouds pop, text is missing on the first frames, a texture is still compiling. Run `frame_glitch.py` on every render, re-render the listed frames only, check again.
- Unreal: before the first final render read `reference/unreal-pitfalls.md` for warm-up frames, texture streaming, reference motion blur, Ultra Dynamic Sky in Movie Render Queue, and render resume.
- Review with fresh context (a sub-agent that never saw your notes): four reviewers, one each for story, camera, picture and sound. Each gets only the frames, the contact sheets, the mp4 and its checklist from `reference/review.md`. The story reviewer first writes in one sentence what it understood without sound. Verdict per reviewer: "ship" or "return to step N, reason".
- Watch the final mp4 at 1x three times looking for jerks, popping elements, flicker, doubled fast parts and fireflies.
## 8. Draft + video model route
1. Build or take the code version of the shot, then strip it: no rain, no lightning, no textures, no post effects. Every object in one flat, distinct colour (brown ship, red lighthouse, gray sky, dark blue sea, black cliffs). Keep the exact camera move and the timing.
2. Render it at the target length and resolution. That clip is the guide.
3. Give the guide to a video model that accepts a video reference, with a prompt in this form (`templates/video-model-prompt.txt`):
> The attached video is a layout guide. Follow its camera move, framing and timing exactly. Colours are labels, not looks: brown = a wooden two-mast sailing ship with lit stern windows; red = a stone lighthouse on a cliff, lamp off until the lightning; gray = a storm sky at night; dark blue = a rough sea with foam on the crests; black = wet cliffs. Add heavy rain and one lightning strike at second 11 that lights the cliff. Photoreal, night, no text, no cuts.
4. One generation, look at it, regenerate only if the camera left the guide.
5. The trade-off: the result is a video file. A new angle or one fixed detail means a new generation, and the ship can change between shots. For one shot this route wins; for a 1 to 2 minute film with many shots a real scene starts paying for itself.
## 9. Self-check before you say you are done
1. Does every object that exists in the library come from it, with a record and a license that allows the use?
2. Did `blender_check.py` report 0 problems on the final scene?
3. Does the gray blockout preview read at 1x, with the final camera move?
4. Is every light motivated, fill 2.3 to 3 stops under the key, hero clipping at most 0.5%?
5. Does the camera stay outside every object and effect stream in every frame?
6. Did `frame_glitch.py` report 0 bad frames on the final sequence?
7. Did four fresh reviewers each say "ship"?
8. Does the final file have the right fps and frame count (ffprobe), sound, and no black or checkerboard frames?
## 10. Fix sentences
Each one fixed a broken result in the test or in the production method behind this file. Add a line every time something breaks and a sentence fixes it.
1. Rain is particles with depth and motion blur, never one sheet over the whole frame. *(low effort run)*
2. Light the hull and the hero from a motivated source; a hero that is almost black is lost. *(low effort run)*
3. Ropes and rigging thinner than 2 pixels flicker; give them real thickness or leave them out of wide shots. *(low effort run)*
4. Everything casts shadows from the key light; without shadows objects float and the scale is lost. *(low effort run)*
5. Windows are lit rooms behind glass with frames and variation, never a flat orange grid. *(high effort run)*
6. Sails are cloth with curvature, sag and wind; flat planes hang like boards. Take them from the asset or simulate them. *(high effort run)*
7. Render an image sequence and check every frame for single-frame glitches; the engine's ocean showed the wrong set of waves in random frames. *(Ultracode run)*
8. Start and end every shot mid-motion: keys on the first and last frame give a stop-and-go in every shot.
9. With more than one temporal sample in Unreal turn on reference motion blur, or a fast object renders as four copies and the background flickers.
10. Count only frames newer than the launch and clear the test folder first; an old frame was accepted as the new one twice.
11. Set Unreal light colours with named r, g, b arguments: the positional form reads as b, g, r and every warm lamp turned blue.
12. Bake simulations at the delivery frame rate and never resample a contact bake: 25 to 24 fps pushed the feet through the floor.
13. After every material build check that it compiled (texture samples above 0); a failed material renders as a gray grid.