Reputation: 2520
I'm trying to figure out how to import .dae
files with animations into Xcode and SceneKit.
It works somewhat, but it's really buggy, I can't preview files, and Xcode sometimes crashes when trying to preview the .dae
files in Xcode.
.dae
file, and select the file in the Xcode file list to preview it. The result can be seen below. I have zoomed all the way out to make sure I'm not just viewing the model from the inside of the mesh. The lines extend infinetly it looks like. <animation>
tag with corresponding closing tag, and then import it into Xcode, it won't open at all. See image below..dae
file version not converted using ConvertToXcodeCollada, and the add .dae
file as a sub reference in a .scn
Scene file, the model displays correctly, and the animation is playing correctly. Image below.I have also tried to import animated models into Blender and then export it to Collada from there (with unstructions from tutorials on youtube), and same results. Is there a way I can do this a proper way, where it works like it should, without Xcode behaving buggy? It would be easier if I could actually preview and edit materials etc of the .dae
files directly, without having to always add them to an existing .scn
Scene Kit Scene.
Upvotes: 10
Views: 1444
Reputation: 2962
I have downloaded which you mentioned above link. github.com/eh3rrera/ARKitAnimation
And I opened in finder. Its working for my mac
Upvotes: 0
Reputation: 1973
This happen when I try to open in finder a .dae file with animation created with mixamo
mojave OS 10.14.1
BUG Fixed by apple 10.14.2
Upvotes: 0
Reputation: 2962
I did followed your instructions and try to load a 3D animation. Its working fine for me
In new sceneKit project I have updated my code like.
// create a new scene
let scene = SCNScene(named: "Jumping.dae")! //"art.scnassets/ship.scn")!
and this too
let ship = scene.rootNode.childNode(withName: "mixamorig_Hips", recursively: true)! // "ship"
I am using XCode 10.1 on macOS 10.13.6
Upvotes: 3