--- pretty_name: GameCrafter Rooftop Parkour v3 size_categories: - 100K_s`. - **Round 1** uses `run seed = scene × 100 + 7` with a fixed appearance per scene: 01 golden, 02 autumn, 03 default, 04 snow, 05 default, 06 overcast, 07 default, 08 golden, 09 default, 10 default. - **Rounds 2–6** use `run seed = scene × 1000 + round × 17` and rotate through all 7 appearances. Every run uses new course seeds. `summary_parkour_v3.csv` lists every run with its round, appearance, clouds, character, coins, alignment and move and event counts. ## Appearances | Appearance | Runs | Hours | What changes | |---|---|---|---| | `default` | 13 | 1.08 h | the v3 look: lower warm sun, clouds where the scene has a sky atmosphere | | `golden` | 9 | 0.75 h | very low warm sun, long shadows, windows partly lit | | `autumn` | 9 | 0.75 h | warm autumn colour grade | | `snow` | 8 | 0.67 h | snow on up-facing surfaces, cold grade | | `palette` | 8 | 0.67 h | random hue / saturation / brightness per semantic class | | `overcast` | 7 | 0.58 h | dim diffuse light, denser fog, low cloud layer where the scene has a sky atmosphere | | `night` | 6 | 0.50 h | moonlight and lit windows; exposure calibrated per scene | Each run's full appearance parameters are in `index/capture_result.json` under `appearance`: sun angles, intensities, fog, white balance, and the cloud layer altitude and height. **Render fallbacks.** If Unreal hits a GPU device-lost at startup, the capture is retried with lighter settings. 7 runs needed this: - 6 runs were rendered without supersampling (`-ParkourSSAA=1`); everything else is the v3 look: - `01/pk3_night_s1034` - `03/pk3_default_s3068` - `04/pk3_default_s4051` - `09/pk3_default_s907` - `09/pk3_snow_s9034` - `10/pk3_golden_s10085` - `06/pk3_overcast_s6051` also fell back to the v2 post settings: no clouds, no local exposure or Lumen boost, and the flat v2 coin colour. The v3 box materials are still used. The engine flags of every run are in `index/render_args.json`. The first run, `01/pk3_golden_s107`, has no such file; it was captured with the default settings on its first attempt. ## Per-frame contents Each frame is one WebDataset sample inside a tar shard. The sample key is the 6-digit frame index within its run. | File in tar | Content | |---|---| | `{frame}.jpg` | RGB from Unreal, 1280×704, JPEG q85 | | `{frame}.whitebox.jpg` | Whitebox control frame from `pk`, 1280×704, JPEG q95 | | `{frame}.ids.png` | Semantic id map from Unreal, single-channel uint8, lossless, pixel-aligned | | `{frame}.json` | Per-frame metadata from the capture: `episode`, `step`, `move`, camera pose, `world_to_view`, `projection`, `world_to_clip`, `fov_x_deg`, `lane`, `coins`, `appearance`, `label_invalid_pixels` | ### Semantic classes | id | class | pixel share | |---|---|---| | 0 | sky | 11.3% | | 1 | ground (street level far below) | 1.7% | | 2 | roof surface (walkable tops) | 39.8% | | 3 | building / facade / window / parapet | 39.5% | | 6 | obstacle / prop | 3.1% | | 7 | coin (new) | 0.85% | | 8 | falling rock / debris (new) | 0.14% | | 10 | player body | 3.6% | The pixel shares were measured on 480 frames spread over all runs. ### Index files per run | File | Content | |---|---| | `frames.jsonl` | One line per frame. Fields: `episode`, `step` (48 Hz simulation step), `episode_start`, `episode_time_s`, `move`, `move_phase`, `speed_cm_s`, `feet_world_cm`, `body_pitch_yaw_roll`, `camera_world_cm`, `camera_pitch_yaw_roll`, `fov_x_deg`, `world_to_clip` (row-major, world row vectors), `action`, `mouse_deg`, `lane`, `coins` | | `actions.npy` | `(N, 7)` uint8 `[w, a, s, d, jump, crouch, sprint]`, the keys held during the 3 simulation steps that end at the frame. A / D are held during the first half of a lane change | | `mouse.npy` | `(N, 2)` float32 `[yaw_delta_deg, pitch_delta_deg]` since the previous frame (0 on the first frame of an episode) | | `lane.npy` | `(N,)` float32 lateral lane position: −1 left, 0 middle, +1 right, fractional during a change (new) | | `coins.npy` | `(N,)` int32 coins collected so far in the episode (new) | | `actions_block_0.25s.npy` | `(N/4, 7)` uint8, keys OR-ed over 4-frame blocks | | `episodes.npy` | `(N,)` int32 episode index | | `joints_world.npy` | `(N, 22, 3)` float32 joints of the capsule body in world cm (names in the episode files) | | `clips_81.json` | 81-frame clips (`start`, `end`, `episode`, frame count per move), stride 80, never crossing an episode | | `episodes/ep_XXX.json` | The `pk` episode files: course, moving objects and the 48 Hz state table (see below) | | `meta.json` | Run statistics: appearance, character, move, obstacle and event counts, speed, eye height, alignment | | `capture_result.json` | Capture settings, appearance parameters and counts | | `whitebox_render.json` | Whitebox render time and alignment check (mean and minimum agreement, IoU per class) | | `render_args.json` | Engine flags and attempts of the capture (see render fallbacks) | ### Episode files Each `ep_XXX.json` (format string `pk_episode_v3`) holds one course and its motion. **Static course** - `prims`: one list per primitive, `[shape, cx, cy, cz, sx, sy, sz, pitch, yaw, roll, class, mat]`. - `shape` is 0 for a unit box, 1 for a Z-axis cylinder and 2 for a sphere. - Units are cm, and the rotation is an Unreal rotator in degrees. - `class` is the semantic id, and `mat` indexes `mats`, the material role names (v3 adds `gold` and `rock`). **Moving objects** - `dyn`: one entry per moving primitive, `{"i": prim index, "k": [[step, cx, cy, cz, pitch, yaw, roll, sx, sy, sz], ...], "spin": deg per step added to yaw, "v": [first visible step, first hidden step or -1]}`. - Between key frames, every component is interpolated linearly. Before the first key and after the last key, the end key holds. - `pk.dynamics.dyn_prims_at(prims, dyn, step)` evaluates them, and the Unreal player uses the same rule. **State table** The state table is sampled at `sim_hz` = 48 and has `steps` rows: - `feet` `(steps, 3)`; - `rot` `(steps, 3)`; - `cam` `(steps, 7)`: `x, y, z, pitch, yaw, roll, fov`; - `joints` `(steps, 22, 3)`; - `move` (index into `move_names`), `phase`, `speed`, `actions` `(steps, 7)`; - `lane` `(steps,)`, the lateral lane offset; - `score` `(steps,)`, the coins collected so far. **Course info and events** - `segments`: the move timeline, with the start and end lanes of each segment. - `obstacles`: the obstacles placed. - `coins`: the coin positions. - `events`: the course events. Each has a `type`, its segment index `seg`, the start time `t` of that segment in seconds, and type-specific fields: the lanes involved, the side, and which branch of a fork was taken. - `dyn_events`: the resolved moving-object events, with the simulation `step` of the impact or collapse (`rock_impact`, `tower_fall`, `floor_collapse`) and the coin total per episode. - `body`: the character model and scale. ## Moves and behaviour | Move | Share of frames | Move | Share of frames | |---|---|---|---| | run | 52.4% | lane_right | 2.7% | | balance | 7.2% | stand | 2.7% | | turn | 5.9% | vault | 2.6% | | gap_jump | 4.3% | bridge | 2.3% | | climb | 4.0% | land | 2.1% | | slide | 3.0% | long_jump | 1.5% | | wall_run | 2.9% | drop | 1.4% | | lane_left | 2.8% | look_around | 1.3% | | | | safety_roll | 1.0% | **Obstacles built:** - lane barrier 844, fallen rocks 791; - balance plank 233, balance beam 137; - fork plank 232, collapse bridge 216; - vault: low wall 139, AC unit 137, ledge 133, crates 127; - slide: sign 119, duct 113, beam 112, pipe 104; - ramps 184, stairs 146. Mean running speed is 544 cm/s. **Characters.** Each run uses UE Manny (32 runs) or Quinn (28 runs) at a random scale of 0.92–1.08 with a random material variant. Arms, hands and sometimes legs are visible in the RGB. ## Repository layout ``` data///frames-000000.tar frames 0–1599 of the run (WebDataset shard) data///frames-001600.tar frames 1600–3199 data///frames-003200.tar frames 3200–4799 data///index/ frames.jsonl, actions.npy, mouse.npy, lane.npy, coins.npy, actions_block_0.25s.npy, episodes.npy, joints_world.npy, clips_81.json, meta.json, capture_result.json, whitebox_render.json, render_args.json, episodes/ep_XXX.json summary_parkour_v3.csv / .json per-run statistics and totals thumbs/ one thumbnail per run (RGB | whitebox | semantic) previews/ preview videos (see above) code/pk/ engine-free course generator, events, motion, capsule rig and whitebox renderer code/ue_capture/ Unreal capture player (C++), material builder v3, style tables, run scripts code/post/ indexing / export, preview and event-clip scripts ``` ## Loading a clip ```python import io, json, tarfile import numpy as np from PIL import Image from huggingface_hub import hf_hub_download REPO = "teawhite/GameCrafter-Parkour-v3" scene, run = "05_Japanese_Spring_Sanctuary", "pk3_default_s507" get = lambda p: hf_hub_download(REPO, f"data/{scene}/{run}/{p}", repo_type="dataset") clips = json.load(open(get("index/clips_81.json"))) actions = np.load(get("index/actions.npy")); mouse = np.load(get("index/mouse.npy")) lane = np.load(get("index/lane.npy")); coins = np.load(get("index/coins.npy")) c = clips[10]; s, e = c["start"], c["end"] # 81 frames inside one episode def frames(lo, hi): # read frames [lo, hi) from the 1,600-frame shards out = {} for shard in range(lo // 1600 * 1600, hi, 1600): with tarfile.open(get(f"frames-{shard:06d}.tar")) as tf: for m in tf: key, ext = m.name.split(".", 1) if lo <= int(key) < hi: out.setdefault(int(key), {})[ext] = tf.extractfile(m).read() return [out[i] for i in range(lo, hi)] clip = frames(s, e) rgb = np.stack([np.asarray(Image.open(io.BytesIO(f["jpg"]))) for f in clip]) # (81,704,1280,3) ctrl = np.stack([np.asarray(Image.open(io.BytesIO(f["whitebox.jpg"]))) for f in clip]) # (81,704,1280,3) ids = np.stack([np.asarray(Image.open(io.BytesIO(f["ids.png"]))) for f in clip]) # (81,704,1280) uint8 keys, look = actions[s:e], mouse[s:e] # (81,7), (81,2) ``` Run names are listed in `summary_parkour_v3.csv`. ## Re-rendering the whitebox, or making new worlds without Unreal `code/pk` needs `numpy`, `pillow` and `moderngl`. To re-render any frame of the dataset from its episode file, including the moving objects: ```python import json, sys from huggingface_hub import snapshot_download scene, run = "05_Japanese_Spring_Sanctuary", "pk3_default_s507" root = snapshot_download("teawhite/GameCrafter-Parkour-v3", repo_type="dataset", allow_patterns=["code/*", f"data/{scene}/{run}/index/*"]) sys.path.insert(0, f"{root}/code") from pk import episode as E from pk.motion import joints_world from pk.rig import capsules_world from pk.dynamics import dyn_prims_at from pk.render import WhiteboxRenderer idx = f"{root}/data/{scene}/{run}/index" frames = [json.loads(l) for l in open(f"{idx}/frames.jsonl")] r = WhiteboxRenderer(1280, 704) # backend="egl" on a headless Linux GPU machine f = frames[1000] J = E.load(f"{idx}/episodes/ep_{f['episode']:03d}.json") prims = [(p[0], p[1:4], p[4:7], p[7:10], p[10], p[11]) for p in J["prims"]] r.set_scene(prims, [d["i"] for d in J["dyn"]]) # moving primitives are drawn per frame k = f["step"] caps = capsules_world(joints_world(J, k), J["body"]["scale"]) dyn = dyn_prims_at(prims, J["dyn"], k) img = r.render(J["cam"][k], caps, dyn=dyn) # (704,1280,3) uint8: the whitebox of frame 1000 ids = r.render(J["cam"][k], caps, mode="ids", dyn=dyn) # semantic ids rendered by pk ``` To generate brand-new courses, with lanes, coins and events, and their control video, run this from `code/`: ``` python -m pk.make_control_video --seed 123 --episodes 3 --style mediterranean --out ctrl --mp4 ``` It writes: - the whitebox frames at 16 fps; - the episode files, which hold the keys and camera that drive the world model; - an mp4. New obstacle, event or building types only need `box()` / `prim()` calls in `world.py` / `dress.py`, plus key frames in `dynamics.py` if they move. The renderer and the Unreal player read any primitive list. ## Capture details - Unreal Engine 5.8 with a fixed-timestep simulation at 48 Hz, keeping every 3rd step. The 16 fps of game time therefore do not depend on wall-clock speed. - Each run waits for shader and asset compilation to go idle, and the label and whitebox passes are warmed up before the first saved frame. Texture streaming is off, and anisotropic filtering is 16×. - The set was captured overnight next to another Unreal capture on the same GPU. A capture took about 15 minutes per run. - Night exposure is solved per scene from two probe captures. Scene 10 gets +1.2 EV for daylight appearances. ## Known limitations - **No backing up.** S is never pressed. A and D are only used for lane changes; turning comes from the mouse. - **Rooftops only.** The player never goes down to street level. - **Simplified body in the whitebox.** The capsule body is thicker and simpler than the RGB mannequin. Its class has a low IoU between whitebox and RGB, but the joints line up. - **Procedural architecture.** Buildings are assembled from boxes, cylinders and spheres. There is no vegetation, no vehicles and no other people. - **Texture-level detail is RGB-only, as intended.** This includes bricks, stains, lit windows, clouds, coin relief and rock texture. Small UE-only effects such as normal maps and soft shadows are not in the whitebox. The impact camera shake is part of the camera pose, so both have it. - **Render fallbacks.** 7 runs use lighter render settings after a GPU device-lost (listed above).