cli: add --dump-post — raw decoded mesh + PBR volume output for external pipelines - #45
Open
fernandotonon wants to merge 1 commit into
Open
cli: add --dump-post — raw decoded mesh + PBR volume output for external pipelines#45fernandotonon wants to merge 1 commit into
fernandotonon wants to merge 1 commit into
Conversation
…nal pipelines Writes the decoded, hole-filled geometry mesh and the sparse PBR volume it would be baked from (the exact TRELLIS_DUMP_POST debug layout: i32 V,F,Mv,res; f32 verts; i32 faces; i32 coords; f32 pbr6) to a file and exits BEFORE remesh/decimate/UV/bake/GLB. Motivation: downstream DCC tools (e.g. QtMeshEditor) want to own the game-ready processing — their own weld/simplify budgets, UV unwrap and multi-channel texture baking — so the finished-GLB path does redundant work and discards the raw representation they need. This exposes the existing debug dump as a supported, documented flag. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Exposes the existing
TRELLIS_DUMP_POSTdebug dump as a supported CLI flag that writes the file and exits before remesh/decimate/UV/bake/GLB.Binary layout is exactly the
TRELLIS_DUMP_POSTone:i32 V,F,Mv,res; f32 verts[V*3]; i32 faces[F*3]; i32 coords[Mv*3]; f32 pbr6[Mv*6](pbr6 = base_color.rgb, metallic, roughness, alpha in [0,1]); geometry-only runs writeMv=0.Motivation: downstream DCC tools want to own the game-ready processing — their own weld/simplify budgets, UV unwrap, and multi-channel texture baking — so the finished-GLB path does redundant work and discards the raw representation they need. QtMeshEditor already consumes this flag for its TRELLIS.2 backend (raw dump → its native simplify + bake), which also skips the most expensive stages when only the raw generation is wanted.
Small, self-contained:
trellis_args.{h,cpp}+ one early-exit block intrellis_cli.cpp. No behavior change when the flag is absent.🤖 Generated with Claude Code