Forum Discussion

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

OVR Camera Rig black out when mouse looks up

I made a scene that works fine with the standard First Person Controller using The CharacterMotor, FPSInputController, and MouseLook scripts, creating a Main Camera, CameraController script with a Player game object, and setting the First Person Controller as the Player as per this tutorial: http://unity3d.com/learn/tutorials/proj ... the-camera

I initially tried to replace the First Person Controller with the OVR Player Controller, but neither the mouse nor the keyboard did anything. I tried just about every fix I could find on the forum to no avail and ended up getting my scene to work with the DSK2 (as well as without the DSK2 - displaying a split screen on a monitor) by making the OVR Camera Rig a child of the First Person Controller, creating a Player game object in the OVRCameraRig script, and setting the First Person Controller as the Player.

The problem is that if the mouse looks higher than straight ahead the screen goes black. Another odd thing is that every time I run my scene it raises the Y transform position on the OVR Camera Rig by 2 and will not let me reset it unless I disable the OVR Camera Rig, enable the Main Camera object from my initial scene and run it once that way. So far the only way to avoid the screen blacking out is to set the Axes in the MouseLook script to MouseX.

I tried adding the MouseLook script to the OVR Camera Rig and messing around with the Axes in both areas as well as messing with every value in the OVR Camera Rig and First Person Controller as, but no matter what I change if the mouse looks higher than straight ahead the screen goes black. I would have to say this has something to do with Unity and the OVR assets rather than my computer or the DSK2 because it does the exact same thing on every computer I run it on and it makes no difference whether I am actually using the DSK2 or viewing it as a split screen on a monitor.

11 Replies

Replies have been turned off for this discussion