Search Unity

Rift - Access individual cameras

Discussion in 'AR/VR (XR) Discussion' started by OlliQueck, Jan 11, 2016.

  1. OlliQueck

    OlliQueck

    Joined:
    Apr 11, 2013
    Posts:
    49
    hi guys,

    i'm currently working on a VR-Scene with a waterplane like from the integrated unity-water. Problem is that the seperat rendered reflection & refraction cameras are only rendered once, so the reflection & refraction aren't stereoscopic, which looks bad. With Unity4 Rift plugin i could access the seperate cameras and do what i want but with unity5's integrated VR-System this feature is gone.
    Anyone knows a workaround? i'd need access to the individual transforms and culling masks of left & right camera.
     
  2. OlliQueck

    OlliQueck

    Joined:
    Apr 11, 2013
    Posts:
    49
    wow.... just wasted 7 hours fighting through shaders and reflection scripts to create multiple reflection cameras and make the shader use the reflection camera which is closer to CamerWorldPosition and so on, trying to find a workaround... and then i realized that there's a "Target Eye" setting on the camera that makes it possible to assign individual cameras to every eye... fixes all problems at once, damn it!