Repository navigation
Backlog
Labels
area:addonsOpt-in addons (forma-server, forma-print, forma-ue, etc.)
Milestone
Description
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:
- Chaos simple collision: fast-path axis-aligned box (
UBX_) and oriented box (UCX_) colliders, convex hull generation for general parts, and optional convex decomposition for concave meshes (pipes, arches, brackets) so voids and bores stay open. - Lightmapping & shading: non-overlapping lightmap UV1 (
TEXCOORD_1/primvars:st1), MikkTSpace-compatible vertexTANGENTgeneration, and optional proceduralCOLOR_0/displayColorvertex masks (complementing Feature request: glTF vertex color (COLOR_0) export / baked directional shading #65). - LODs, modular kits & sockets: decimated LOD chains preserving LOD0 material slots, world-scale box/triplanar UV0 for tiling materials (complementing Feature request: world-scale box/triplanar UV projection for tiling PBR materials #67), non-boolean multi-material scene merging (complementing Feature request: non-boolean multi-material mesh merge and parent-child glTF node hierarchy #68), UE-friendly pivots (
BottomCenter),SM_naming, andSOCKET_attachment transforms. - Native OpenUSD (
.usda): pure-Rust ASCII.usdaexport (upAxis = "Z",metersPerUnit = 0.01,LODvariant sets,UsdPreviewSurface/UsdGeomSubset, andPhysicsCollisionAPIcolliders) without any C++ USD SDK dependencies.
Proposed design (crates/forma-ue)
Following CONTRIBUTING.md, #15, and contribute/forma-ue.md:
- Workspace isolation: keep everything in
crates/forma-ueunderworkspace.members, excluded fromdefault-members, soforma-core,forma-lang,forma-cli,forma-mcp,forma-wasm, andCargo.lockstay dependency-clean (reusing onlyforma-core,forma-lang,serde, andserde_json). - Preset profiles: support
nanite(LOD0 + UV0 + collision),classic(LOD chain + lightmap UV1 + collision), andmobileprofiles for single assets or split modular kit parts with a kit manifest. - Standalone CLI & preflight check:
forma-ue exportfor.glb/.usdaoutput, paired withforma-ue verify <asset.glb|asset.usda>to validate GLB/USD structure, tangent/UV1 sanity, and hull convexity. - Opt-in MCP server:
forma-ue --mcpexposing compact export/verify tools targeting the ~250-350o200k_basetoken budget noted incontribute/forma-ue.md(zero tokens added to coreforma-mcp).
Related issues
- Proposal: add a contributor framework (CONTRIBUTING, ROADMAP, milestones) so others can pick up features #15 /
contribute/forma-ue.md: keeps core tiny and strictly watertight while placing the UE 5.4+ asset pipeline in an opt-in workspace crate. - 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: these open requests overlap with UE workflows (
COLOR_0vertex masks, world-scale tiling box UVs, and non-boolean multi-material merge / LOD hierarchies). Scoping them insidecrates/forma-uefirst lets UE users use them right away without bloating coreForma-Pipeorforma-mcp.
Open questions before starting
- Should we start with standalone
forma-ue(export/verify/--mcp), or also wire an optionalforma ue ...subcommand /--features ueCargo flag informa-clias sketched incontribute/forma-ue.md? - Any preference between
classicvs.naniteas the default profile forforma-ue? - Does implementing UE-targeted box UVs, vertex masks, and non-boolean scene merge locally in
crates/forma-uefirst (and delegating toforma-corelater if those primitives land in core) match how you want core vs. addon crates separated?
Metadata
Metadata
Assignees
Labels
area:addonsOpt-in addons (forma-server, forma-print, forma-ue, etc.)
Activity
wrong-nebula commentedon Dec 4, 2026
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.usdaspecification to give you an unambiguous contract. You can also usecrates/forma-printonmainas the reference workspace layout (opt-inworkspace.membersonly, excluded fromdefault-members,0new external crates,0edits to core crates).Answers to your 3 questions
forma-uevs.forma ue/--features ue: Start with standaloneforma-ue(0edits toforma-core,forma-lang,forma-cli,forma-mcp,forma-wasm). We can wire optionalforma ue ...dispatch or--features uein a tiny follow-up onceforma-ueis landed.classic(universal UE 5.4–5.6 support exercising LODs + lightmap UV1 + collision + tangents out of the box), with--profile naniteand--profile mobileavailable.crates/forma-uefirst? 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 intoforma-corelater 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):crates/forma-uescaffold,units/pivot(bottom-centerdefault,corner,origin) /naming, non-boolean multi-material merge, world-scale box UV0, lightmap UV1 ([0,1]^2, non-overlapping,P = 4texel gutter), MikkTSpaceTANGENT,UBX_+f643D QuickHullUCX_collision (<= 32hulls /<= 16verts baseline),decimate_meshLOD chain,.glb+.usdaexport,forma-ue verify,forma-ue.kit.v1manifest, and tests.COLOR_0/ USD primvar masks, modular kit--split-parts+SOCKET_helpers, and opt-informa-ue --mcp(<= 350 o200ktoken budget test).Important format-contract distinctions documented in
contribute/forma-ue.md§2:.glbin right-handed Y-up metres (UE5 Interchange automatically converts glTF metres → UE cm; do not pre-scale.glbby 100×). Convert to Z-up centimetres (upAxis = "Z",metersPerUnit = 0.01) for.usda.UBX_/UCX_naming + MikkTSpaceTANGENT(never manually negateW) + split-LOD manifest in.glb; usesubdivisionScheme = "none",UsdGeomSubset,variantSet "LOD"(LOD0/LOD1/...), andPhysicsCollisionAPI/PhysicsMeshCollisionAPI(purpose = "guide"siblings, notUCX_prefixes) in.usda.COLOR_0: KeepCOLOR_0linear[0, 1](never sRGB-encoded).Assigned to Milestone #3 and labeled
area:addons. Looking forward to PR 1!