Questions tagged [realitykit]

Apple RealityKit is a high-level framework that helps a developer to load and render AR/VR models with PBR shaders, animations and physics simulations for iOS, visionOS and macOS apps.

RealityKit is an Apple framework for building, animating and rendering 3D scenes. It was introduced at WWDC 2019 for iOS and macOS, and at WWDC 2023 for visionOS. RealityKit allows us implement a high-performance life-like 3D simulation, or fulfil a physically based rendering for its companion – and frameworks – to seamlessly integrate virtual objects into the real world.

RealityKit was built from the ground up for Augmented Reality apps, and it shines with and . Using this framework you can asynchronously load assets in .usdz and .reality formats, or in .rcproject format that stores compositions of app. Starting from Xcode 15, there will be the Reality Composer Pro app.

References

795 questions
0
votes
1 answer

How do I fix the 'MakeRenderPipelineState failed' error in RealityKit/ARKit?

I'm trying to learn world anchors and I'm not able to place an object on tap. I'm getting the following error on startup: 2020-02-12 11:06:20.027274+0000 Project[8336:1778069] Metal GPU Frame Capture Enabled 2020-02-12 11:06:20.027756+0000…
0
votes
1 answer

How to reach variable from viewcontroller in a custom class?

I need to append something to my anchor. I am trying to do this in a function of my class, but i declared this anchor in my viewcontroller. This anchor is not recognized in my class. How do I reach this anchor? viewController.swift: import…
Robbe Verhoest
  • 401
  • 4
  • 9
0
votes
1 answer

Why is `session` method with `didRemove [ARAnchor]` never called for `ARBodyTrackingConfiguration`?

I am using the ARSessionDelegate on an ARView where I initialize the ARBodyTrackingConfiguration. The session methods with didAdd: [ARAnchor] and didUpdate: [ARAnchor] are called correctly. But didRemove: [ARAnchor] is never called. According to the…
Tobias Zucali
  • 167
  • 2
  • 9
0
votes
2 answers

ARKit and RealityKit – Collaborative Session

I can't find any examples of RealityKit collaborative session. I set up Multipeer Connectivity bu I have no idea if I'm doing it wrong: configuration.isCollaborationEnabled = true but when I try to load in a Reality Composer box file on two…
0
votes
1 answer

Getting rotation of ARAnchor from didAdd anchors

So I am using session(_ session: ARSession, didAdd anchors: [ARAnchor] to get all detected planes (I cannot use renderer(_ renderer: SCNSceneRenderer, didAdd node: SCNNode, for anchor: ARAnchor) Because I am using RealityKit instead of ARKit). So…
Mostafa
  • 1,522
  • 2
  • 18
  • 34
0
votes
0 answers

Importing RealityKit framework into a project makes older devices crash

I'm importing RealityKit on one specific view controller that only shows to users who have iOS 13 available: import RealityKit import Combine @available(iOS 13.0, *) class ARMainViewController: UIViewController { However, if I install the app into…
Jacobo Koenig
  • 11,728
  • 9
  • 40
  • 75
0
votes
0 answers

Create rolling dice in Reality Composer

I'm trying to create a dice game in Reality Composer. Created a cup and dice in Blender, exported them as .obj files and converted them to .usdz. The cup has a rigid body (passive) and the dice a rigid body (active). The goal is to put the dice into…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
-1
votes
1 answer

Can I get animation from Reality Composer by coding?

I got a usdz model with animation by reality converter, then imported it into my realitykit project. In reality composer, I can set a trigger, for example, click the model to play the animation. But I still can't find a way to control animation in…
-1
votes
1 answer

ARKit – Adding bounding box to anchor?

I'm using: ARView, RealityFoundation I am using the following source code to add boxes to ARView But now it will draw boxes (mesh), my goal just want to draw bounding boxes (depicted in the following image) I think to change ModelComponent(mesh:…
AnhTuan
  • 205
  • 3
  • 6
-1
votes
1 answer

Show Offscreen Object / Target Indicator in Reality Kit

I would like to have an indicator to let users know there is an AR object off screen (as suggested in the Human Interface Guidelines). How would I do this in RealityKit?
mabarif
  • 241
  • 2
  • 10
-1
votes
1 answer

How to use iPhone LiDAR sensor with Web app?

I need to create WebAR using iPhone 12's LiDAR sensor. Is that possible to get permission or API to access it? Kindly suggest me the good reference for my requirement.
-1
votes
1 answer

"unrecognized selector sent to instance" error when adding ViewController

I've recently attempted to add a welcome screen to my AR app that works as a Home screen. When the app loads, the user can tap the button and then the app freezes, crashes and displays the code "Thread 1: "-[_0_2_2020_2.WelcomeViewController…
Tyler Kurtz
  • 137
  • 9
-2
votes
1 answer

How to download USDZ by URLSession?

I download usdz by urlsession in my code: let url = URL(string: "download usdz url") let documentsUrl = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first! let destinationUrl =…
-2
votes
1 answer

How to achieve below scenario, using RealityKit and RealityComposer Or use ARKit with SceneKit?

Using ARKit on tap I am going to add an object (.scn file) in SceneView and perform actions like move, rotate and resize using Long Press, Pan gesture and Pinch gesture respectively. Now I add object in RealityComposer and add it in Xcode and using…
BSB
  • 277
  • 1
  • 10
1 2 3
52
53