Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Textures not included #54

Closed
FreakTheMighty opened this issue Dec 6, 2017 · 5 comments
Closed

Textures not included #54

FreakTheMighty opened this issue Dec 6, 2017 · 5 comments

Comments

@FreakTheMighty
Copy link
Contributor

I'm having issues converting an FBX with textures. Given this model: https://free3d.com/3d-model/batman70-68300.html

FBX2glTF --input ./BAC_Batman70s_rocksteady/batman70.fbx  --output /tmp/Batman

The output is

Warning: could not find a local image file for texture: file4.
Original filename: /Users/jvanderdoes/Downloads/BAC_Batman70s_rocksteady/Batman_V3_Cape_DS_1-4_D.tga
Warning: could not find a local image file for texture: file3.
Original filename: /Users/jvanderdoes/Downloads/BAC_Batman70s_rocksteady/Batman_V3_Cape_DS_1-4_D.tga
Warning: could not find a local image file for texture: file1.
Original filename: /Users/jvanderdoes/Downloads/BAC_Batman70s_rocksteady/DLC3_Batman1970_head_D.tga
Warning: could not find a local image file for texture: file2.
Original filename: /Users/jvanderdoes/Downloads/BAC_Batman70s_rocksteady/DLC3_Batman1970_leg_D.tga
Warning: could not find a local image file for texture: file5.
Original filename: /Users/jvanderdoes/Downloads/BAC_Batman70s_rocksteady/DLC3_Batman1970_torso_D.tga
Warning: Mat [Cape2]: Can't handle texture for TransparentColor; discarding.
Warning: Mat [Cape1]: Can't handle texture for TransparentColor; discarding.
Warning: animation 'Take 001' has zero channels. Skipping.
Wrote 12853 bytes of glTF to /tmp/Batman_out/Batman.gltf.
Wrote 395644 bytes of binary data to /tmp/Batman_out/buffer.bin.

What's confusing is that those are valid file paths, so I'm not sure why it is having issues finding the textures.

@FreakTheMighty
Copy link
Contributor Author

@zellski
Copy link
Contributor

zellski commented Dec 7, 2017

@FreakTheMighty -- the issue is that glTF simply doesn't allow the .tga file format. In fact, the only image files formally accepted are PNG and JPG! Luckily, if you convert the images and put the new ones in the same place, with exactly the same name except for the file extension, the converter should pick the new ones up, even with the suffix changed. This is by design, so you can recover from precisely this situation (that said, I'm not sure anybody's tested this particular feature in many moons, so if it still doesn't work, let me know).

Obviously if you have transparency in the textures you will need to use PNG for those.

The converter should probably warn on bad filetypes, huh. Yeah. I'll file an issue for that. :)

@FreakTheMighty
Copy link
Contributor Author

FreakTheMighty commented Dec 7, 2017 via email

@FreakTheMighty
Copy link
Contributor Author

I can confirm that the converted pngs were recognized (neat trick), however now I've bumped into that related #55 issue. The pngs show up in the out directory white.

@zellski
Copy link
Contributor

zellski commented Dec 7, 2017

Glad that part worked, at least! I'll close this issue out and we'll continue tracking the remaining problem(s) in #55.

@zellski zellski closed this as completed Dec 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants