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.
  2. Dismiss Notice

ARFoundation - ARKit - Is there a way to zoom out the camera using ARCameraBackground.cs?

Discussion in 'AR' started by tahafarooq, Aug 25, 2020.

  1. tahafarooq

    tahafarooq

    Joined:
    Sep 18, 2015
    Posts:
    7
    Hi,

    I have tried a number of things to zoom out the feed displayed by the camera on the scene's background via the ARCameraBackground.cs but nothing seems to work.

    The default camera app shows a zoomed out camera image but my app using ARKit shows a little zoomed in camera image.
     
  2. firativerson

    firativerson

    Joined:
    Jan 22, 2015
    Posts:
    33
    any solution to this by any chance?
     
  3. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    746
    The image displayed by
    ARCameraBackground
    is the most fully zoomed out version of the image for your device's screen. AR Foundation applies the display matrix provided by Apple and does not modify (ie "zoom in") on the image.

    The purpose of the display matrix is to crop the image and rotate it so that it displays correctly within the dimensions of your screen.
     
  4. firativerson

    firativerson

    Joined:
    Jan 22, 2015
    Posts:
    33
    Thanks for the reply, changing the camera FOV helped a little.
     
    davidmo_unity likes this.