Questions tagged [reality-composer]

Apple Reality Composer lets you quickly prototype and create high-quality content for AR apps. Also RC allows you produce dynamics and animations for iOS, iPadOS and macOS to enrich your 3D scene.

Reality Composer provides you with a simple and intuitive user interface for making 3D scenes for Augmented and Virtual Reality apps. Reality Composer works on mobile and desktop platforms where you can use native assets' library or use your own .usdz files (developed by Pixar) to compose 3D scenes.

In Reality Composer you can supply your models with physics, animation and audio, then save it inside .reality, .usdz or .rcproject file and open it in -oriented Xcode project. When you build a scene on iPhone or iPad you can test it pressing AR button.

153 questions
3
votes
1 answer

RealityKit – Get a model entity from USDZ file

I haave a file (exists in main bundle with target membership checked) named matrix.usdz and need to load it with do { let path = Bundle.main.path(forResource: "Matrix", ofType: "usdz")! let url = URL(fileURLWithPath: path) …
3
votes
1 answer

Play animation when image anchor detected

In RealityKit I have an image anchor. When the image anchor is detected I would like to display an object and play animation it has. I created an animation in Reality Composer. It's a simple "Ease Out" animation which comes built-in Reality…
3
votes
1 answer

How to install gestures for Reality Composer?

I added USDZ with animation in the Reality Composer (.rcproject) After Load the scene and added to the review I tried to install gestures like Rotate scale ... but won't work let ganGes = gangnim?.gnagnumObject as? (Entity &…
3
votes
1 answer

How to trigger an entity's animation declared in .reality file?

In Reality Composer I created MyScene.rcproject, in MyScene I created a panel and its spin animation, the action sequence begins when its notification is posted from code. When it's come to trigger the animation from MyScene.rcproject it works like…
Edoardo
  • 657
  • 7
  • 24
3
votes
1 answer

Is there a way to programmatically change the material of an Entity that was created in Reality Composer?

I want to change the color of an entity programmatically after it was created in Reality Composer. As Reality Composer does not create a ModelEntity (it creates a generic Entity), it does not appear that I have access to change its color. When I…
3
votes
1 answer

Implement a crosshair kind behaviour in RealityKit

What I want to achieve: Attach a sphere to the camera position (so that it always stay at the center of the screen as the device move) and detect when it is on top of other AR objects - to trigger other actions/behaviour on the AR objects. Approach:…
3
votes
1 answer

Will a Reality Composer project file with 2 scenes play in Xcode?

I am using Reality Composer and have 2 scenes in a project file. Will both of those scenes play in my Augmented Reality app?
3
votes
1 answer

RealityKit Change USDZ diffuse material at runtime

I am loading a USDZ model with RealityKit in Swift. The model loads fine with it's texture. However, I am unable to change the diffuse property of the material, the material always comes back as AnyMaterial. I can override the material completely…
Chris
  • 2,739
  • 4
  • 29
  • 57
3
votes
1 answer

Issues adding texture to Reality Converter?

Anyone having issues with Reality Converter by Apple. Mainly, when I add an .obj file, it’s able to display the white object. However, when I go ahead and add a texture .png files into the Materials folder, nothing gets updated. I end up with a…
brockhampton
  • 294
  • 2
  • 8
3
votes
3 answers

How do I spin and add a linear force to an Entity loaded from Reality Composer?

I've constructed a scene in Reality Composer that has a ball that starts the scene floating in the air. I'm attempting to programmatically throw the ball while simultaneously spinning it. I tried to do this through behaviors in Reality Composer,…
3
votes
1 answer

Is there a good way to implement RealityKit into a Swift playground?

I want to be able to add a file created in Reality Composer into a Swift Playground for testing purposes. I also think it would be interesting to use as a supplement to a playbook. How would one go about adding an rcproject into a playground like…
3
votes
0 answers

Using Reality Composer Project File in Swift Playgrounds

To my knowledge, Reality Composer Projects files .rcproject are commonly placed in Xcode projects along with all other source files, then the project can simply be referred to by its name: For example, let boxAnchor = try!…
Lucas W
  • 125
  • 1
  • 10
3
votes
2 answers

How can I reduce the opacity of the shadows in RealityKit?

I composed a scene in Reality Composer and added 3 objects in it. The problem is that the shadows are too intense (dark). I tried using the Directional Light in RealityKit from this answer rather than a default light from Reality Composer (since…
3
votes
1 answer

RealityKit – How to edit or add a Lighting?

I'm trying to add lighting in my RealityKit AR Scene. And I can't find the Lighting option in Reality Composer. If there's a way to add Directional Light or edit it then please tell me. I've tried Apple Documentation but can't understand how to add…
3
votes
1 answer

Reality Composer – Is it possible to assign vertical and horizontal anchors simultaneously?

I’ve been learning about RealityKit lately, and have come across Reality Composer. However, it seems that in the app the user can only have one anchor at a time. I was wondering if it is at all possible to have two anchors in a scene, a vertical and…
AlexH
  • 828
  • 7
  • 26
1
2
3
10 11