FBX2glTF icon indicating copy to clipboard operation
FBX2glTF copied to clipboard

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

Open Temeos opened this issue 3 years ago • 3 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.

Temeos avatar Nov 10 '20 15:11 Temeos

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)

thunderol avatar Mar 18 '21 21:03 thunderol

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.

SteveSmith16384 avatar Apr 27 '22 13:04 SteveSmith16384

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.

Temeos avatar Apr 27 '22 14:04 Temeos