Hello Everyone
I am trying to upload texture with obj file but it showing this error
THREE.Object3D.add: object not an instance of THREE.Object3D.
here is my code
var mtlLoader = new THREE.MTLLoader();
mtlLoader.setPath('new/obj/');
mtlLoader.load('coat_.mtl', function(materials) {
materials.preload();
var objLoader = new THREE.OBJLoader2();
objLoader.setMaterials(materials);
objLoader.setPath('new/obj/');
objLoader.load('coat_.obj', function(object) {
//object.position.y = -95;
scene.add(object);
});
});