title: Simply assign a Material to loaded .OBJ - ThreeJS
body: <p>I've been hitting myself overhead with this one for the good three hours now..
  My question is, would someone be kind enough to reorganize my example in such a way, that the object that I load comes with a color, any color</p>
  
  <pre><code>                var loader = new THREE.OBJLoader()
                  loader.load( 'learning/exported1.obj', function ( object ) 
                  {
                      object.traverse( function (child)
                      {
                          if ( child instanceof THREE.Mesh )
                          {
                              child.material.color.setHex( 0xffffff );
                          }
                      }
                      var OBJBoundingBox = new THREE.Box3().setFromObject(object);
                      OBJBoundingBox.center(object.position);
                      object.position.multiplyScalar(-1);
                      object.position.x = object.position.x;
                      object.position.y = object.position.y;
                      object.position.z = object.position.z;
                      scene.add( object );
  
                  }, onProgress, onError );
  </code></pre>
  
  <p>If I throw the traverse part away the object is loaded successfully but is a simple white color, with it, the object does not appear on my screen...</p>
  
  <pre><code>        &lt;script src="../build/three.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/loaders/OBJLoader.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/controls/OrbitControls.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/shaders/CopyShader.js"&gt;&lt;/script&gt;
      &lt;script src="js/shaders/SMAAShader.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/postprocessing/EffectComposer.js"&gt;&lt;/script&gt;
      &lt;script src="js/postprocessing/SMAAPass.js"&gt;&lt;/script&gt;
      &lt;script src="js/postprocessing/RenderPass.js"&gt;&lt;/script&gt;
      &lt;script src="js/postprocessing/MaskPass.js"&gt;&lt;/script&gt;
      &lt;script src="js/postprocessing/ShaderPass.js"&gt;&lt;/script&gt;
  
      &lt;script src="js/libs/dat.gui.min.js"&gt;&lt;/script&gt;  
  </code></pre>
  
  <p>These are my imports in case you think the problem lies in here</p>
  
  <p>Thanks so much in advance, this is a project which I'm developing independently and would love it if I can get it working!</p>