gltfjsx icon indicating copy to clipboard operation
gltfjsx copied to clipboard

Add cli support (without npx)

Open MaxmaxmaximusAWS opened this issue 4 years ago • 4 comments

cant find react-three programm

this not work image

image

but if i ass npx before @react-three/gltfjsx, all works correctly

MaxmaxmaximusAWS avatar Oct 07 '20 04:10 MaxmaxmaximusAWS

that is to be expected and the nominal behavior of npm scripts, you could write them either :

"convert": "npx @react-three/gltfjsx myasset.glb"

or

"convert": "gltfjsx myasset.glb"

to know the names of available binaries, look in you ./node_modules/.bin/ folder; package and binary usually have the same name but not always (as it is the case here).

age2pierre avatar Dec 01 '20 18:12 age2pierre

starting to think the npm namespace thing (react-three/gltfjsx) is a mistake. hard to type, serves no purpose, confusing as hell.

drcmda avatar Dec 01 '20 21:12 drcmda

Just had a similar problem. I also tried running

npx gltfjsx scene-draco.gltf  --draco --compress

directly in the terminal like in this Twitter demo. Although there is no explicit npm ERR, the output is nowhere to be found. Did I misunderstand the usage of this tool?

image image image

QuantumEPR avatar Dec 07 '20 23:12 QuantumEPR

fixed

drcmda avatar Dec 08 '20 08:12 drcmda