Search Unity

ARFoundation and GoogleARCore.Frame...

Discussion in 'AR' started by christougher, Mar 19, 2019.

Thread Status:
Not open for further replies.
  1. christougher

    christougher

    Joined:
    Mar 6, 2015
    Posts:
    558
    Hi, I'm trying to update the ARCameraLighting project which used the short lived UnifiedAR. With the new XR package imports GoogleARCore seems to have quite limited functionality. How can do get the functionality from these GoogleARCore.Frame lines in ARFoundation?

    Code (CSharp):
    1. Frame.CameraImage.DisplayUvCoords;
    2. Frame.CameraImage.Texture
    3. Frame.LightEstimate.PixelIntensity

    Thx!
     
  2. tdmowrer

    tdmowrer

    Joined:
    Apr 21, 2017
    Posts:
    605
    If you subscribe to the ARSubsystemManager.cameraFrameReceived event, you can get all this info from the from the ARCameraFrameEventArgs. We don't directly expose the display UV coordinates; instead it is available as a display matrix which contains similar information.
     
Thread Status:
Not open for further replies.