Post

Replies

Boosts

Views

Activity

Is it possible to use ARSession to display both the front camera and the rear camera at the same time?
Is it possible to use ARSession to display both the front camera and the back camera at the same time? I wanted to show the rear camera while tracking my face, but that seems difficult. So I also looked into how to use AVCaptureSession and ARSession at the same time, but this also seemed difficult. https://developer.apple.com/forums/thread/81971
2
0
1.2k
Oct ’20
How can I record and play back the movement in ARkit?
How do I record and play back movements with ARkit?As you can see in the video below.https://www.youtube.com/watch?v=7NnSuAprFnYI thought about using ReplayKit, but ReplayKit records the entire screen, so you can't just record the character's movements.I know that I can do motion capture with the code below.I would appreciate it if you could tell me how I can change this code to record and play it.https://developer.apple.com/documentation/arkit/capturing_body_motion_in_3d
0
0
338
May ’20
How can I get the head rotation value with ARKit3?
I am using ARKit3.I tried DL the sample code from the following URL.Tracking and Visualizing Faceshttps://developer.apple.com/documentation/arkit/tracking_and_visualizing_facesI tried to get a face rotation value by inserting a print statement into TransformVisualization.swift as shown in the code below.func renderer(_ renderer: SCNSceneRenderer, didUpdate node: SCNNode, for anchor: ARAnchor) { guard #available(iOS 12.0, *), let faceAnchor = anchor as? ARFaceAnchor else { return } print(faceAnchor.transform.columns.2) rightEyeNode.simdTransform = faceAnchor.rightEyeTransform leftEyeNode.simdTransform = faceAnchor.leftEyeTransform }faceanchor.transform can get 4x4 matrix.Doesn't faceanchor.transform.columns.2 contain head rotation values?When I actually moved my head and checked the printed numbers, the values of rotation.x(faceAnchor.transform.columns.2.x) and rotation.y(faceAnchor.transform.columns.2.y) were obtained correctly.However, the initial value of rotation.z(faceAnchor.transform.columns.2.z) is strange, and hardly changes even if I move my head.How can I get the rotation value around the Z axis?
2
0
2.4k
Dec ’19