FBX2glTF icon indicating copy to clipboard operation
FBX2glTF copied to clipboard

Lost the texture after converted

Open momadacoding opened this issue 7 years ago • 2 comments

I have a fbx file, which use two different textures, one for the main surface, another for the text in the main surface When I convert my fbx file using fbx2gltf, it show warning:

PS D:\dev\tytFbx2gltf> .\FBX2glTF-windows-x64.exe .\l_box005\l_box005.FBX
Warning: could not find a local image file for texture: l_box005_01.
Original filename: D:\dev\tytFbx2gltf\l_box005\88浼氬憳_娓愬彉.png
Warning: animation 'Take 001' has zero channels. Skipping.
Wrote 7637 bytes of glTF to ./l_box005_out/l_box005.gltf.
Wrote 331856 bytes of binary data to ./l_box005_out/buffer.bin.

On texture name has chinese charactors, and it display in 88浼氬憳_娓愬彉.png, obviously the wrong encoding, and it has not copyed to the output filder, so the output .gltf file appears different from the original fbx file. the original fbx file show in MS paint3D:

converted gltf file show in https://gltf-viewer.donmccurdy.com/

this is the missing texture: 88 _

momadacoding avatar Jun 02 '18 08:06 momadacoding

Hello, thank you for your report. It looks like we're handling unicode filenames badly. I will do look into it when I get back to a Windows machine.

Would you be able to attach the .fbx file to this issue? It's not required, but it'd help!

zellski avatar Jun 04 '18 11:06 zellski

Same as https://github.com/facebookincubator/FBX2glTF/issues/108

momadacoding avatar Jun 17 '18 14:06 momadacoding