I am trying to import a simple cube that is animated as a .dae (Collada) file into a ExpoThree scence. It seems to be unable to animate the .dae file using ExpoTHREE.loadDaeAsync.
I am using Blender 2.8 and have simple keyframe animations (rotation, scale etc) no aramature. Why am I getting the error below?
const collada = await ExpoTHREE.loadDaeAsync({
asset: require('../assets/trees/tree.dae'),
onAssetRequested: () => {},
onProgress: () => {},
});
const { scene: mesh, animations } = collada;
mesh.traverse(child => {
if (child instanceof THREE.Mesh) {
child.castShadow = true;
child.receiveShadow = true;
}
});
ERROR / Metro Bundler output
Building JavaScript bundle: finished in 473ms.
INFO
23:28
“, “length”: 9, “lineNumber”: 395, “nextSibling”: [Element], “nodeValue”: "
INFO
23:28
“, “ownerDocument”: [Document], “parentNode”: [Circular], “previousSibling”: null}, “1”: {”_nsMap”: [Object], “attributes”: [Object], “childNodes”: [Object], “columnNumber”: 9, “firstChild”: [Text], “lastChild”: [Text], “lineNumber”: 396, “localName”: “source”, “namespaceURI”: “COLLADA 1.4 Schema”, “nextSibling”: [Text], “nodeName”: “source”, “ownerDocument”: [Document], “parentNode”: [Circular], “previousSibling”: [Text], “tagName”: “source”}, “10”: {“columnNumber”: 129, “data”: "
INFO
23:28
", “length”: 7, “lineNumber”: 425, “nextSibling”: null, “nodeValue”: "
INFO
23:28
", “ownerDocument”: [Document], “parentNode”: [Circular], “previousSibling”: [Element]}, “2”: {“columnNumber”: 18, “data”: "
INFO
23:28
", “length”: 9, “lineNumber”: 403, “nextSibling”: [Element], “nodeValue”: