title: Export from Blender to Three js with Textures
body: <p>How can I export to Three.js with json format from Blender with Textures? If i check the checkbox "textures" my json file wont load to browser. Here is how my materials looks like with textures checkbox<code>
  "materials": [{
          "transparent": false,
          "DbgIndex": 0,
          "mapDiffuseRepeat": [1,1],
          "mapDiffuseAnisotropy": 1,
          "specularCoef": 50,
          "colorEmissive": [0,0,0],
          "colorDiffuse": [0.64,0.64,0.64],
          "wireframe": false,
          "visible": true,
          "blending": "NormalBlending",
          "DbgColor": 15658734,
          "mapDiffuse": "w.jpg",
          "DbgName": "Material.005",
          "opacity": 1,
          "depthWrite": true,
          "mapDiffuseWrap": ["RepeatWrapping","RepeatWrapping"],
          "depthTest": true,
          "shading": "phong",
          "colorSpecular": [0.5,0.5,0.5],
          "colorAmbient": [0.64,0.64,0.64]
      },...</code></p>
  
  <p>If I don't it won't load textures but will load the object and here is my materials </p>
  
  <pre><code>"materials": [{
      "blending": "NormalBlending",
      "specularCoef": 50,
      "colorEmissive": [0,0,0],
      "DbgName": "Material.005",
      "colorDiffuse": [0.64,0.64,0.64],
      "DbgIndex": 0,
      "opacity": 1,
      "colorSpecular": [0.5,0.5,0.5],
      "shading": "phong",
      "wireframe": false,
      "colorAmbient": [0.64,0.64,0.64],
      "depthTest": true,
      "transparent": false,
      "visible": true,
      "depthWrite": true,
      "DbgColor": 15658734
  },...
  </code></pre>
  
  <p>Here is my json loader</p>
  
  <pre><code>    loader.load('oddo.js', function(geometry, materials) {
          mesh = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
          mesh.scale.x = x;
          mesh.scale.y = y;
          mesh.scale.z = z;
          mesh.opacity=1;
          var model = new THREE.Object3D();
          model.add(mesh);
          model.position.set(0,0,0);
          //mesh.translation = THREE.GeometryUtils.center(geometry);
          group.add(model);
      });
  </code></pre>
  
  <p><a href="http://i.stack.imgur.com/fqSUI.jpg" rel="nofollow">and here is an image from blender object and exporter</a></p>
  
  <p>Thank you!</p>