Reputation: 1337
There is a problem in Rendering the 3d model as the Border of the Mesh is not smooth.I have added the image of model loded using three.js and the same in blender. Is it the problem with the 3d model ?
Loader = new THREE.JSONLoader(true);
Loader.load("models/test.json", function (geometry) {
geometry.mergeVertices();
geometry.computeVertexNormals();
geometry.computeFaceNormals();
Material = new THREE.MeshLambertMaterial();
Material.side = THREE.DoubleSide;
Material.shading = THREE.SmoothShading;
Mesh= new THREE.Mesh(geometry,Material);
Mesh.doubleSided = true;
Material.map = new THREE.ImageUtils.loadTexture("textures/pattern3.jpg");
Material.map.wrapS = THREE.RepeatWrapping;
Material.map.wrapT = THREE.RepeatWrapping;
Material.map.repeat.set(2,2);
Scene.add(Mesh);
});
Upvotes: 0
Views: 454