IsMatrixValid Assertion Failed with Per Eye Cameras enabled on certain Unity/OVRPlugin combinations
With 'Use Per Eye Cameras' enabled on the OVRCameraRig, I am receiving multiple errors in Unity of the form: Assertion failed: Assertion failed on expression: 'IsMatrixValid(matrix)' It's unclear how detrimental this is - it has no obvious negative effect in game - so I have been mostly ignoring it but, when manifesting, it can result in hundreds of error messages appearing in the log over a couple of minutes. The issue seems to be tied to certain Unity/OVRPlugin combinations but is not being resolved with the latest versions - so may be a recurring bug? Originally the problem was with my project in Unity v5.6.1f1 with Oculus Utilities v1.15.0 and OVRPlugin v1.14.1 enabled. Upgrading to Unity v5.6.3f1 (but still with Oculus Utilities v1.15.0 and OVRPlugin v1.14.1 enabled) the issue no longer appears. However, upgrading to the latest 2017 versions of Unity and the more recent Oculus Utilities sees the issue reappear. After various testing, it seems that the issue does not appear for the latest Unity versions of each branch when running with OVRPlugin v1.14.0 or v1.14.1 but does appear for newer versions of the OVRPlugin. It is not just a case of OVRPlugin version in isolation of Unity version - OVRPlugin v1.14.1 did not work correctly with my earlier Unity v5.6.1f1 (where I originally noticed the problem). It is also not a case of the issue appearing when using the latest DLL from Oculus Utilities to override the default DLL included in Unity - the issue does not appear with the latest Unity versions which incorporate OVRPlugin v1.14.0 as default when you override such versions to v1.14.1 and yet using the default OVRPlugin version with Unity v5.6.1f1 did not resolve the issue. The issue appears in my prototype project where I have been using the Per Eye Cameras option but is easy to replicate in a clean project: 1) Create a new project in Unity and import any given version of Oculus Utilities 2) Create a new scene and replace the Main Camera with the OVRCameraRig, then enable 'Use Per Eye Cameras' setting on the OVRCameraRig script. 3) Create a Cube (or similar geometry, I also tested with Quads) in the scene 4) Run the scene, on the versions specified below as manifesting the issue you should see the error in the console whenever you look at the Cube in VR (it does not appear if you never actually see the Cube or if 'Use Per Eye Cameras' is disabled). The issue DOES NOT appear in the following Unity/OVRPlugin combinations: Unity v5.6.3f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.0 (builtin), SDK v1.18.0. Unity v5.6.3f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.18.0. Unity v2017.1.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.18.0. Unity v2017.1.1f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.0 (builtin), SDK v1.18.0. Unity v2017.2.0f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.18.0. Unity v2017.2.0f1, Oculus Utilities v1.18.1, OVRPlugin v1.14.1 (builtin), SDK v1.18.0. The issue DOES appear in the following Unity/OVRPlugin combinations: Unity v5.6.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.0 (I think this was the builtin version?), SDK v1.18.0. Unity v5.6.1f1, Oculus Utilities v1.15.0, OVRPlugin v1.14.1, SDK v1.18.0. Unity v2017.1.1f1, Oculus Utilities v1.16.0, OVRPlugin v1.16.0, SDK v1.18.0. Unity v2017.1.1f1, Oculus Utilities v1.18.0, OVRPlugin v1.18.0, SDK v1.18.0. Unity v2017.1.1f1, Oculus Utilities v1.18.1, OVRPlugin v1.18.1, SDK v1.18.0. Unity v2017.2.0f1, Oculus Utilities v1.18.1, OVRPlugin v1.18.1, SDK v1.18.0. As a minor aside, which may or may not be important, in my own prototype project I have a setup where I manipulate the camera rig (using Per Eye Cameras) between first and third person perspective. In versions above marked as the issue appearing, I get many errors on an immediate and ongoing basis in either perspective. In Unity v5.6.3f1 with OVRPlugin version marked as issue not appearing, I did not receive ANY assertion errors at any point. However, in Unity v2017.1.1f1 and Unity v2017.2.0f1 with OVRPlugin marked as issue not appearing, I receive a single assertion error the first time I switch from first person perspective to third person perspective but do not receive any further such errors, even when switching back and forth between perspectives. So Unity 2017 versions function slightly differently to Unity v5.6.3.2KViews0likes2CommentsBug with OVR camera in Unity 5.6.0b6? Use per eye just shows image in left eye
As in the title and taking it forward from this reddit posting: https://www.reddit.com/r/oculus/comments/5qz1ot/per_eye_cameras_in_unity_56_beta_gear_vr/ I'm facing this issue on the rift. The moment I hit play, only left eye shows image/scene output. If I change "depth" of right camera then it takes over and no image/scene output shows in left eye of the rift.1.6KViews0likes4Comments[SOLVED] OVRCameraRig & Use Per Eye Cameras: Turning on and off cursor problem
Hi, I want to turn on/off the OVRCameraRig property Use per eye cameras to display stereoscopic or monoscopic video. I want to use a single camera for both eyes in the menu and then turn on/off the Use per eye cameras option as needed. If I enable this option in runtime, the gaze cursor's (OVRGazePointer) position is not in the center anymore, but half a way between the center and top border. If I enable this option in the object inspector, then the cursor works fine until disabling and re-enabling per eye cameras. Do I need to switch OVRInputModule's Ray Transform object? If so, which one? At the moment I'm having it set to CenterEyeAnchor.3.2KViews0likes4Comments