facebookincubator / FBX2glTF

A command-line tool for the conversion of 3D model assets on the FBX file format to the glTF file format.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Texture cannot be found when converting 3D models from third party

Temeos opened this issue · comments

I tried testing a runtime glTF loader in Unity by loading the glTF file, that i have created using FBX2glTF.
I downloaded the fbx file from the internet and FBX2glTF couldn't find the right path to the textures.
The fbx and the texture files were supplied seperately.
Maybe it's poissible to implement something that gets the texture file names and searches for them on a local, maybe pre-specified location?
For example the user can be required to put the textures in a "Texture"-folder at the same directory as the fbx file or something.

It would be great this funcionality. We export FBXs from Windows but we convert them to glTF from a Linux Server in an automatic process and there is no way to get the textures embeded because that path change.
I have readed in other tickets that there are some tricky funcionality (ie: paths to TGAs in the FBX that cannot convert but if there is a PNG file in the same location with the same name, the converter use it), so it could be great another simple tricky funcionality searching the not found textures in the same location the FBX is)

Can I +1 this as well. I thought I must be doing something wrong as the textures are in the same folder as the fbx, but it still says it can't find them.

Hi!
So it is a while back that i had this problem, but i remember how i fixed it. Often, the path in the fbx is the path from the creators computer, so a directory that does not exist on your system. E.g. something like C:/User/UsernameOfCreator.... If i recall correctly, you can open the fbx file with notepad or just the editor, find the directory referenze for the textures and edit them to fit your system. It is a hustle, but it will fix your problem.