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

Support for TGA texture #27

Open
muliawanw opened this issue Dec 25, 2021 · 1 comment
Open

Support for TGA texture #27

muliawanw opened this issue Dec 25, 2021 · 1 comment

Comments

@muliawanw
Copy link

Can you add support for TGA textures ? I got this error when loading FBX model with TGA textures.


Warnings
FBXLoader: TGA loader not found, creating placeholder texture for

@looeee
Copy link
Owner

looeee commented Dec 25, 2021

It might take me a while to get around to this, but it should be be an easy fix if you want to have a go yourself. You need to pass in the TGALoader to the LoadingManager (I think you can just use the DefaultLoadingManager):

// add handler for TGA textures
manager.addHandler( /\.tga$/i, new TGALoader() );

You can also try using FBX2GLTF. I'm not sure whether it supports TGA textures.

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