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

Storing ARKit point cloud data and retrieving for display

I'm hoping to store point cloud data recorded using ARKit and Unity such that it can be retrieved and displayed as it was originally recorded. Let's say that I am simply displaying point cloud data exactly how the UnityPointCloudExample.cs script…
11
votes
2 answers

When New View appears on Scene View App is Freezed

In one of my iOS App development project, whenever I am trying to push a view on ARSCNView. the app is freezing here below is my code. Please suggest an appropriate solution if you are aware of the same. -> getting app froze when push view on…
imjaydeep
  • 878
  • 1
  • 11
  • 34
11
votes
5 answers

ARKit Session Paused and Not Resuming

In my ARKit app I am presenting a modal window. When I close the modal and go back to the ARSCNView then I find out that the session is paused due to this code: override func viewWillDisappear(_ animated: Bool) { …
john doe
  • 9,220
  • 23
  • 91
  • 167
11
votes
4 answers

How do you attach an object to your camera position with ARKit Swift?

I have moving objects which I want to have be able to collide with me the player. I have the ability to launch objects from me by getting my current position/direction at that time, but I do not understand how to attach an object to me which will…
JoshKopen
  • 940
  • 1
  • 8
  • 22
10
votes
1 answer

ARKit – Tap node with raycastQuery instead of hitTest, which is deprecated

In iOS 14, hitTest(_:types:) was deprecated. It seems that you are supposed to use raycastQuery(from:allowing:alignment:) now. From the documentation: Raycasting is the preferred method for finding positions on surfaces in the real-world…
aheze
  • 24,434
  • 8
  • 68
  • 125
10
votes
1 answer

Projecting the ARKit face tracking 3D mesh to 2D image coordinates

I am collecting face mesh 3D vertices using ARKit. I have read: Mapping image onto 3D face mesh and Tracking and Visualizing Faces. I have the following struct: struct CaptureData { var vertices: [SIMD3] var…
swiftlearneer
  • 324
  • 4
  • 17
10
votes
2 answers

Add UIImage as texture to a Plane in RealityKit

I was trying out the new RealityKit framework in swift and I want to place a 2D image in on an ARAnchor. I managed to create a mesh plane and I tried to add the image as a texture to this plane. I found out that I can give a local image to a…
batabek
  • 103
  • 3
  • 7
10
votes
2 answers

iPad Pro Lidar - Export Geometry & Texture

I would like to be able to export a mesh and texture from the iPad Pro Lidar. There's examples here of how to export a mesh, but Id like to be able to export the environment texture too ARKit 3.5 – How to export OBJ from new iPad Pro with…
Chris
  • 2,739
  • 4
  • 29
  • 57
10
votes
1 answer

ARKit – Replicating robot character in Motion Capture RealityKit

I'm trying to make a 3d model like robot provided by Apple in Motion Capture example (shown at WWDC 2019) which can mimic me in motion capture ARKit 3.0 by replacing robot character given by Apple. Desired Solution: Is there any special software…
Ameer Hamza
  • 103
  • 7
10
votes
1 answer

Storing depth data (with 16-bit depth) as auxiliary data in a JPEG file

I want to be able to store the depth data of a captured ARframe in iOS in a non-lossy compressed image file. According to this WWDC talk: "In iOS 11 we support two kinds of images with depth. The first is HEIF HEVC, the new format, also called…
Dhruv Pargai
  • 121
  • 5
10
votes
4 answers

ARKit – eulerAngles of Transform Matrix 4x4

In my project I have a transform and I want to get the orientation of that transform in eulersAngles. How do I get the eulerAngles from a transform of 4x4 matrix in Swift language? I need at least the Pitch, I may need the Yaw and I might need the…
Calonca
  • 125
  • 1
  • 7
10
votes
2 answers

ARKit / SpriteKit - set pixelBufferAttributes to SKVideoNode or make transparent pixels in video (chroma-key effect) another way

My goal is to present 2D animated characters in the real environment using ARKit. The animated characters are part of a video at presented in the following snapshot from the video: Displaying the video itself was achieved with no problem at all…
2shy
  • 318
  • 3
  • 15
10
votes
2 answers

ARkit - Loading .scn file from Web-Server URL in SCNScene

I am using ARKit for my application and I try to dynamically load .scn files from my web-server(URL) Here is a part of my code let urlString = "https://da5645f1.ngrok.io/mug.scn" let url = URL.init(string: urlString) let request =…
Raj
  • 485
  • 9
  • 18
10
votes
3 answers

iOS11 ARKit: Can ARKit also capture the Texture of the user's face?

I read the whole documentation on all ARKit classes up and down. I don't see any place that describes ability to actually get the user face's Texture. ARFaceAnchor contains the ARFaceGeometry (topology and geometry comprised of vertices) and the…
FranticRock
  • 3,233
  • 1
  • 31
  • 56
10
votes
4 answers

3D model formats in ARKit / ARCore development

I am a beginner at AR game development for both iOS and Android. I have the following questions: What kinds of 3D model formats are supported by ARKit for iOS and ARCore for Android respectively? (I tried .dae and .obj are supported by ARkit, not…
Funny LI
  • 333
  • 1
  • 3
  • 8