Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to convert .dae to .scn files in SceneKit

This is a screenshot from Apple's Fox sample code. As you can see, they use .scn file format for graphics object. They explicitly state in the wwdc2015 video that this was done by an artist. So far I only worked with .dae and was until recently convinced that this is the only supported format. My question is, how do I export objects stored in .dae file to .scn file?

enter image description here

EDIT: this is what I get if go to Editor-> Convert to SceneKit scene file format (.scn)

enter image description here

like image 403
potato Avatar asked Jul 25 '15 15:07

potato


People also ask

How to convert DAE to scn?

scnassets folder, then drag the . dae file into the scene. If you choose New > Project > Game , the . scnassets folder gets created automatically.


2 Answers

Exporting the .dae is unnecessary; you can place the object directly into a .scn file:

enter image description here

Create the new .scn file in the .scnassets folder, then drag the .dae file into the scene.

like image 117
l'L'l Avatar answered Sep 29 '22 23:09

l'L'l


open your DAE file in the SceneKit scene editor, then go to the Editor menu and click "Convert to scn file format".

Your artist won't be able to export a scn file from their favourite tool. You'll have to use Xcode to convert a DAE to SCN.

like image 20
mnuages Avatar answered Sep 30 '22 00:09

mnuages