gltf-converter icon indicating copy to clipboard operation
gltf-converter copied to clipboard

Support for TGA texture

Open muliawanw opened this issue 4 years ago • 1 comments

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

muliawanw avatar Dec 25 '21 10:12 muliawanw

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.

looeee avatar Dec 25 '21 11:12 looeee