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
25
votes
4 answers

ARKit Plane Detection - Value of type 'ARView' has no member 'session'

I am trying to add plane detection to a simple ARKit app. I want to put a picture on a vertical plane. So first I need to detect the plane then I can add my object anchor which I created in RealityKit. However the problem is I am not sure the…
Jaz King
  • 353
  • 3
  • 5
23
votes
3 answers

Mapping image onto 3D face mesh

I am using the iPhone X and ARFaceKit to capture the user's face. The goal is to texture the face mesh with the user's image. I'm only looking at a single frame (an ARFrame) from the AR session. From ARFaceGeometry, I have a set of vertices that…
coco
  • 2,998
  • 1
  • 35
  • 58
23
votes
2 answers

What does the "simd" prefix mean in SceneKit?

There is a SCNNode category named SCNNode(SIMD), which declares some properties like simdPosition, simdRotation and so on. It seems these are duplicated properties of the original/normal properties position and rotation. @property(nonatomic)…
ooOlly
  • 1,997
  • 21
  • 31
22
votes
4 answers

UIButton with custom image still shows titleLabel even though I set it to blank - Swift iOS

I'm pretty new to Swift, currently writing an AR game. Seems like my issue is very basic, but I can't figure it out. I added a button to an AR Scene through the storyboard and linked it to an IBAction function (which works correctly when the button…
rafi
  • 389
  • 2
  • 10
21
votes
4 answers

Technique World tracking performance is being affected by resource constraints

While running an ARKit session with world tracking enabled, the Xcode console shows log messages about (I presume: reduced) tracking performance, even though The AR Session is in Normal tracking state, I am using the device in a well-lit office…
PDK
  • 1,476
  • 1
  • 14
  • 25
19
votes
7 answers

Check whether the ARReferenceImage is no longer visible in the camera's view

I would like to check whether the ARReferenceImage is no longer visible in the camera's view. At the moment I can check if the image's node is in the camera's view, but this node is still visible in the camera's view when the ARReferenceImage is…
KNV
  • 631
  • 4
  • 19
18
votes
3 answers

What 3D model formats are supported by ARKit?

What 3D model formats are supported by ARKit? Does someone know all supported formats for using in ARKit, and which format Xcode can export to use in app?
user3371261
  • 185
  • 1
  • 1
  • 5
18
votes
3 answers

Metal file as part of an iOS framework

I am trying to create a framework that works with METAL Api (iOS). I am pretty new to this platform and I would like to know how to build the framework to work with .metal files (I am building a static lib, not dynamic). Should they be a part of the…
DocForNoc
  • 346
  • 2
  • 13
18
votes
2 answers

How to transform vision framework coordinate system into ARKit?

I am using ARKit (with SceneKit) to add the virtual object (e.g. ball). I am tracking real world object (e.g. foot) by using Vision framework and receiving its updated position in vision request completion handler method. let request =…
idev
  • 311
  • 3
  • 10
17
votes
3 answers

How to create USDZ file using Xcode converter?

At the 2018 WWDC Apple announced the introduction of new USDZ file format. In relation to creating USDZ file the following was said: To create your own usdz files, a usdz_converter has been bundled as part of Xcode 10 beta. Its a command line tool…
Clay
  • 1,721
  • 2
  • 10
  • 18
17
votes
1 answer

Scenekit snapshot() doesn't include camera exposure settings

I'm providing screenshot functionality for my AR app, and I noticed that the screenshots I take (via sceneView.snapshot()) are much darker than what I see from the camera. I'm using the ARKit example code from Apple, and it seems like this is…
pushmatrix
  • 726
  • 1
  • 9
  • 23
17
votes
1 answer

ARKit – How to put 3D Object on QRCode?

I'm actually trying to put a 3D Object on QRCode with ARKit For that I use a AVCaptureDevice to detect a QRCode and establish the area of the QRCode that gives me a CGRect. Then, I make a hitTest on every point of the CGRect to get the average 3D…
Alain Berrier
  • 621
  • 6
  • 23
17
votes
1 answer

Vision Framework with ARkit and CoreML

While I have been researching best practices and experimenting multiple options for an ongoing project(i.e. Unity3D iOS project in Vuforia with native integration, extracting frames with AVFoundation then passing the image through cloud-based image…
pythlang
  • 328
  • 5
  • 15
16
votes
2 answers

Using iPhone TrueDepth sensor to detect a real face vs photo?

How can I use the depth data captured using iPhone true-depth Camera to distinguish between a real human 3D face and a photograph of the same? The requirement is to use it for authentication. What I did: Created a sample app to get a continuous…
abhimuralidharan
  • 5,752
  • 5
  • 46
  • 70
16
votes
1 answer

Find distance between iOS Device Camera and user's face

I am trying to find distance between iOS device's front-facing camera and user's face in the real world. So far, I have tried ARKit/SceneKit, and using ARFaceAnchor I am able to detect user's face distance from camera; but it works only in close…
Kashif
  • 4,642
  • 7
  • 44
  • 97