I'm trying to export a jet I made in blender to three.js. the model shows up properly, but it's missing some faces and no materials are applied even though they are clearly present in json. Here's how it looks in blender:
And here's how it looks in browser:
As you can see, most of the canopy is missing, parts of the fuselage and inlets as well. No materials are applied to any part and the coloring comes only from ambient light. Here's how it's called:
var x29;
function createFighter() {
var loader = new THREE.JSONLoader();
loader.load('x29.json', function(geometry, materials) {
x29 = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
x29.castShadow = true;
x29.receiveShadow = true;
scene.add(x29);
});
}
No combination of changes in the exporter, triangulating the model or anything else produced any results. What am I doing wrong?