RoomPlan and RealityKit?

Apple's RoomPlan demo software page says it is powered by RealityKit, but I am having troubles finding any hooks into the standard RealityKit APIs.

For example, RoomPlanView doesn't seem to be related to ARView, and I cannot find any Scene property to access (or add) RealityKit entities.

Does anyone know if these RealityKit classes are accessible through RoomPlanView?

Note: I did find the ARSession through roomCaptureView?.captureSession.arSession

RoomPlanView is not a built-in type to the RoomPlan framework. Are you referring to specific sample code? The RoomPlan API basically provides two ways to capture a room:

  1. Use RoomCaptureView for a ready-to-use view with built in visualization and guidance throughout the scanning progress. This view is intended to provide a standard UX and is not customizable.
  2. Create a RoomCaptureSession that you can use with your own visualization, which may be based on RealityKit or use another renderer. You can use RoomCaptureSessionDelegate and the underlying arSession to update your visualization based on the scanning progress.

What about developers that love the look and feel of the standard built in visualisation but want to augment their own visualisations on the top. We use room plan as a survey tool, so its important for us to overlay certain information on the walls and be able to control the appearance of this information. But whenever I tried to add anything to the default view it doesn't show, I'm guessing you have some kind of post processing to filter that stuff out as the objects exist in there but just don't show.

I appreciate the default view is not customisable. by default, but how hard would it be to recreate that default view in your own view. If Apple released code on how to do this, that would be helpful, as then people can use the standard UI but make additions to it if necessary.

The downside of using your own custom view is it's not easy to reproduce what apple has done, which quite frankly is great for 99% of use cases, but for the 1% like us that just want to add extra stuff, it's challenging.

RoomPlan and RealityKit?
 
 
Q