I am trying to load the official siggraph pixel model in three js, I load the obj and mtl file but the texture are not mapped correctly. I was wondering if I could get some direction on what the possible issue could be. I get the textures, but they are not correctly mapped, since this is a model I downloaded from https://s2019.siggraph.org/3d-model-portal/ , I am inclined to believe that the texture coordinates are not the problem.
Here is my code :-
var manager = new THREE.LoadingManager();
manager.addHandler( /\.dds$/i, new THREE.TGALoader() );
var mtlload = new THREE.MTLLoader( manager )
.setPath( '/obj/Pixel/Pixel/' )
.setMaterialOptions(invertTrProperty = true)
.load( 'Pixel2.mtl', function ( materials ) {
materials.preload();
console.log(materials)
new THREE.OBJLoader( manager )
.setMaterials( materials )
.setPath( '/obj/Pixel/Pixel/' )
.load( 'Pixel2.obj', function ( object ) {
object.scale.set(0.5, 0.5, 0.5);
object.position.y = 0.0;
scene.add( object );
}, onProgress, onError );
} );