I'm using a free 3d model from turbosquid. This model is using a texture that looks like this:
It does look good in Blender:
But once exported to three.js, it seems that the texture does not follow the uv map:
Here is the code i'm using:
var loader = new THREE.JSONLoader();
loader.load('json/Ship.json', function ( geometry, materials ) {
ship = new THREE.Mesh(geometry, materials[0]);
scene.add(ship);
}
);
And here is the json I get once exported from Blender:
What am I missing? Thanks a lot for your help!
ship = new THREE.Mesh(geometry, materials[0]);
. So don't create a new material but use the parameter of the callback. – Mugen87.blend
file? May want to try KhronosGroup/glTF-Blender-Exporter as well. – Don McCurdy