All apps/gltfjsx

gltfjsx

gltfjsx

Turns GLTF 3D models into declarative, reusable React Three Fiber JSX components.

Runs as gltfjsx|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 10 fields

Convert a .gltf or .glb model into a React component.

Opens the form; the finished command lands at your prompt, unrun
otty gui gltfjsx
Convert GLTF to JSXExample values, fixed in this page — nothing here reaches a terminal
Basic
Model file*
file
TasksEach one presets the form for one job
Convert
file
Convert to TypeScript
filetypesshadows
ParametersOnly these flags are editable in the form
Model file
path · positional 0
TypeScript definitions
boolean
--types-t
Cast and receive shadows
boolean
--shadows-s
Include metadata
Include metadata as userData.
boolean
--meta-m
Verbose output
Verbose output with names and empty groups.
boolean
--verbose-v
Prettier print width
Default 120.
integer
--printwidth-w
Fractional digits
Default 2.
integer
--precision-p
Draco binary path
path
--draco-d
Serve root directory
Directory from which the .gltf file is served.
path
--root-r
Debug output
boolean
--debug-D
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed gltfjsx against its version. A form that does not match your version is not offered.