Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
jakeleehigh's avatar
jakeleehigh
Honored Guest
12 years ago

OVR cameras only work in editor

On one project that I'm using an OVRPlayerController on, when I'm in the editor I can see the images from the cameras in the game view. Once I hit play, both cameras go black. If I turn off the camera it shows grey in the game view so I'm assuming that this means the cameras are functioning but not displaying anything. Super frustrating!

I am seeing this error which may be the issue:

!IsMatrixValid (matrix)
UnityEngine.Camera:set_projectionMatrix(Matrix4x4)
OVRCamera:SetPerspectiveOffset(Vector3&) (at Assets/OVR/Scripts/OVRCamera.cs:434)
OVRCameraController:ConfigureCamera(Camera&, Single, Single, Single) (at Assets/OVR/Scripts/OVRCameraController.cs:184)
OVRCameraController:UpdateCameras() (at Assets/OVR/Scripts/OVRCameraController.cs:159)
OVRCameraController:Update() (at Assets/OVR/Scripts/OVRCameraController.cs:107)

2 Replies

Replies have been turned off for this discussion
  • Fixed: After trying everything and finding that the cameras were no longer working in any of my unity projects, I restarted my computer. Now everything works fine. The only thing I can think of is that I had just downloaded and ran the hydra tuscany example. In order for that to work I had to also download and run the motion creator for hydra. My thought is that the motion creator may have been messing with the other projects... not sure. But at least its working now.
  • Jake,

    Glad that it's working for you again. I will keep my eyes out for this issue.

    Best,
    Peter