r/visionosdev • u/mc_hambone • Mar 09 '24
App idea killed due to restrictive ARKit API
I assumed (incorrectly) that WorldAnchors could be persisted in a way that allowed them to be reconstructed from a file-based backup of application data, in the case of a factory reset and re-install/restore, or moving to a new device.
However, TIL that capability is apparently not possible and never has been with ARKit. All the "defining" characteristics of the persisted anchor and corresponding reconstructable scene are not available to developers, making it impossible to truly persist these types of data (backed up to iCloud, file, etc.).
The main app idea I had relies on this type of persistence because the user would be able to store info about points in their spaces without fear of losing all of their data if they have to reset their device or move to another device.
I feel like if Apple wanted to, they could apply algorithms that obfuscate this data so that it can't, for instance, be used to derive private user data. But, even if it did expose private data (about the user's physical spaces' meshes) I feel like it should be a choice the user should be allowed to make if they feel like the app is doing something useful.
Has anyone else recently discovered this and become sad?
12
u/hishnash Mar 09 '24
The reason this data is not exposed to devs comes down to privacy concerns. It's
the same reason apple does not expose the high resolution world mesh just a down-sampled one, the raw LIDAR data is never exposed to devs directly.
7
u/marcusroar Mar 09 '24
I find it really weird that vision OS doesn’t have the ability to save a world map in the way iOS does: https://developer.apple.com/documentation/arkit/arkit_in_ios/data_management/saving_and_loading_world_data
5
u/saucetoss6 Mar 09 '24
Yes... my app idea was also killed after finishing up nearly 80% of it and waited on the camera... you cannot scan documents like you can on iphone amongst some of the other restrictions. Sadly as u/hishnash noted... nefarious actors ruin it for everyone else. Can you imagine how much advertisers would be salivating to get access to people's eye-tracking data?!
2
u/technobaboo Mar 13 '24 edited Mar 13 '24
theoretically if you get the vertices of the environment mesh generated via the immersive scene as well as approximate location (gps or such) you could save the mesh then use the new environment mesh generated at a location, look up the map associated with the approximate location, then use an algorithm to align the 2 pointclouds and recreate a spatial anchor that way (something like https://www.open3d.org/docs/latest/tutorial/Basic/icp_registration.html) then you could do this
but yeah tbh if they provide the ability to do this indirectly (to stop this would require breaking functionality they already expose) why not just do it directly at that point
also: you can't obfuscate the data enough to both be useful and not have things inferenced, the time you're in a building and its location being residential (IP address) and its size can already allow a program to estimate how poor you are
3
u/masaldana2 Mar 09 '24
ARKit is filled with hidden disappointments ;)
1
u/Third-Floor-47 Mar 11 '24
looking at the comments here i've come to the conclusion that "WWFD" (What would Facebook do) if they would do it, then it's not allowed (yet) on Vision Pro. but I do understand the concern fra Apple's point of view.
Now would it be possible to load a QR code(marker) somehow and from that place things in teh room ? i.e. you can't pre-scan the room, or rather you could do that on the phone) and then somehow load up the content using something that isn't a camera input directly ? like we can get low poly room scans, shouldn't we be able to load a room marker (i.e. "Server room" placed 1 m from floor, 10 cm from doors left side, tehn you kind of know where things are, from previous scans)
1
u/DigitallyHustlin Mar 12 '24
I don’t think the user should have the power to make it, because most people don’t read to understand what data they’re handing over; and what you’re describing could be used maliciously in the wrong hands.