claygl
claygl copied to clipboard
Textures not copying while converting to non-binary gltf
While doing PR I found out that when textures are matched and the URI is changed in the non-binary GLTF, the images are not moved to the output directory.
Example: fbx2gltf.py model.fbx -o ./subdir/model.gltf
Here, all images in the local directory will stay in the local directory and not copy to ./subdir along the gltf file, which breaks the URI of the generated gltf file.
Good point, copying images is very necessary in your case. Currently, the script only fixes the image URI. Will implement it in this weekend
This problem does not only occur with the -o
flag, but also with the -b
flag, or when using a .zip file (with an FBX and textures inside) as input.
Created an issue here: https://github.com/pissang/clay-viewer/issues/35