Questions about the 1.2.3 Vision OS VR Sample

With the help of @mtschoen and others I was able to get the 1.2.3 Vision OS Sample working.

I read the one page document that talks about it. I didn’t see anything in that document to tell me how to turn off the surfaces that appear for the walls, desk and other items in my area.

Is it possible to turn those off? My game is fully immersive and those distract from my game.

Yep! Take a look at the XR Origin object and it’s children. The planes come from a component called ARMeshManager, and the meshes come from a Mesh Manager component in the hierarchy of children of the XR Origin. You can learn more about these features in the AR Foundation documentation. AR Foundation | AR Foundation | 5.1.4

I have tried disabling the Mesh Manager or the AR Mesh Prefab. I even removed the Mesh Manager from the scene completely.

The meshes still show up in the scene.

How do I get rid of them?

@mtschoen Is this a bug or am I doing something wrong? I can report it if it is a bug…

Hey sorry I missed this yesterday.

That’s pretty surprising. Are you sure you disabled/deleted the Mesh Manager and the Plane Manager? Both will put meshes on surfaces, but the plane manager only does planar surfaces. The mesh manager creates transparent blue meshes on everything, and the plane manager creates transparent orange planes with black outlines.

Is it possible you have multiple copies of the scene, and you’re modifying a different scene from the one you’re building? I can’t think of any other reason why you’d be seeing ARKit meshes without a mesh manager or a plane manager.

I am sure I am showing the scene that I have modified.

I completely deleted the Mesh Manager. I don’t see anything anywhere called the Plan Manager. Where is that?

This is everything in the Hierarchy. If you can tell me where to find this Plane Manager, I would by happy to delete it.

Is it maybe created by a script somewhere? If so, which one?

Never mind. I found it. It is a component script on the XR Origin.

I don’t see that mentioned in your original answer. Maybe in a previous version of the sample it was on its own object or something.

Thank you so much for the quick responses! Now I can move on.

Yep! That’s the one. And you’re right, I only mentioned the mesh manager in my first reply. I thought you were only interested in disabling the room mesh. There is also a tracked image manager and anchor manager on the XR Origin object which demonstrate the other AR Foundation features that you can use on visionOS. Strictly speaking, all you need is an AR Session and the tracked pose driver on your camera for a minimal VR scene on visionOS. The rest of the stuff in this sample exists to show how to use the breadth of AR features, platform input, and XR Interaction Toolkit objects.

I am glad it has all of those things for when I do need them.

I am sure at some point you guys will flesh out the documentation on everything.

Thank you for all the hard work.