Include the following details (edit as applicable):
- Issue category: VPS
- Device type & OS version: Android / iOS
- Host machine & OS version: Windows
Description of the issue:
Hello everyone, I am trying to create an application that allows users to place 3D objects at runtime within a private real-world space (such as rooms, studios, or other environments) and make that placement persistent.
For example, if I place a virtual clock on the wall of my room, when I reopen the app, that virtual clock will still be exactly where I placed it on that wall.
I noticed that with your Niantic Wayfarer app, it’s possible to scan a location and use that data to achieve the same thing, but I would like to have this system within my own application. Could you guide me on how to do this?
I apologize if I haven’t explained myself clearly.
Hi there,
This sounds like a perfect usecase for our experimental World Positioning System (WPS)! With WPS, you can place AR content at GPS coordinates you provide. Take a look at our documentation for more information and example implementation: https://lightship.dev/docs/ardk/experimental/world_pose/.
Kind regards,
Maverick L.
Thank you, I will try it out and update you if it works
I’m trying to use the WPS, and I have a question. When I place an object at runtime, do I need to retrieve its longitude and latitude in order to load it back into the world after closing the app?
You’re very welcome!
Yes, you will need the coordinates to place the object at runtime. I would recommend saving the location locally to the device or using a cloud or server approach to do so. The easiest method to get started would be to save each unique location to a file directly on the device. Then, once your app starts, you will read from that file and create the locations again.