pmndrs / gltfjsx

🎮 Turns GLTFs into JSX components
https://gltf.pmnd.rs
MIT License
4.73k stars 312 forks source link

[BUG] --root works not correctly #43

Closed MaxmaxmaximusAWS closed 3 years ago

MaxmaxmaximusAWS commented 4 years ago
cd src/blender/export && npx @react-three/gltfjsx scene.gltf -r /models/

generate this:

image

but must this:

image

Badrpas commented 3 years ago

-r expects a directory which is served by web server so resulting GLTF-file URL is relative to provided value.

I guess you are looking for something similar to webpack's publicPath option which, to my knowledge, is not implemented in gltfjsx