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
12
votes
7 answers

How to specify a Double-sided material in RealityKit?

I'm trying to load a model and texture in RealityKit (set up in an ARView instance), but I can't seem to figure out how to specify the material should be two-sided. I have the model loaded up as a ModelEntity, the texture loaded up as a…
smithco
  • 679
  • 5
  • 17
12
votes
2 answers

iOS: Issue with lightning in USDZ file

I am trying to show an AR content with QLPreviewController. Everything works fine except the lighting. If I preview the file using Xcode or macOS's quick look the lighting is natural, but when I preview it using QLPreviewController the object is too…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
12
votes
3 answers

Xcode Error: AR reference image must have non zero positive width

Help I'm playing around with ARKit's Image detection and I have no idea why every image I place in the AR Reference folder has an error: AR reference image 'name' must have non zero positive width I'm not really sure what that means and I'm not…
mn27
  • 121
  • 1
  • 8
12
votes
3 answers

ARKit: How can I add a UIView to ARKit Scene?

I am working on an AR project using ARKit. I want to add a UIView to ARKit Scene. When I tap on an object, I want to get information as a "pop-up" next to the object. This information is in a UIView. Is it possible to add this UIView to ARKit…
Informatics
  • 155
  • 1
  • 10
12
votes
1 answer

FPS drop when adding child to a scene ARKit/SceneKit

I'm working on an ARKit project for 4 months now. I noticed that when adding a child to my scene rootNode, there is a FPS drop. The device freezes for less than a second. I did a lot of research and trials, noticed that all Apple's code examples…
Adrien Yvon
  • 662
  • 7
  • 18
12
votes
1 answer

How to create a border for SCNNode to indicate its selection in iOS 11 ARKit-Scenekit?

How to draw a border to highlight a SCNNode and indicate to user that the node is selected? In my project user can place multiple virtual objects and user can select any object anytime. Upon selection i should show the user highlighted 3D object. Is…
Vidhya Sri
  • 1,773
  • 1
  • 17
  • 46
12
votes
2 answers

How can i add a 2dView having text in ARkit scene iOS

How can i add a 2dView having text in ARkit scene iOS.How can i add that view in top of a node that won't rotate when we rotate the node.
Developer
  • 422
  • 6
  • 16
12
votes
1 answer

Displaying a DAE file with ARKit and tracking an Anchor in the scene

I'm trying out ARKit, and I set up an ARSCNView using this tutorial. Then set up tracking horizontal 3D planes with the second part of this tutorial. I created a single view application then constrained an ARSCNView flush to the root view with an…
Jon Vogel
  • 5,244
  • 1
  • 39
  • 54
11
votes
1 answer

Texture ARMeshGeometry from ARKit Camera frame?

This question somewhat builds on this post, wherein the idea is to take the ARMeshGeometry from an iOS device with LiDAR scanner, calculate the texture coordinates, and apply the sampled camera frame as the texture for a given mesh, hereby allowing…
ZbadhabitZ
  • 2,753
  • 1
  • 25
  • 45
11
votes
1 answer

How to record video in RealityKit?

I have a RealityKit project in Xcode and I want to record the ARView. I considered ReplayKit, but that is for screen recording, I want to record only the ARView with its camera feed. I considered the open source project ARVideoKit by AFathi but that…
Tad
  • 889
  • 9
  • 23
11
votes
6 answers

How can I convert .obj or .stl to .usdz without Vectary?

Apple AR Quick Look apparently only supports .usdz files. Is there a way to convert an .obj or .stl to .usdz? I googled this first but the most popular result was to use a free tool called Vectary, but when I actually tried to use it, it wasn’t…
yogurtsyum
  • 348
  • 1
  • 2
  • 17
11
votes
4 answers

How to create a SCNNode from a .usdz?

I have downloaded the .usdz models provided by Apple: https://developer.apple.com/arkit/gallery/ But now, I want to create a SCNNode with one of these models, so I am doing this to obtain the node: guard let urlPath = Bundle.main.url(forResource:…
Sergio
  • 1,610
  • 14
  • 28
11
votes
2 answers

Scanning Real-World Object and generating 3D Mesh from it

ARKit app allows us to create an ARReferenceObject, and using it, we can reliably recognize the position and orientation of the real-world objects. But also we can save the finished .arobject file. However, ARReferenceObject contains only the…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
11
votes
2 answers

iOS; Unsupported Pixel Format

My Unity app uses the Camera feed for multiple systems that the app uses; such as Vuforia, ARKit, and just general Camera feed input. The issue I'm having is that each one of these requests a different Pixel Format, which seems to cause an issue for…
Oliver Jones
  • 1,420
  • 7
  • 27
  • 43
11
votes
2 answers

Apple iOS ARKit: "A sensor failed to deliver the required input" error and stops working

I am developing an application that uses both ARKit and hardware video decoder. As soon as the decoder start to decode, the following error message appears in console and prevent tracking from working properly. Occasionally, this error do not show…
Caoyang Jiang
  • 141
  • 1
  • 5