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

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

Open
Temeos opened this issue Nov 10, 2020 · 3 comments
Open

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

Temeos opened this issue Nov 10, 2020 · 3 comments

Comments

@Temeos
Copy link

Temeos commented Nov 10, 2020

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.

@thunderol
Copy link

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)

@SteveSmith16384
Copy link

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.

@Temeos
Copy link
Author

Temeos commented Apr 27, 2022

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.

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

3 participants