Questions tagged [arkit]

Apple ARKit is Augmented Reality SDK introduced in iOS 11.0, which integrates the iOS or visionOS device RGB camera data, Motion Sensor data and LiDAR Scanner data to produce robust AR experiences.

ARKit uses Visual Inertial Odometry (VIO) to accurately track the world around it. VIO fuses RGB camera sensor data at 60 fps with data at 1000 fps. These two inputs allow the device running iOS or visionOS to sense how it moves within a room with a high degree of accuracy, and without any additional calibration. With ARKit app, user is able to create and render 3D scenes using , , , and frameworks.

The latest version of ARKit has the following features in its arsenal: People Occlusion with depth channel semantics, LiDAR Sensor support for high quality Depth channel and better Scene Understanding, live Motion Capture allowing animate a 3D skeleton, simultaneous Front and Rear camera tracking, hand tracking, ability to track up to 3 faces with a TrueDepth camera, collaborative sessions between 6 users, Geo Tracking and many other useful features.

Reference

3311 questions
16
votes
3 answers

How to create a .usdz animation?

You can now convert 3D models to .usdz files (uncompressed zip archive) using Apple's command line tool bundled with Xcode 10 beta. Example code to convert an .obj file to .usdz: xcrun usdz_converter magnifying_glass.obj -g frame…
Clay
  • 1,721
  • 2
  • 10
  • 18
16
votes
1 answer

Adding a SCNBillboardConstraint makes the node dissapear

After what I've read in the documentation and on the internet a SCNBillboardConstraint would rotate a node to always face the pointOfView node - in the case of ARKit, the user's camera. The thing is, when I add a SCNBillboardConstraint to a child…
Cyupa
  • 1,126
  • 13
  • 37
16
votes
3 answers

Adjust camera focus in ARKit

I want to adjust the device's physical camera focus while in augmented reality. (I'm not talking about the SCNCamera object.) In an Apple Dev forum post, I've read that autofocus would interfere with ARKit's object detection, which makes sense to…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
16
votes
1 answer

Mapping GPS coordinates in ARKit

I'm exploring the new ARKit. Currently all the examples I've seen use the "relative" position of the camera to place objects onto the scene around the origin. Suppose I have absolute real-world GPS coordinates that I'd like to place as markers in to…
kernelpanic
  • 2,876
  • 3
  • 34
  • 58
16
votes
3 answers

Is it possible to track objects in ARKit like in Vuforia?

I couldn't find any information if Apple's ARKit supports 3D object tracking (or even image tracking) like Vuforia does. I don't want to place a 3D model just anywhere in the world. Instead I want to detect a specific 3D object and place AR objects…
Superwayne
  • 1,146
  • 1
  • 12
  • 22
15
votes
2 answers

Swift ARKit How do you fully kill an ARSession?

I have an ARSCNView running an ARSession. You can pause the session with session.pause() sure, but that still in effect, leaves the session running. I have tried deallocating the ARSCNView by removing it from its superview. The ARSCNView indeed…
Geoff H
  • 3,107
  • 1
  • 28
  • 53
15
votes
2 answers

Understanding ARKit World Transform Matrices

In ARKit, when I perform a hit-test, I get back an instance of ARHitTestResult. One of the properties of this is worldTransform, which I understand contains a 4x4 transformation matrix of the position of the object – simd_float4x4. As someone who is…
Zack
  • 1,585
  • 1
  • 18
  • 29
15
votes
6 answers

ARKit Place a SCNNode facing the camera

I'm using ARKit to display 3D objects. I managed to place the nodes in the real world in front of the user (aka the camera). But I don't manage to make them to face the camera when I drop them. let tap_point=CGPoint(x: x, y: y) let…
Marie Dm
  • 2,637
  • 3
  • 24
  • 43
15
votes
3 answers

Convert matrix_float4x4 to x y z space

I'm using ARKit and trying to get the position of the camera as a rotation and (x,y,z) coordinates in real world space. All I can manage to get is a matrix_float4x4, which I don't really understand, and euler angles only show the rotation. Here's…
Jonathan Plackett
  • 2,346
  • 2
  • 20
  • 33
15
votes
6 answers

How to record video from ARKit?

Now I'm testing ARKit/SceneKit implementation. The basic rendering to the screen is kinda working so then I wanna try recording what I see on the screen into a video. Just for recording of Scene Kit I found this Gist: // // ViewController.swift //…
Takeshi Yokemura
  • 425
  • 1
  • 4
  • 17
15
votes
5 answers

Get RGB "CVPixelBuffer" from ARKit

I'm trying to get a CVPixelBuffer in RGB color space from the Apple's ARKit. In func session(_ session: ARSession, didUpdate frame: ARFrame) method of ARSessionDelegate I get an instance of ARFrame. On page Displaying an AR Experience with Metal I…
tomas789
  • 1,280
  • 1
  • 9
  • 21
15
votes
1 answer

How do I programmatically move an ARAnchor?

I'm trying out the new ARKit to replace another similar solution I have. It's pretty great! But I can't seem to figure out how to move an ARAnchor programmatically. I want to slowly move the anchor to the left of the user. Creating the anchor to be…
Ryan Pfister
  • 3,176
  • 4
  • 24
  • 26
14
votes
4 answers

ARKit – How to export OBJ from iPhone/iPad with LiDAR?

How can I export the ARMeshGeometry generated by the new SceneReconstruction API on the latest iPad Pro to an .obj file? Here's SceneReconstruction documentation.
zhou junhua
  • 462
  • 1
  • 4
  • 12
14
votes
2 answers

Load large 3d Object .scn file in ARSCNView Aspect Fit in to the screen ARKIT Swift iOS

I am developing ARKit Application using 3d models. So for that I have used 3d models & added gestures for move, rotate & zoom 3d models. Now I am facing only 1 issue but I am not sure if this issue relates to what. Is there an issue in 3d model or…
Mayur Prajapati
  • 5,454
  • 7
  • 41
  • 70
14
votes
2 answers

Add image to AR Resources on the fly for image recognition

ARKit 1.5 introduces image recognition. In the code you have to create a Set of the reference images like this: let referenceImages = ARReferenceImage.referenceImages(inGroupNamed: "AR Resources", bundle: nil) and then images contained in the Set…
magohamote
  • 1,484
  • 1
  • 17
  • 29