Forum Discussion
BigB
9 years agoHonored Guest
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
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
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 2 years ago