title: Assigning materials to an OBJLoader model in three.js
body: <p>I've imported an OBJ model with the following code:</p>
  
  <pre><code>var loader = new THREE.OBJLoader();
  loader.addEventListener('load', function (geometry) {
      object = geometry.content;
      scene.add(object);
  });
  loader.load('ship.obj');
  </code></pre>
  
  <p>It works fine, but whenever I try to add a material to it, it either has no effect or the model disappears. I assumed I could do it like this:</p>
  
  <pre><code>var ship = new THREE.Mesh(object, material);
  </code></pre>
  
  <p>But that doesn't work. does anyone know of a way to do this, or if it's even possible? I've tried using OBJMTLLoader too, but it just adds complication while still not allowing me to change the material.</p>