Search Unity

Resolved AR Foundation Landscape Orientation Issues Android

Discussion in 'AR' started by brad_werner_VB, Sep 30, 2021.

  1. brad_werner_VB

    brad_werner_VB

    Joined:
    Nov 20, 2018
    Posts:
    4
    I converted an android application's existing AR Core SDK functionality to the newer AR Foundation system. The initial implementation was successful without much difficulty when running in Portrait orientation.

    When testing in Landscape orientation, I found that the trackables seem skewed and the camera angle appears to have an exaggerated perspective. Additionally, all planes, cloud points, and anchors shift slightly with the camera movement. If I rotate back to portrait, it corrects itself and works as expected (or at least seems to).

    Configuration:
    Unity version 2020.1.15
    Android Platform
    AR Foundation version 3.1.10
    AR Core XR Plugin version 3.1.10

    Additional Notes:
    - Using the AR Pose Driver component on the AR Camera.
    - There are nested cameras under the main AR Camera
     
  2. brad_werner_VB

    brad_werner_VB

    Joined:
    Nov 20, 2018
    Posts:
    4
    An internal solution to this problem was found:

    All nested cameras needed to update their projection matrix to match the parent AR Camera's programmatically. It would be great if the AR Foundation classes had considerations for additional session driven camera data.