claygl icon indicating copy to clipboard operation
claygl copied to clipboard

Textures not copying while converting to non-binary gltf

Open vsantosu opened this issue 7 years ago • 2 comments

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.

vsantosu avatar Jan 30 '18 17:01 vsantosu

Good point, copying images is very necessary in your case. Currently, the script only fixes the image URI. Will implement it in this weekend

pissang avatar Jan 31 '18 02:01 pissang

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

nickkraakman avatar Feb 13 '18 22:02 nickkraakman