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. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Question Access CPU Image within Simulation

Discussion in 'Unity MARS' started by DoAugMenRo, Dec 23, 2020.

  1. DoAugMenRo

    DoAugMenRo

    Joined:
    Sep 17, 2019
    Posts:
    18
    I want to access the CPU Image, as it is done in the AR Foundations CPUImageSmaple.cs. If the app is deployed to the smartphone everything works as intended and i see the CPU image on a RawImage. However, in play mode the RawImage stays white. OnCameraFrameReceived() is not called. It seems as if the m_CameraManager.frameReceived event is never fired.

    Code (CSharp):
    1. m_CameraManager = MarsRuntimeUtils.GetActiveCamera(true).GetComponent<ARCameraManager>();
    did not resolve the issue.

    My setup: Unity 2019.4.3f1, AR Foundation 4.1.0 preview 7, Unity MARS 1.2.0

    Thank you in advance!
     
  2. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    188
    Hi there!

    We do not currently simulate camera image, but we are working on adding this feature to a future update. I'll update this thread when that is available. Stay tuned!
     
    DoAugMenRo likes this.
  3. MajorWolph

    MajorWolph

    Joined:
    Apr 28, 2018
    Posts:
    17
    This still seems to be the case in newer versions. Is there any plan on adding this in the future?
     
  4. ankur-unity

    ankur-unity

    Unity Technologies

    Joined:
    Aug 12, 2021
    Posts:
    34