我无法加载我的对象。屏幕是空白的。要加载的代码是:
var mtlLoader = new THREE.MTLLoader();
mtlLoader.setBaseUrl('assets/');
mtlLoader.setPath('assets/');
mtlLoader.load('Gita.mtl', function (materials) {
materials.preload();
materials.materials.default.map.magFilter = THREE.NearestFilter;
materials.materials.default.map.minFilter = THREE.LinearFilter;
var objLoader = new THREE.OBJLoader();
objLoader.setMaterials(materials);
objLoader.setPath('assets/');
objLoader.load('Gita.obj', function (object) {
scene.add(object);
});
});
这是我的对象:https ://drive.google.com/drive/folders/0B71ivPfsz82mYzVxYU1TZkt5ekk?usp=sharing
希望您能够帮助我。感谢您的关注。