Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
muglore's avatar
muglore
Explorer
11 years ago

Does the OVRcontroller instansiate camera at runtime?

I've noticed that the 0.4.1 OVR controller instansiates a camera at runtime.

I'm wondering what the function of that new camera is? It's created as a component under the OVR parent. I'm guessing it's used for the GUI but not sure.

2 Replies

Replies have been turned off for this discussion
  • ryahata's avatar
    ryahata
    Honored Guest
    If I'm not mistaken it's not actually rendering any Unity content. It exists as a hack to force Unity to render the left and right eye cameras. I'm not 100% sure though.
  • That is correct. OVRCameraController makes sure there is a Camera on its GameObject at startup. It sets the Camera to be trivial to render. It doesn't contribute to the final output or GUI, but just forces Unity to render the left and right eye textures. They get composited in our native plugin.