Repository navigation
Director Mode
Use the trailer toolkit's Director panel to set up a shot in the running game. Put camera keys on a timeline, place cars and give them routes, then record a take. Save your game first. Director is a debug tool and can change the running game's state.
See src/mc_engine/ui/director_panel.h and documentation/DEBUG.md in the LARecomp repository.
- Press Ctrl+F12 to toggle the panel. You can rebind it with
ui.bind.mcla_director. Move the pointer off the dock before using the shortcut to close it. - For the menu route, set
debug_menu = trueinlarecomp.tomlbefore launch. You can also start the game with--debug_menuor setREX_DEBUG_MENU=1before launch. In the pause menu, go to DEBUG > TOOLS > DIRECTOR PANEL, turn it on and return to the game. The same row turns it off. Debug menu settings - Set
mcla_director_panel = trueinlarecomp.tomlto open it at startup. If the Director is off when you open the panel, click SWITCH THE DIRECTOR ON. CLOSE closes the panel.
The dock sits at the bottom of the picture and scales with the window. SIZE cycles through Small, Normal and Tall. COLLAPSE leaves the top bar visible. Click SHOW to expand it. The footer, WHAT I DID, shows the last command and the latest message.
The timeline always has a CAMERA lane. Each car gets its own lane when it has keys. WORLD, HUD, CAPTURE, MARKS and OTHER appear when the scene has those events. Click a lane title to fold or unfold it. - LANES folds all lanes except CAMERA, and + LANES opens them again. Lower lanes can fold automatically when space is tight.
Use the arrows at the ends of the tab strip to reach tabs that are out of view.
| Tab | What you can do |
|---|---|
| CAMERA | Switch between the free, scene and game cameras. Add, update and adjust camera keys. |
| RIGS | Add preset camera setups, such as a chase or orbit camera, and adjust their sliders. |
| CARS | Pick a model, spawn it at the crosshair, move it, and edit its heading or paint. |
| PATHS | Record a drive or drop and edit waypoints. Assign a route to a car. |
| TAKE | Choose the frame rate, output format, name and time range. Render the take. |
| AGENT | See connected tools and recent commands, review proposals, or enter a command. |
| WORLD | Preview a graphics preset or key it and its label on the timeline. |
External tools can send the same Director commands as the panel. Director protocol
| Free camera | Action |
|---|---|
| W / A / S / D | Move forward / left / back / right. |
| Q / E | Move down / up. |
| Hold Shift / Ctrl | Move faster / slower. |
| Hold right mouse button over the picture and move the mouse | Look around. |
| Mouse wheel over the picture | Change flight speed. |
| Z / X | Tilt left / right. |
| R | Level the horizon and reset zoom. |
+ (the = key) / -
|
Zoom in / out. |
| Panel shortcut | Action |
|---|---|
| Space | Play or pause the scene. |
| Home | Restart the scene. |
, / .
|
Step back / forward one frame. |
| K | Add a camera key at the playhead. |
[ / ]
|
Go to the previous / next camera key. |
| Delete | Delete the selected key. |
| F | Toggle the free camera. |
| G | Toggle guides in the picture, including camera and car paths. |
| Tab | Hide or show the dock and its guides. |
| Ctrl+Z / Ctrl+Y | Undo / redo scene edits. The bar also has UNDO and REDO. |
| Esc | End the waypoint tool. |
F2, F4, F9, F10 and F11 still work. Move the pointer off the dock if it has captured the keyboard. GAME KEYS passes keys to the game over the dock and suspends the panel shortcuts while checked.
| Controller while flying | Action |
|---|---|
| Left / right stick | Move / look. |
| Right / left trigger | Rise / descend. |
| Hold L3 / R3 | Move four times faster / at quarter speed. |
| D-pad left / right | Decrease / increase flight speed one step. |
| Hold D-pad up / down | Zoom in / out. |
| Hold LB / RB | Tilt left / right. |
| Y | Level the horizon and reset zoom. |
| Back + A | Start or stop recording the camera flight. |
| Back + X | Return the free camera to the game's camera position and view. |
| Back + Y | Mark a cut in the flight recording. |
| Back + B | Add a camera key with the Director on. |
| Back + LB / RB | Go to the previous / next camera key. |
| Back + Start | Play or pause the scene. Start alone opens the game's pause menu. |
| Back + D-pad right / up | Step forward one frame / render the take. |
-
Load a save, get onto the road in free roam and open the panel. Create a plain text file named
first-shot.scenein the game'sscenesfolder. Create the folder if needed. Use this text for a 12-second scene with a clear road.scene first-shot fps 60 step 1/60 world traffic off peds off parked off police off end 12Move the pointer off the dock and press F4. Search for
mcla_scene, typefirst-shotinto its value and press Enter. Close the settings panel. -
Click the start of the timeline ruler to hold the playhead at 0. If the scene already ended, click RESTART first. On CAMERA, click FREE. Fly to frame your opening view, then click ADD KEY HERE or press K. Click the ruler around 6 seconds, fly to frame the next view, and add a second key.
-
Click SCENE on the CAMERA tab to see the keyed camera. Drag along the ruler to scrub, or move the playhead to the start and click PLAY. Drag a key to change its time. Right-click a camera key to set EASE, which controls how the move starting at that key speeds up or slows down.
-
Scrub back to about 1 second. Switch back to FREE and aim the camera along a flat stretch of road. In CARS, choose a model, leave SPAWN AT 0 checked, and click SPAWN HERE with the crosshair on the road. The car faces the direction the camera is pointing. Wait for it to finish loading.
-
In PATHS, enter a name in ROUTE, check DROP WAYPOINTS, and click the road in the picture. Start near the spawned car and drop at least two points at least a metre apart. Press Esc when done. To record a driven route instead, choose GAME on the CAMERA tab, play the scene, and name the recording at the bottom of PATHS. Click RECORD A DRIVE (PLAYER), drive a short stretch, then click STOP.
-
Scrub to when the car should start moving. With the spawned car selected in CARS, pick the route in PATHS and click USE ON SELECTED CAR. Switch to the SCENE camera and preview again. Successful edits are already saved to
first-shot.scene. -
In TAKE, choose an FPS and SINK, then set IN and OUT in seconds or click WHOLE SCENE. Set NAME if you want a different folder name. Click RENDER TAKE.
On the native renderer, open WORLD and choose a PRESET. SET NOW previews it until the next preset key, a seek or scene unload. ADD PRESET KEY saves the choice at the playhead. Set ON-SCREEN PRESET LABEL and click ADD LABEL KEY to save its visibility at the playhead. Unloading the scene restores your graphics settings.
Wait for ACTIVE PRESET to finish WARMING before filming. ENHANCED RT needs ray tracing support. In developer builds, Ctrl+F1 cycles the available named presets. Rebind it with ui.bind.mcla_director_preset. For separate takes of the same shot in each preset, see the Director protocol.
The panel saves edits to the .scene file you loaded. New routes go in routes/<name>.route beside it. Keep the scene and its routes together. To reopen a scene, set mcla_scene in F4 to its full path or a name in the working folder or its scenes subfolder. The .scene extension is optional when entering the name. Every panel action is also a line of the scene file, so scenes can be written or edited by hand: see documentation/SCENE-AUTHORING.md.
TAKE offers 24, 25, 30, 60 and 120 FPS. It defaults to 60 FPS and the png sink. The game advances one step per output frame at that rate. IN = PLAYHEAD and OUT = PLAYHEAD use the current timeline time for the range. OUT is the end of the range and must be later than IN.
| Sink | Output |
|---|---|
ffmpeg |
video.mkv with lossless FFV1 video by default. |
png |
One image per frame in frames/, starting at f000000.png. |
raw |
Uncompressed BGRA frames in video.bgra. |
none |
Frame counts and timing. Video frames are discarded. |
Both ffmpeg and png need ffmpeg. Set mcla_capture_ffmpeg to the executable's full path, or leave it as ffmpeg if the executable is on your PATH. Takes also write take.json, frames.csv and a copy of the scene as scene.scene. When audio capture is on and available, sound goes to a separate audio.wav.
Take folders go under mcla_capture_dir. By default, look in captures/<take-name> in the game's working folder. mcla_capture_out, if set, specifies the exact take folder. The TAKE tab shows LAST TAKE with its path. On Windows, click OPEN FOLDER to open it. Full cinematic settings
For renderer comparisons, a take can export reflection data, light beams or sunbeams as separate buffers. Visual comparison captures
An AI agent (or any script) can work on a scene with you through the same Director commands as the panel. The helper tools are in tools/director in the LARecomp repository. They need Python 3.10 or newer. Quick start
- Start the game with the Director listening: run
python -I -B tools/director/scene_tool.py launch --exe path/to/larecomp.exefrom the checkout, or start the game yourself with--mcla_director=true --mcla_director_info=director.json. The game listens on this PC only and writesdirector.jsonbeside the executable. Keep that file local: it holds the connection token. - Load a save and get onto the road in free roam.
- Point the agent at
tools/director, the scene authoring guide and the Director protocol, and tell it wheredirector.jsonis.
Then choose who leads:
- You lead in the panel, and the agent lints the saved scene or suggests edits.
- The agent leads: it edits the scene file, which the game reloads in place, or sends a proposal that you review on the AGENT tab.
- The agent works alone: it starts from a recipe, lints, previews stills and renders a take in the running game.
- No scene or camera control? Load a valid
.scenefile, load a save and return to the road. Look in the game log for[scene]file errors. - Crosshair cannot place a car? Aim at a loaded stretch of road. A spawn can take a few seconds.
- Car floats on a hill? A kinematic car needs height in the fourth column of its route on slopes. Use flat ground for the first shot.
- SCRUB NOT EXACT means traffic, pedestrians or AI-driven cars can differ between scrubbing and the take. Effects can also take a few frames to settle after a cut.
- For a take, use the native renderer with SDR output and frame generation off. Leave the scene file alone while the take renders.
- A failed or incomplete take has details in
take.json. For theffmpegandpngsinks, also checkffmpeg.log.
LARecomp
Settings
Game Features
Mods
Content Modding
Development
Online
Server Hosting