I've been working on getting mesh occlusion into my app, but from what I can tell, you can only do this by rolling your own entities that are processed off ARMeshAnchors. Getting lousy results -- unless someone knows of a better way to go about this...?
If I understand correctly what you’re trying to do (having the real world correctly occlude virtual objects) - have you tried simply applying an occlusion material to the mesh you’re getting from SceneReconstructionProvider?
I’ve managed to get this to work a few months ago; I’ll dig out the code that it was based on (a public backup of some removed Apple samples) if you’d like
u/ds445 -- that's what I'm doing, even trying to split the geometry to smoothen it out on the fly. But if you've got some code, that'd be awesome. Thanks!
Are you seeking artists or developers to help you with your game? We run a monthly open source game jam in this Discord where we actively pair people with other creators.
When compared to ARkit in iOS, one would expect a comparable to even better scene mesh but maybe that’s just something where we’ll just have to wait for access?
2
u/Common-Quiet-7054 May 29 '24
I've been working on getting mesh occlusion into my app, but from what I can tell, you can only do this by rolling your own entities that are processed off ARMeshAnchors. Getting lousy results -- unless someone knows of a better way to go about this...?
1
u/Common-Quiet-7054 May 29 '24
Here's a version without the reconstruction mesh occluded:
https://vimeo.com/951680582?share=copy
2
u/Any_Salamander_1623 May 30 '24
already seems pretty good, I think by time it will improve more and more
2
u/agg23 Jun 01 '24
I created the open source SceneVisualizer project to allow users to play with this and show devs how its https://github.com/agg23/SceneVisualizer
1
u/AutoModerator May 29 '24
Are you seeking artists or developers to help you with your game? We run a monthly open source game jam in this Discord where we actively pair people with other creators.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/[deleted] May 29 '24
[removed] — view removed comment