Questions tagged arkit

Explore the latest questions and answers asked by our top developers.

How to calculate quadrangle for visible part of vertical plane?

My goal is to calculate the "visible" part of vertical plane that is anchored to some ARPlaneAnchor and represent it with quadrangle as shown in the picture below: My current approach is based on few hit tests, which unfortunately seems to not giving me the satisfying results. First, when I detect a ARPlaneAnchor I add […]

By Nominalista
Published
Categorised as arkit, augmented-reality, scenekit, swift Tagged , , ,

ARKit Body Tracking using Xamarin and C# Inaccurate

I am trying to translate some Swift examples (such as this one https://github.com/iamfine/ARSkeleton) to C# that show how to use ARKit Body Tracking. But I don’t quite seem able to position the joint nodes correctly over the corresponding joints. They follow my body movements, but the position of the nodes seem to be incorrect. Can […]

By Lee Englestone
Published
Categorised as arkit, c++, swift, xamarin Tagged , , ,

RealityKit Custom ARAnchor not syncing across devices

I’m using Apple’s custom ARAnchor in a config.isCollaborationEnabled = true environment. When I call the following on DeviceA: let boardAnchor = BoardAnchor(transform: last.worldTransform, size: CGSize(width: 10, height: 11)) arView.session.add(anchor: boardAnchor) I can see the delegate func session(_ session: ARSession, didAdd anchors: [ARAnchor]) get called with the BoardAnchor on DeviceA. However, DeviceB does not receive such […]

By Chris
Published
Categorised as arkit, networking, nssecurecoding, realitykit, swift Tagged , , , ,

LiDAR and RealityKit – Apply a Real World Texture to a Reconstructed Mesh

Task I would like to project and then bake a real-world texture onto a 3D mesh produced with a help of LiDAR scanner. A baked texture must be made from fixed Point-of-View, for example, from center of a room. It would be ideal solution if we applied an environmentTexturing data, collected as a cube-map texture […]

By Andy Fedoroff
Published
Categorised as arkit, lidar, metal, realitykit, swift Tagged , , , ,

LiDAR and RealityKit – Apply a Real World Texture to a Scanned Model

Task I would like to project and then bake a real-world texture onto a 3D mesh produced with a help of LiDAR scanner. A baked texture must be made from fixed Point-of-View, for example, from center of a room. It would be an ideal solution if we could apply an environmentTexturing data, collected as a […]

By Andy Fedoroff
Published
Categorised as arkit, lidar, metal, realitykit, swift Tagged , , , ,

LiDAR and RealityKit – Capture a Real World Texture for a Scanned Model

Task I would like to capture a real-world texture and apply it to a 3D mesh produced with a help of LiDAR scanner. I suppose that Projection-View-Model matrices should be used for that. A texture must be made from fixed Point-of-View, for example, from center of a room. However, it would be an ideal solution […]

By Andy Fedoroff
Published
Categorised as arkit, lidar, metal, realitykit, swift Tagged , , , ,

ARKit error after changing robot.usdz color

I’m trying to change the color of the robot.usdz supplied in the https://developer.apple.com/documentation/arkit/capturing_body_motion_in_3d sample project. When I run the default project, it works fine. However, if I select part of the model in Xcode and change the color using the Material Inspector: When I run the app I get these errors: Created entity character does […]

By AndyOS
Published
Categorised as arkit, ios, usdz, xcode Tagged , , ,

How to add Reality file in a Swift Package Manager?

I’ve heard with the Xcode 12 (now in Beta 6), Swift package manager is now able to include resources. But I am not able to open a reality (.rcproject) file. Here is what I have tried; (& you can reproduce) I created a new Augmented Reality App project. (RealityKit + SwiftUI + Swift) Now if […]

By Enes Karaosman
Published
Categorised as arkit, ios, swift, swift-package-manager, swiftui Tagged , , , ,

Efficiently updating ARSCNFaceGeometry from a set of blend shapes

I am using ARSCNFaceGeometry and need to update the face model’s blend shapes as part of my game loop. My current solution is to call ARSCNFaceGeometry.update with a new ARFaceGeometry: class Face { let geometry: ARSCNFaceGeometry init(device: MTLDevice) { guard let geometry = ARSCNFaceGeometry(device: device, fillMesh: true) else { fatalError("Could not create ARSCNFaceGeometry") } self.geometry […]

By Matt Bierner
Published
Categorised as arkit, ios, scenekit, swift Tagged , , ,

RealityKit – Assign a Real World Texture onto a Reconstructed Mesh

Task I would like to project and then bake a real-world texture onto a 3D mesh produced with a help of LiDAR scanner. A baked texture must be made from fixed Point-of-View, for example, from center of a room. I need to bake a texture with one iteration. I do not need to update it […]

By Andy Fedoroff
Published
Categorised as arkit, lidar, metal, realitykit, swift Tagged , , , ,
1 2

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq