title: three.js - Model showing with blank (black) texture despite material loaded
body: <p>I have a 3D model file <code>3dbaotang.obj</code> and a material file <code>3dbaotang.mtl</code>. I've loaded both of them using <code>three.js</code> OBJLoader and MTLLoader. The model has shown up, but not the material, as it's solely covered with black. Can anyone help?</p>
  
  <p>Here is my code:</p>
  
  <pre><code>var scene = new THREE.Scene();
  var camera = new THREE.PerspectiveCamera(75, window.innerWidth / 
  window.innerHeight, 0.1, 10000);
  var renderer = new THREE.WebGLRenderer({
      antialias: true
  });
  var controls = new THREE.OrbitControls(camera, renderer.domElement);
  var keyLight = new THREE.DirectionalLight('hsl(30, 100%, 75%)', 1.0);
  var fillLight = new THREE.DirectionalLight('hsl(240, 100%, 75%)', 0.75);
  var backLight = new THREE.DirectionalLight(0xffffff, 1.0);
  backLight.position.set(100, 0, -100).normalize();
  keyLight.position.set(-100, 0, 100);
  fillLight.position.set(100, 0, 100);
  
  controls.enableDamping = true;
  controls.dampingFactor = 0.25;
  controls.enableZoom = true;
  controls.update();
  
  renderer.setSize(window.innerWidth, window.innerHeight, false);
  renderer.setClearColor(new THREE.Color(0xf2f2f2), 1);
  document.body.appendChild(renderer.domElement);
  
  // LOAD MODEL
  var mtlLoader = new THREE.MTLLoader();
  mtlLoader.setResourcePath('/models/');
  mtlLoader.setPath('/models/');
  mtlLoader.load('/3dbaotang.mtl', (materials) =&gt; {
      materials.preload();
  
      var objLoader = new THREE.OBJLoader();
      objLoader.setMaterials(materials);
      objLoader.setPath('/models/');
      objLoader.load('3dbaotang.obj', (object) =&gt; {
          scene.add(object);
      });
  });
  
  camera.position.z = 200;
  
  function animate() {
      requestAnimationFrame(animate);
      renderer.render(scene, camera);
  }
  
  animate();
  </code></pre>
  
  <p>Result:
  <a href="https://i.stack.imgur.com/QYAGZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QYAGZ.png" alt="result"></a></p>