Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    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:
    194
    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:
    27
    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