pmndrs / gltfjsx

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

error converting model (possible bug) #118

Closed jasan-s closed 2 years ago

jasan-s commented 2 years ago

I download the Adam Head 3d model .gltf

I then used the following command npx gltfjsx adamHead.gltf -T draco to generate .js and transformed .glb file

The glb seems fine(viewed in blender), the issue seems with the generated JS.

The issue: some of the models parts are not correctly positioned. (See attached image)

Screen Shot 2021-12-03 at 2 07 53 PM

am i doing something incorrectly?

drcmda commented 2 years ago

try a higher precision, it cuts floats off at 2 digits by default.

jasan-s commented 2 years ago

Thanks @drcmda that fixed it :)