looeee / gltf-converter

Convert models from a variety of formats to GLTF
https://gltf-converter.lewy.blue/
49 stars 8 forks source link

Support for TGA texture #27

Open muliawanw opened 2 years ago

muliawanw commented 2 years ago

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 commented 2 years ago

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.