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

Question Textures cannot be updated in VR

Discussion in 'VR' started by temihk, Oct 26, 2022.

  1. temihk

    temihk

    Joined:
    Oct 21, 2022
    Posts:
    2
    - I am working on a real-time streaming application. Unity texture can be updated in PC but not Oculus Quest 2, and therefore the stream is not rendered.
    - I tried removing everything else but a sphere and a material attached on it. Then, when I tried to programmatically update the RenderTexture or Texture2D of the material, it works in PC but not Oculus Quest 2. This shows that there is a problem updating the texture in Oculus Quest 2.

    - XR Plugin Management 4.2.1
    - I tried both Oculus XR Plugin 1.12.1 and OpenXR Plugin 1.4.2 respectively. It doesn't work.

    I am using Ant Media Server Enterprise for real-time streaming and its Unity SDK:
    - https://antmedia.io/webrtc-streaming-in-unity/
    - https://github.com/ant-media/sora-unity-sdk-samples
    although the problem seems not to be in Ant Media or its Unity SDK because I can't even update a Texture2D of the material inside VR (can update on macbook)., - I am working on a real-time streaming application. Unity texture can be updated in PC but not Oculus Quest 2, and therefore the stream is not rendered.
    - I tried removing everything else but a sphere and a material attached on it. Then, when I tried to programmatically update the RenderTexture or Texture2D of the material, it works in PC but not Oculus Quest 2. This shows that there is a problem updating the texture in Oculus Quest 2.

    - XR Plugin Management 4.2.1
    - I tried both Oculus XR Plugin 1.12.1 and OpenXR Plugin 1.4.2 respectively. It doesn't work.

    I am using Ant Media Server Enterprise for real-time streaming and its Unity SDK:
    - https://antmedia.io/webrtc-streaming-in-unity/
    - https://github.com/ant-media/sora-unity-sdk-samples
    although the problem seems not to be in Ant Media or its Unity SDK because I can't even update a Texture2D of the material inside VR (can update on macbook).
     
  2. kexar66

    kexar66

    Joined:
    Feb 27, 2013
    Posts:
    48
    @temihk were you able to solve it? If so, could you share the solution? Thanks.
     
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,394
    You say it works on PC. Do you mean inside of Unity?
    If so, does it work on a pc build as well?
    I guess it would be a build issue rather than a VR issue