Search Unity

ARFoundation does not support Restore AR Content After Relocalization?

Discussion in 'AR' started by yty, May 7, 2020.

  1. yty

    yty

    Joined:
    Aug 10, 2009
    Posts:
    82
    https://developer.apple.com/documentation/arkit/world_tracking/saving_and_loading_world_data

    https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.0/manual/index.html

    How does arfoundation use ARSCNView And func renderer(SCNSceneRenderer, didAdd: SCNNode, for: ARAnchor)?

    Saving a world map also archives all anchors currently associated with the AR session. After you successfully run a session from a saved world map, the session contains all anchors previously saved in the map. You can use saved anchors to restore virtual content from a previous session.

    The same ARSCNView delegate method renderer(_:didAdd:for:) fires both when you directly add an anchor to the session and when the session restores anchors from a world map.
     
  2. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324
    ARFoundation / ARKit does not use ARSCNView.
     
  3. yty

    yty

    Joined:
    Aug 10, 2009
    Posts:
    82
    @todds_unity

    arfoundation ....How to get the saved ARAnchor after loading the worldmap?
     
  4. todds_unity

    todds_unity

    Joined:
    Aug 1, 2018
    Posts:
    324