Forum Discussion

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

Wrong camera rotation/head tracking

Hi,

I'm not sure what the problem is, maybe someone can explain me 
I have two cameras in the game.
1. one camera with "mainCamera", that has the first person player prefab, using OVR Manager.
2. A second camera that works as a cinematic camera, for a introduction, and has no OVR code at all, it's just a camera.

When the game begins, camera 1 is inactive, and cinematic camera is working.
Once cinematic is over, camera2 is placed inactive, and camera 1 active.
So now, camera 1 is all screwed up, player height is way to high, rotation is weird, head movement with the rift is also wrong.

If I comment camera 2 and start with camera1 active, everything works fine.

So it seems to me, that the rift is tracking camera 2, and once I disable it, passes the camera2 values somehow to camera 1.
I already tried to reset camera1 with (OVRManager.display.RecenterPose) in function Awake,Start, and in Update(by calling it once), but nothing is working.
Is there something that prevents me to have 2 cameras like this ?

Thanks,
Bruno