Search Unity

Question Render to OpenVR Overlay

Discussion in 'VR' started by fpga, Jun 9, 2020.

  1. fpga

    fpga

    Joined:
    Jul 12, 2017
    Posts:
    5
    Hi,

    I attached a tracker to my chair and try to render the chair to an open vr ovelay, so I can see my chair in game.
    So far so good and the chair looks pretty good with joints for all the moveable parts behaving nicely.

    So the Camera needs to render to a RenderTexture and that is handed to OpenVR as Overlay.
    Works fine except the Camera does not render Stereoscopic when rendering to RenderTexture.

    My setup so far is Unity2019.3.10f1 with legacy OpenVR enabled and SteamVR plugin.
    Rendering is SingelpassStereo and using the builtin render pipeline (upgrade to URP seems doable if needed).

    I also tried to replace the RenderTexture of the main camera, but I don't know how to intercept before OpenVR.Compositor.Submit is called.

    Is it possible with Unity to Render into a stereo RenderTexture?