title: Three.js importing object using JSON from blender
body: <p>I am using Blender plugin to export JSON files, but for some reason I cannot export the texture of my object.</p>
  
  <p>the materials section of the JSON file looks like:</p>
  
  <pre><code>    "materials" : [ {
      "DbgColor" : 15658734,
      "DbgIndex" : 0,
      "DbgName" : "new",
      "blending" : "NormalBlending",
      "colorAmbient" : [0.6400000190734865, 0.6400000190734865, 0.6400000190734865],
      "colorDiffuse" : [0.6400000190734865, 0.6400000190734865, 0.6400000190734865],
      "colorEmissive" : [0.1, 0.1, 0.1],
      "colorSpecular" : [0.5, 0.5, 0.5],
      "depthTest" : true,
      "depthWrite" : true,
      "shading" : "Lambert",
      "specularCoef" : 50,
      "transparency" : 1.0,
      "transparent" : false,
      "vertexColors" : false
  }],
  </code></pre>
  
  <p>and the JavaScript part is :</p>
  
  <pre><code>    var loader = new THREE.JSONLoader();          
  
  loader.load( "./try.js", function(geometry,materials) {
      material = new THREE.MeshFaceMaterial( materials );
      object = new THREE.Mesh(geometry,material);
      object.scale.set(0.5,0.5,0.5);
      object.position.x=0;
      object.position.y=0;
      object.position.z=0;
  });
  
  loader.onLoadComplete=function(){ //render
  }
  </code></pre>
  
  <p>I followed this <a href="https://www.youtube.com/watch?v=cUkNOF8eORA" rel="nofollow">https://www.youtube.com/watch?v=cUkNOF8eORA</a> to create object. (not what I would do, but in this way we have the same starting point)</p>