Forum Discussion

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

Switching between cameras

I've seen other posts similar to this, but not exactly like it so I figured I'd post. I am adding OR functionality to a game that has several camera animations, like the player getting into bed or something, so the player controller camera switches to an animation camera. All my OR controllers and cameras work fine, but the problem is when I try to switch between them. In the non-OR version of the game I simply disabled my player controller and enabled the animation camera, but when I disable the OR controller the entire screen goes gray. The animations still work, and even though the OR animation camera is active, it gives me no image.

Is there some way I should be approaching this that I'm not? Maybe writing a script to specifically enable the OR cameras every time they are activated?

Thanks!

4 Replies

Replies have been turned off for this discussion
  • Are you using DK2? DK2 seems not to support disabling OVRController. AFAIK, DK1 controller could be disabled and enabled like no-controller version.
  • Yep, I'm using DK2.

    Are there other ways to achieve this camera switching effect without disabling?
  • Instead of enabling/disabling camera, can you just move the OVRCameraRig to a different parent object?
  • From one side the Desktop version script can not be reused... and from the other moving the camer to another location yeah easy .. enable disable filters scripts etc... anoying, I mean, ANOYING. I just released a demo thinking the other cam did not render but yes it did, in unity when selected whas showing everything black in the preview so I thought, whell does not render... I might try disablign the cameras and leavh the OVR alive, if this works then it will be easyer to handle this issue.