Skip to main content
Up and Coming
April 13, 2013

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)
    This topic has been closed for replies.

    2 replies

    Up and Coming
    April 13, 2013
    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.
    Inspiring
    April 15, 2013
    Jake,

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

    Best,
    Peter
    Peter Giokaris Senior Software Engineer