Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ARWorldMap #53

Open
aferriss opened this issue Jun 27, 2018 · 0 comments
Open

Implement ARWorldMap #53

aferriss opened this issue Jun 27, 2018 · 0 comments

Comments

@aferriss
Copy link
Collaborator

ARWorld map enables persistent AR (i.e. if you close the app and reopen in the same location it should still work, as well as multi-user AR. To my eyes it looks like the world map is essentially a copy of the AR session state.

It looks like in Apple's example they are using the multipeer connectivity framework to send the world map between devices. I found some work done on getting multi-peer going with oF but it has been inactive for a few years now.

My feeling is that the first step in this would be capturing and saving the world map to device for persistence. This method looks like it can grab the map if the world map status is adequate.

After a map is saved you can set a session's initialWorldMap property to load it up when a session begins.

As for the multipeer AR, it looks like you can send the map in the completion handler of getCurrentWorldMapWithCompletion, and upon receiving the map you can reinitialize your AR session with the new map. Apple recommends only sending the world map once since it is a resource heavy operation. You'd then need some additional methods for sharing and updating the anchors / objects placed in the world between users (i.e sendAnchor(ofVec3f anchor) ).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant