Search Unity

  1. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted Access CPU Image within Simulation

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

  1. DoAugMenRo

    DoAugMenRo

    Joined:
    Sep 17, 2019
    Posts:
    12
    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:
    139
    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.
unityunity