Hi all,
I’d love to use the camera output of the Oculus, preferably as a Rendertexture.
Before Unity 5.1, i could just take the RenderTextures in the Oculus Camera Rig. Is there any way at all to access these in Unity 5.1 with the native VR support?
Thanks!
I think you should be able do it with a shader. Make a shader that writes the result pixels back to a texture.
hardware that supports this extension should be able to handle it. GL_ARB_shader_image_load_store extension
Unfortunately, I didn’t see any GameObjects or anything in my Unity Scene while it was running that had anything to do with the Oculus. Just the Camera ( which still looks like a single normal camera) is moving with the headtracking.
I wouldn’t know where to apply that shader. I know how to get data from a rendertexture, but I’m missing the rendertexture to use that shader on since 5.1
The workaround I created simply involved creating two rendertextures in an image effect and accessing these instead.
Of course, those are not the real textures but at least most of my old scripts work again 