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

SceneKit SCNPhysicsHingeJoint equivalent in RealityKit?

Is there an equivalent to SceneKit SCNPhysicsBehavior in RealityKit? I'm attempting to create a chain of multiple Entities but can't seem to find anything similar to SCNPhysicsHingeJoint in RealityKit so far
0
votes
1 answer

Which goal should be chosen for ARCoachingOverlayView when detecting faces or images?

ARCoachingOverlayVew has 4 goal types: horizontalPlane, verticalPlane, anyPlane and tracking. But the Reality Composer has 5 types of anchor: Apparently, the first two are for when the horizontal What mode should I adjust the ARCoachingOverlayVew…
Duck
  • 34,902
  • 47
  • 248
  • 470
0
votes
1 answer

RealityKit arview snapshot not capturing 3d object

I currently have an application using RealityKit to add AR content to the view. I have a button that allows the user to take a photo. Based on the documentation, ARView.snapshot() seems to do this. However, the image captured is not including the AR…
0
votes
1 answer

What is the proper workflow for creating city landscapes for use with RealityKit

I'm learning up on RealityKit and trying to create a city landscape. Watched this video from Apple and downloaded the associated project talking about RealityComposer https://developer.apple.com/videos/play/wwdc2019/605 My initial goal is to create…
Avba
  • 14,822
  • 20
  • 92
  • 192
0
votes
2 answers

How to detect a 2D image using ARKit and RealityKit?

I want to detect a 2D image using ARKit and RealityKit. I don't want to use SceneKit since of many implementations based on RealityKit (access to Experience.rcproject). Any ideas? I've tried this code import ARKit import RealityKit class…
0
votes
1 answer

Get width and depth of an RealityKit Entity during a scale gesture

I have a RealityKit that allows for a user to adjust its scale and translation along a plane through some gestures. It has been generated as follows: let aPlane = MeshResource.generatePlane(width: width, depth: depth) let model = ModelEntity(mesh:…
defn
  • 1
  • 1
0
votes
1 answer

Arkit iOS ( how to make a button to choose from mutiple models)

I’m just starting in iOS development. I’m currently working on a AR app that allows me to choose from different models/equipment to place. I cannot seem to figure out how to add a button or option for the user to choose from the multiple models and…
0
votes
1 answer

How to perform action on RealityKit animation completion

In WWDC19 talk they showed how to animate Entity and perform action on animation completion (go to minute 12 for reference) like this: let animationController = move(to: flipUpTransform, relativeTo: parent, duration: 0.25, timingFunction:…
Dilshod Turobov
  • 132
  • 2
  • 12
0
votes
1 answer

SWIFT: Load different reality Scenes via Variable

So, i am trying to load different Scenes made in RealityComposer, depending on a variable. What worked so far: let SceneAnchor = try! Experience1.loadScene() arView.scene.anchors.append(SceneAnchor) return arView Now i looked into apples…
r00tCode
  • 11
  • 1
0
votes
1 answer

only take photos to exclude 3d object in ar?

i want to take photo in arkit ,but don't want to include 3d object. realitykit snapshot(saveToHDR:completion:) Takes a snapshot of the current view in iOS. arView.snapshot(saveToHDR: false) { (image) in UIImageWriteToSavedPhotosAlbum(image!, nil,…
zhou junhua
  • 462
  • 1
  • 4
  • 12
0
votes
1 answer

ARKit – Not able to detect a plane

I am not able to detect surface using ARKit. I have also added the image of the surface. How to detect a surface with less texture accurately?
0
votes
1 answer

Is there ObjectTracking in RealityKit or SceneKit?

I tried out object detection in SceneKit but the object is only detected in the beginning once virtual objects are placed the object is no longer detected or tracked. I remember reading that object detection is not a continuous process but can not…
0
votes
1 answer

how to add entity to CollisionGroup in realitykit

How do I include an entity in a collision group? When I use func raycast(...) in RealityKit, the parameter mask defines: "A collision mask that you can use to prevent collisions with certain objects." mask is CollisionGroup, how do I include my…
zhou junhua
  • 462
  • 1
  • 4
  • 12
0
votes
1 answer

AnimationPlaybackController has only resume(), pause() and stop() methods

AnimationPlaybackController has only resume(), pause() and stop() methods in RealityKit. func move(to:relativeTo:duration:timingFunction:) How to loop or repeat asset's animation?
zhou junhua
  • 462
  • 1
  • 4
  • 12
0
votes
1 answer

How to detect and visualize ceiling with RealityKit?

Since RealityKit is new to me, apparently the plane anchors now have classification (floor, wall, ceiling, ...), so does anyone of you know the procedure of detecting ceilings (or any class of a plane)with RealityKit and ARKit and visualizing them…
I25M
  • 31
1 2 3
52
53