feat: add image-blast-export skill (usdz, stl, fbx)#3
Open
mvanhorn wants to merge 1 commit into
Open
Conversation
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.
Summary
A new
image-blast-exportskill converts generated.glbobjects to USDZ (Apple AR / Vision Pro), STL (3D printing), and optionally FBX (Unity / Unreal, behind a--via blenderflag).Why this matters
The README markets image-blaster as embeddable in Unity, Unreal, Godot, Blender, Three.js, and Electron. Today the per-object output is
.glband.objonly. That covers Three.js and Godot but not Unity/Unreal (which want FBX), not Vision Pro / AR Quick Look (which wants USDZ), and not 3D printing (which wants STL). This skill closes that gap with a pure-JS path for USDZ + STL and an opt-in path for FBX.Demo
Simulated demo (HyperFrames):
The terminal scene shows the actual smoke test output: butterfly.glb (from
app/public/butterfly/) converts to a 46.1 KB USDZ and a 15.5 KB STL.Changes
.claude/skills/image-blast-export/SKILL.mdplus matchingimage-blast-export.mdagent.claude/scripts/asset-pipeline/convert-mesh.mjs-- pure-Node converter usingthree-stdlib'sGLTFLoader,USDZExporter,STLExporteragainst the local.glb--via blender: when present andblenderis on PATH, the script shells out viabpy.ops.import_scene.gltf+bpy.ops.export_scene.fbx. Without--via blenderor withoutblenderon PATH, FBX is skipped with a one-line warning (not a hard fail)threeandthree-stdlibadded to rootdevDependenciesso the script runs from the repo root (versions matchapp/package.json)N-<slug>.usdz,N-<slug>.stl, with.N-<slug>-<fmt>-request.jsonprovenance beside each.claude/settings.jsonallow-list refreshed for the new skill + scriptTesting
Smoke-tested locally against
app/public/butterfly/butterfly.glb:Result:
0-butterfly.usdz(46.1 KB) and0-butterfly.stl(15.5 KB) plus matching.0-butterfly-<fmt>-request.jsonprovenance files.node --checkpasses onconvert-mesh.mjs. FBX gracefully skips whenblenderis not on PATH.AI was used for assistance.