Origin Anchor for Private Test Meshes

Origin anchors are now provided for private meshes. Use origin anchors to place private meshes in your Unity scene and align your virtual content with your private scans.

The workflow for generating and using origin anchors is as follows:

  1. Niantic Wayfarer

    a. Make a Private Scan and upload to the Lightship developer portal. For more details see Creating Private VPS Locations.

    b. Niantic processes the scan and makes a mesh download available on the portal in a couple hours.

  2. Lightship Portal

    a. Download your Private Mesh from the Lightship Portal. The download now includes an Origin Anchor for the mesh (a base64 string) contained in a separate .b64 file in the mesh zipfile. Open the .b64 file in a text editor to access the anchor string. Note that the anchor string is generated each time you download, however previously downloaded anchor strings for the same mesh are still valid and can still be used as long as the private scan is still valid.

  3. Unity Editor

    a. Deserialize the anchor string into a Wayspot Anchor payload:

     `payload = WayspotAnchorPayload.Deserialize(origin_anchor_b64String)`

    b. Treat the deserialized payload as an existing WayspotAnchorPayload. See the documentation, instructions, and example (WayspotAnchors example scene in ARDK-Examples) for more details.

    c. Once restored, the origin anchor aligns the mesh origin to the world, so the mesh can be placed on top of the anchor.

  4. On Device

    a. In your application provide the Origin Anchor to Wayspot Anchor APIs.

    b. The Origin Anchor is resolved on device, aligning the mesh in AR.


See also MattMurton’s plugin for easier importing of Draco meshes into Unity: VPS private mesh (Draco) importer

Special thanks to Kyle McCandless for working on this!


Thanks for posting this, it’s exactly the type of documentation i needed to get my project to work :ok_hand:

1 Like