Updated three.js and all loaders, getting the error
THREE.Object3D.add: object not an instance of THREE.Object3D. Object
add @ three.js:8163
from
var loaderGLTF = new THREE.GLTFLoader();
loaderGLTF.load(
"Resources/Earth3/iss.gltf",
function(object) {
scene.add(object);
}
);
Got the fbx loader to work, but whenever I attempt to create a mesh from the imported geometry the model disappears with no error. FBX code posted below.
var loader = new THREE.FBXLoader();
loader.load( 'Resources/Earth3/iss3.fbx', function ( geometry ) {
var basicMaterial = THREE.MeshBasicMaterial({
color: 0xff0000
})
var issMesh = THREE.Mesh(geometry, basicMaterial);
console.log(issMesh.position);
scene.add(issMesh);
} );