iOS 15 RealityKit AnchorEntity possible bug

The context is: ARSessionDelegate func session(_ session: ARSession, didAdd anchors: [ARAnchor]) {}

Upon Image Detection, place an overlay of a RC Entity at the ImageAnchor location.

Using IOS 14, I have been reliably using: mySceneAnchorEntity = AnchorEntity(anchor: imageAnchor) to render additive RC scene content. Additive model entities render correctly in the field of view.

When I upgraded to IOS 15 using the same code that had been working for many (~12) months on all versions of IOS 14, my code failed to render any RC scene content. I get a ghosting of all of the render content in the proper location, but visible only for a moment, then it disappears.

So, I finally found the root cause of the issue. It appears that IOS 15 only renders correctly in my application using: mySceneAnchorEntity = AnchorEntity(world: imageAnchor.transform).

This led to many frustrating days of debugging to find the root cause. As a side note, IOS 14 renders RC scene entities correctly using both variants of AnchorEntity: mySceneAnchorEntity = AnchorEntity(anchor: imageAnchor) and mySceneAnchorEntity = AnchorEntity(world: imageAnchor.transform)

So, this leads me to believe there is an issue with the behavior of IOS 15 with the following version of AnchorEntity: mySceneAnchorEntity = AnchorEntity(anchor: imageAnchor)

  • Apple dev: any update on the issue FB9679173?

  • Current status is it's been assigned to an engineer to investigate, and it's marked as a high priority issue. Of course this is subject to change, but that is the status right now. No ETA available unfortunately.

  • Apple dev: any update on the issue FB9679173?

Accepted Reply

Hi Mike, this is a known issue, and the RealityKit team is working on a fix. I don't have an ETA for the fix though.

  • Thanks, Apple, for the fast feedback. Helps me stay sane:)

  • Apple RealityKit dev group ask: Can you post to this topic when you have a fix ETA, please?

  • Hi, we don't usually provide ETAs unfortunately. However, feel free to ask for an update in a few weeks and I can check on the issue FB9679173

Add a Comment

Replies

Hi Mike, this is a known issue, and the RealityKit team is working on a fix. I don't have an ETA for the fix though.

  • Thanks, Apple, for the fast feedback. Helps me stay sane:)

  • Apple RealityKit dev group ask: Can you post to this topic when you have a fix ETA, please?

  • Hi, we don't usually provide ETAs unfortunately. However, feel free to ask for an update in a few weeks and I can check on the issue FB9679173

Add a Comment

Does this impact all AnchorEntities created with an ARAnchor?

What other behaviors have you seen with this?

  • J0hn, it only effects AnchorEntity(anchor: imageAnchor). AnchorEntity(world: x)works fine, for example. But, world: is not as suitable for our application. anchor: has the desired effect of minimizing content drift in our app.

    Behavior, as stated above is that no entities parented this way render in the field of view. Read my writeup above for the full description. regards, MikeN

  • Apple RealityKit dev group: thanks for the update! MikeN

Add a Comment