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

ARKit: Finding the coordinates of a SCNNode on the screen

I have a simple Swift ARKit setup where I have a SCNNode with a 3D object that is visible in an ARSCNView. I want to determine the 2D coordinates of this object on the ARSCNView. By this I mean the x- and y-coordinates the object has when it is…
AscendingEagle
  • 771
  • 1
  • 7
  • 17
9
votes
2 answers

ARKit: pausing session does not stop the scene to be called

I'm using ARKit with SpriteKit. My AR feature is not a core feature in my app, users may optionally navigate to a viewController with an ARSKView where I configure and set an SKScene in the ARsession. I pause the session when the user navigates…
AppsDev
  • 12,319
  • 23
  • 93
  • 186
9
votes
2 answers

How do I set compatible devices to only ARKit compatible devices in Xcode?

How can I make sure my app on iOS AppStore only show compatibility for ARKit enabled devices only?
iSebbeYT
  • 1,441
  • 2
  • 18
  • 29
9
votes
2 answers

How to move an SCNNode to just below ARCamera?

I'm making an Augmented Reality app where the user has to throw a ball at a target. I used the following code to position the ball 10 cm in front of the screen: var translation = matrix_identity_float4x4 translation.columns.3.z =…
ymulki
  • 432
  • 2
  • 15
9
votes
1 answer

Understand coordinate spaces in ARKit

I've read all Apple guides about ARKit, and watched a WWDC video. But I can't understand how do coordinate systems which are bind to: A real world A device A 3D scene connect to each other. I can add an object, for example a SCNPlane: let stripe =…
kelin
  • 11,323
  • 6
  • 67
  • 104
9
votes
1 answer

ARKit: position vs worldposition vs simdposition

please in very simple language explain the difference between the 3 aforementioned position. I would like to know when to use one versus another.
stanley
  • 1,113
  • 1
  • 12
  • 26
9
votes
1 answer

ARKit: How to reset world orientation after interruption

I'm trying to get the ARWorldTracking session to re-orient north after a session interruption. I've went over the documentation a few times but I'm finding it confusing. Current Behavior: When I lock the device and reopen the app, triggering the…
dmr07
  • 1,388
  • 2
  • 18
  • 37
9
votes
0 answers

Setting SKScene as SCNPlane content crashes - Xcode 9 beta 5

I'm trying to set a SKScene as content in an SCNPlane inside an ARSCNView. Right now the SKScene is a very simple one defined in an .sks file which consists only of a red background and a green rectangle in the center. Right here's the code: first…
leandrodemarco
  • 1,552
  • 1
  • 15
  • 22
9
votes
4 answers

erratic world origin/alignment for ARSessionConfiguration.WorldAlignment = .gravityAndHeading

[Note: this question was written against the beta version of ARKit during the iOS11/High Sierra prerelease period. Preserved for historical interest only] I'm seeing erratic placement and orientation for the world origin when I set the…
Hal Mueller
  • 7,019
  • 2
  • 24
  • 42
8
votes
1 answer

Why does RealityKit memory does not clear after deinit called?

I cannot manage to release my RealityKit ARView() from memory. I am aware that there were similar issues with ARKit + SceneKit with workarounds which doesn't solve my problem, unfortunately. The solutions above kind of work by removing everything…
Chirag Shah
  • 3,034
  • 1
  • 30
  • 61
8
votes
2 answers

Realitykit - Custom Material

Using Realitykit, trying to change the material of moon Entity to a custom .jpg and then tapping the screen to spawn that object based off hitTest. Nothing shows up when I tap and getting the following error in debug: [Collision] Bad paramater…
Lawlitrix
  • 81
  • 3
8
votes
4 answers

RealityKit - Animate opacity of a ModelEntity?

By setting the color of a material on the model property of a ModelEntity, I can alter the opacity/alpha of an object. But how do you animate this? My goal is to animate objects with full opacity, then have them fade to a set opacity, such as…
ColdLogic
  • 7,206
  • 1
  • 28
  • 46
8
votes
1 answer

ARFaceTrackingConfiguration: How to distinguish pictures from real faces?

we have several apps in the Store that use ARFaceTrackingConfiguration to detect the users face in iOS devices with FaceID cameras. As you might have seen, ARKit will also track picture of faces you put in front of your iPad Pro/iPhoneX, as if they…
Bersaelor
  • 2,517
  • 34
  • 58
8
votes
5 answers

Is there any way to load FBX file using ARKit?

In my project I'm positioning 3d files using ARKit. I'm able to load .dae and .obj format models. Is there any way I could load .fbx files?
8
votes
1 answer

What's the best way to play video in SceneKit?

I've tried a number of different techniques to play videos in SceneKit, but none of them seem to work correctly. I've tried assigning an AVPlayerLayer to an SCNMaterial.diffuse.contents and that simply fails to display any video frames at all,…
LenK
  • 2,944
  • 2
  • 20
  • 26