天道酬勤,学无止境

scenekit-modelio

Save ARFaceGeometry to OBJ file

In an iOS ARKit app, I've been trying to save the ARFaceGeometry data to an OBJ file. I followed the explanation here: How to make a 3D model from AVDepthData?. However, the OBJ isn't created correctly. Here's what I have: func renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) { guard let faceAnchor = anchor as? ARFaceAnchor else { return } currentFaceAnchor = faceAnchor // If this is the first time with this anchor, get the controller to create content. // Otherwise (switching content), will change content when setting `selectedVirtualContent`. if node

2021-04-26 10:59:27    分类:问答    swift   scenekit   arkit   metal   scenekit-modelio