Making an MMDX stage

The folder and stage.json, model parts, material rules, lights, screens, bundled packs, sockets, cameras, variants and cues, plus the distribution zip shape and tools/stage_check.

An MMDX stage is a folder MMDX12 recognises as one venue in the library. It holds a stage.json plus its model parts (glTF / GLB, or PMX), and carries its own lighting rig, LED screens, cameras, lighting variants and light-show cues. This page summarises the full spec; the exact field tables and examples live in stage_format.md in the repository.

The folder and stage.json

my_stage/
  stage.json          required
  parts/room.glb      model parts, referenced relatively
  textures/led.png
  packs/floor/        optional: MMDX effect packs shipped with the stage
  preview.jpg         optional: preview image

stage.json needs "format": "mmdx-stage" and "formatVersion": 1. The stage id (required, unique in the library; the gallery installs into a folder of that name) must match [a-z0-9_-]{1,64}. name is required and may be a plain string or a localized object ({"ko": .., "en": ..}). version is dotted numbers like 1.2.0.

{
  "format": "mmdx-stage",
  "formatVersion": 1,
  "id": "my_stage",
  "version": "1.0.0",
  "name": {"ko": "내 스테이지", "en": "My stage"},
  "models": [{"file": "parts/room.glb", "role": "floor"}]
}

The library detects stages by content, never by folder name. A stage.json that does not parse, or names another format, leaves the folder scanned as an ordinary model folder.

Parts (models)

models lists at least one part. file is relative to the stage folder — no .., no absolute paths. role is "main" (default), "floor" (the surface players stand on and the stage aligns by) or "props". A part that fails to load stays out with a warning; the rest of the stage still loads.

Material rules (materials)

"materials": [
  {"match": "cove", "baseColor": [0.82, 0.82, 0.85], "roughness": 0.45, "receiveShadow": true},
  {"match": "led_*", "screen": "main", "castShadow": false}
]

match is a material name or a * / ? wildcard (ASCII case-insensitive). The first matching rule wins per field. Fields: baseColor, roughness, metallic, emissive, emissiveStrength, transmission, ior, alpha, mirror (a true planar mirror), screen (this material is that screen’s surface), castShadow and receiveShadow. A rule that matches no loaded material is a stage_check error.

Lights (lights)

lights is the same schema as the studio project’s lights: kind (sun / point / spot / ambient / area / fog_volume) and name are required, and values carries position, aim, direction, color, intensity, range, coneOuter, coneInner and friends. At most one sun and one ambient. A stage with lights gains a “스테이지 조명” (stage lighting) entry in play mode’s lighting picker, and adding the stage in the Studio replaces the scene lights with its rig.

Screens (screens)

A screen is defined by materials (the names / globs of the surfaces it draws on) and source (none / image / video / camera / program). image and video take a file, camera takes a camera name. width, height, brightness and emitLight set the LED pixel grid, its brightness and whether it lights the scene.

Bundled packs (packs)

Effect packs shipped with the stage. folder must hold a pack.json and role decides what the pack attaches to: surface needs materials globs, world needs an existing socket, screen needs an existing screen id. params sets initial parameter values.

Sockets and cameras

  • sockets — named transforms for packs, cameras and props. Attach with node (a glTF node / PMX bone) or give an explicit position / rotation / scale.
  • cameras — named static cameras (position, target, fov). The Studio’s stage-camera import turns each into a studio camera; a screen with source: "camera" names one of them.

Params, variants and cues

params are the values a user can change (float, int, bool, color, enum), grouped with groups. variants are named sets of param values (think “Day” / “Night”); defaultVariant picks the initial one. bindings connect a param to a light / material / screen / environment field (lights.<name>.intensity, …). cues are 30 fps keyed tracks of params — the stage’s own light show; a project track keying the same param overrides it.

Checking and the distribution zip

A stage is distributed as a zip of one stage folder, with stage.json at the archive root (or inside a single top folder). Leave QA renders (cam_*.jpg, cue_*.jpg) and authoring files (*.blend, *.py, …) out of the zip.

build/bin/stage_check path/to/my_stage     # exits non-zero on errors

stage_check validates everything checkable from the JSON alone (ids, duplicate names, references, binding types, cue shapes) plus the file side: declared files exist, every part loads, material globs match a loaded material, previews exist, and a size budget report. Run it before publishing.

The official gallery (/stages/) lists each stage in index.json: id, version, name / description, preview, download (an absolute URL), size and sha256. The app’s Gallery tab reads that index, verifies the zip’s size and SHA-256, and installs it into <exe>/stages/<id>/. A background rescan then makes it appear in the library without a restart.

Browse the stage gallery