Last active
February 7, 2019 18:43
-
-
Save nspeet/fd0ca4d63cf80b9537520f5cc3910f8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//.dae file | |
var object3D: SCNNode! | |
let chair = SCNScene(named: "art.scnassets/furniture/chair/bag-chair.dae") | |
object3D = chair?.rootNode; | |
self.object.removeFromParentNode() | |
self.object = object3D; | |
//.obj file | |
let url = URL.init(string: "https://3D2348.com/couch.obj") | |
let entity = MDLAsset(url: url) | |
let objectCouch = entity.object(at: 0) | |
let node = SCNNode.init(mdlObject: objectCouch) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment