Skip to content

Proposal: crates/forma-ue (Milestone #3: UE 5.4+ .glb & .usda asset pipeline) #87

Backlog

Description

@sea-deep

Hi, I'd like to pick up Milestone #3 (crates/forma-ue) from ROADMAP.md and contribute/forma-ue.md. Per CONTRIBUTING.md, opening this issue first to align on scope and CLI/MCP interfaces before starting a PR.

Use case & gap in forma 0.4.2

Core forma already exports clean single-LOD .glb, .step, .3mf, .stl, and .obj assets. Targeting UE 5.4+ Interchange and OpenUSD directly from Forma adds engine-specific requirements that don't belong in the core modeling binary:

Proposed design (crates/forma-ue)

Following CONTRIBUTING.md, #15, and contribute/forma-ue.md:

  • Workspace isolation: keep everything in crates/forma-ue under workspace.members, excluded from default-members, so forma-core, forma-lang, forma-cli, forma-mcp, forma-wasm, and Cargo.lock stay dependency-clean (reusing only forma-core, forma-lang, serde, and serde_json).
  • Preset profiles: support nanite (LOD0 + UV0 + collision), classic (LOD chain + lightmap UV1 + collision), and mobile profiles for single assets or split modular kit parts with a kit manifest.
  • Standalone CLI & preflight check: forma-ue export for .glb / .usda output, paired with forma-ue verify <asset.glb|asset.usda> to validate GLB/USD structure, tangent/UV1 sanity, and hull convexity.
  • Opt-in MCP server: forma-ue --mcp exposing compact export/verify tools targeting the ~250-350 o200k_base token budget noted in contribute/forma-ue.md (zero tokens added to core forma-mcp).

Related issues

Open questions before starting

  1. Should we start with standalone forma-ue (export / verify / --mcp), or also wire an optional forma ue ... subcommand / --features ue Cargo flag in forma-cli as sketched in contribute/forma-ue.md?
  2. Any preference between classic vs. nanite as the default profile for forma-ue?
  3. Does implementing UE-targeted box UVs, vertex masks, and non-boolean scene merge locally in crates/forma-ue first (and delegating to forma-core later if those primitives land in core) match how you want core vs. addon crates separated?

Activity

  1. added
    area:addons
    on Dec 4, 2026
  2. wrong-nebula commented on Dec 4, 2026

    @wrong-nebula
    Owner

    Thanks for opening this design proposal first, @sea-deep — approved to proceed!

    We just updated contribute/forma-ue.md (PR #128) with a verified UE 5.4–5.6 Interchange .glb & OpenUSD .usda specification to give you an unambiguous contract. You can also use crates/forma-print on main as the reference workspace layout (opt-in workspace.members only, excluded from default-members, 0 new external crates, 0 edits to core crates).

    Answers to your 3 questions

    1. Standalone forma-ue vs. forma ue / --features ue: Start with standalone forma-ue (0 edits to forma-core, forma-lang, forma-cli, forma-mcp, forma-wasm). We can wire optional forma ue ... dispatch or --features ue in a tiny follow-up once forma-ue is landed.
    2. Default profile: classic (universal UE 5.4–5.6 support exercising LODs + lightmap UV1 + collision + tangents out of the box), with --profile nanite and --profile mobile available.
    3. Local box UVs, vertex masks, and non-boolean merge in crates/forma-ue first? Yes — keeps core tiny and zero-bloat, unblocks UE users on Feature request: glTF vertex color (COLOR_0) export / baked directional shading #65 / Feature request: world-scale box/triplanar UV projection for tiling PBR materials #67 / Feature request: non-boolean multi-material mesh merge and parent-child glTF node hierarchy #68 immediately, and lets us promote only proven primitives into forma-core later if warranted.

    Recommended 2-PR split & key UE 5.4–5.6 gotchas to watch

    To keep reviews fast and low-risk, please split the work into 2 PRs (matching contribute/forma-ue.md §8):

    • PR 1 (Tier 1 MVP): crates/forma-ue scaffold, units / pivot (bottom-center default, corner, origin) / naming, non-boolean multi-material merge, world-scale box UV0, lightmap UV1 ([0,1]^2, non-overlapping, P = 4 texel gutter), MikkTSpace TANGENT, UBX_ + f64 3D QuickHull UCX_ collision (<= 32 hulls / <= 16 verts baseline), decimate_mesh LOD chain, .glb + .usda export, forma-ue verify, forma-ue.kit.v1 manifest, and tests.
    • PR 2 (Tier 2 + MCP): Concave V-HACD convex decomposition, procedural linear COLOR_0 / USD primvar masks, modular kit --split-parts + SOCKET_ helpers, and opt-in forma-ue --mcp (<= 350 o200k token budget test).

    Important format-contract distinctions documented in contribute/forma-ue.md §2:

    • Scale & axes: Keep .glb in right-handed Y-up metres (UE5 Interchange automatically converts glTF metres → UE cm; do not pre-scale .glb by 100×). Convert to Z-up centimetres (upAxis = "Z", metersPerUnit = 0.01) for .usda.
    • LODs & collision: Use UBX_/UCX_ naming + MikkTSpace TANGENT (never manually negate W) + split-LOD manifest in .glb; use subdivisionScheme = "none", UsdGeomSubset, variantSet "LOD" (LOD0/LOD1/...), and PhysicsCollisionAPI/PhysicsMeshCollisionAPI (purpose = "guide" siblings, not UCX_ prefixes) in .usda.
    • Linear COLOR_0: Keep COLOR_0 linear [0, 1] (never sRGB-encoded).

    Assigned to Milestone #3 and labeled area:addons. Looking forward to PR 1!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:addons

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions