1
NGUI 3 Support / Re: NGUI and Oculus Rift DK2
« on: November 20, 2014, 04:45:00 AM »
Found out why. The new Oculus SDK renders into a RenderTexture. So the RenderQueue doesn't work out unfortunately here - camera depth neither.
It was possible to put the NGUI UI as child of the right camera in the OVR camera rig at a distance of 1, but if you have geometry in front of the camera like me (sitting in a roller coaster), the object gets rendered in between. Not a solution.
I had the idea then to render NGUI out directly into the render texture of the right camera. Technically works, but the UI is rendered then half of the width in the middle of the screen.
I'm now experimenting with rendering NGUI to a render texture and then copying over the render texture over both render textures of the 2 OVR (Oculus) cameras. Will see if that works out. At least this way NGUI is rendered over the 2 cameras.
It was possible to put the NGUI UI as child of the right camera in the OVR camera rig at a distance of 1, but if you have geometry in front of the camera like me (sitting in a roller coaster), the object gets rendered in between. Not a solution.
I had the idea then to render NGUI out directly into the render texture of the right camera. Technically works, but the UI is rendered then half of the width in the middle of the screen.
I'm now experimenting with rendering NGUI to a render texture and then copying over the render texture over both render textures of the 2 OVR (Oculus) cameras. Will see if that works out. At least this way NGUI is rendered over the 2 cameras.
