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
8
votes
1 answer

ARSCNView renders its content at 120 fps (but I need 30 fps)

I'm developing ARKit app along with Vision/AVKit frameworks. I'm using MLModel for classification of my hand gestures. My app recognizes Victory, Okey and ¡No pasarán! hand gestures for controlling a video. The app works fine but view's content is…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
8
votes
3 answers

Can ARKit display WKWebview?

Tried ARKit to show WKWebView and all I got is a page that shows background but no foreground. The page can be scrolled though. I attached Apple web page as screenshot. Here's the code: DispatchQueue.main.async { let webView = WKWebView(frame:…
Lim Thye Chean
  • 8,704
  • 9
  • 49
  • 88
8
votes
1 answer

ARKit 1.5 how to get the rotation of a vertical plane

I'm experimenting with the vertical plane, and I'm trying to place a node on a wall with the correct rotation based on that vertical plane. here's the ARHitTestResult of the vertical plane that gets tapped: let hitLocation =…
LeftyT
  • 512
  • 6
  • 12
8
votes
3 answers

invalid reference image arkit 1.5

I am running the apple sample project of ARKit 1.5 Image detection but when I place my reference image inside AR Resource folder and run the app I get following error: Make sure all reference images are greater than 100 pixels and have a positive…
Abdul Qayum
  • 179
  • 7
8
votes
1 answer

Getting error "[DeviceMotion] Event ref invalid" when running ARKit app

I am trying to run a simple app with the ARKit and whenever I run the app, I get the following error. 2017-10-02 15:16:17.717533-0700 MyARKitProject [3702:2654241] [DeviceMotion] Event ref invalid
unknown_jy
  • 757
  • 9
  • 19
8
votes
4 answers

swift 4.0: Overriding 'prepare' must be as available as declaration it overrides

I was trying to integrate Apple's ARKit example app into my app. As ARKit is only an additional feature, so I need to support lower versions of iOS. I added @available(iOS 11.0, *) tag to all the ARKit example app classes...It almost works except…
guocongyu
  • 133
  • 1
  • 8
8
votes
2 answers

How to change orientation of a SCNNode to the Camera with ARKit

The code below places a SCNPlane onto the point touched, but the plane is oriented (rotated) to the position that the phone was in when the app started. I would ideally like to orient the Node to a physical wall or to the current orientation of the…
Rob Schlackman
  • 309
  • 3
  • 6
8
votes
2 answers

ARSessionConfiguration unresolved in Xcode 9 GM

I have created an ARKit project using a beta version of Xcode 9, which I was able to run on my real device without issues. Yesterday, I upgraded to Xcode 9 GM, and without touching anything, Xcode shows multiple errors, saying it does not know…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
8
votes
1 answer

SceneKit -– How to get animations for a .dae model?

Ok, I am working with ARKit and SceneKit here and I am having trouble looking at the other questions dealing with just SceneKit trying to have a model in .dae format and load in various animations to have that model run - now that we're in iOS11…
blue
  • 7,175
  • 16
  • 81
  • 179
8
votes
0 answers

AVCaptureVideoPreviewLayer and ARKit: is it possible to use them together?

I've found that using an AVCaptureVideoPreviewLayer camera overlay, the quality of the camera image shown is quite better than when using an ARSKView. I need to use ARKit and display some SKNodes according to the camera ouput, so I guess that using…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
8
votes
1 answer

Occlusion Material or Hold-Out Shader in ARKit and SceneKit

I have seen some examples demo of ARKit where material A is blocking material B, kind of creating occlusion effect, or black hole, or masking. But all of them seems to be using Unity engine (I might be wrong). I wanted to do this using what Apple…
8
votes
2 answers

Not getting session `didUpdate` for camera position in ARKit

I'm new to swift, and I'm trying to get the location of the camera in the ARKit example, but it's giving me nil. I used the solution for this question and set the delegate to self, but it's still not giving me the camera transform. What am I doing…
dmr07
  • 1,388
  • 2
  • 18
  • 37
8
votes
0 answers

ARKit intrinsic differences between portrait and landscape?

I am implementing marker tracking for ARKit using OpenCV (using ARuco) and see good results when doing portrait orientation of the camera, but a slight offset when doing landscape. ARuco markers on known positions: Detection in portrait mode…
Christopher Oezbek
  • 23,994
  • 6
  • 61
  • 85
8
votes
2 answers

ARKit – Position of the ARCamera

I'm trying to use ARKit and my question is very simple. How can I get the position of the camera? I know that if I put a SCNNode on (0,0,0) and my ARCamera is looking on the ground for example, I will have to look up to see the 3D Object. That's…
Alain Berrier
  • 621
  • 6
  • 23
8
votes
1 answer

Get distance to surface with ARKit

I've begun experimenting with ARKit, and I have ran into an issue. I can't find a tutorial which shows how to place an object on the nearest surface. Let's say I am using a .scn file that contains a flat object. I know how to place that where the…
Will
  • 4,942
  • 2
  • 22
  • 47