Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Resolved Where is World Space p(0,0,0) in any AR Scene?

Discussion in 'AR' started by eco_bach, Feb 3, 2021.

  1. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Trying to fully understand World Space coordinates in AR.

    Where does World Space p(0,0,0) or the World Space origin exist?
    Is this the same as the current Camera origin-device location?
    Or is it created once when the application launches (ie fixed and static)?

    If the latter how is it calculated?
     
  2. Anti51

    Anti51

    Joined:
    Apr 20, 2017
    Posts:
    4
    From my experience world zero is where your device is at startup. At least for standard back camera AR. Not sure for front facing (selfie) camera mode.

    ARFoundation docs on AR Session Origin;
    "Because AR devices provide their data in "session space", which is an unscaled space relative to the beginning of the AR session, the ARSessionOrigin performs the appropriate transformation into Unity space."
     
    Last edited: Feb 3, 2021
    eco_bach likes this.
  3. eco_bach

    eco_bach

    Joined:
    Jul 8, 2013
    Posts:
    1,601
    Yep thanks!