Forum Discussion
jessebarksdale
10 years agoHonored Guest
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!
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
- johnnotusHonored GuestAre you using DK2? DK2 seems not to support disabling OVRController. AFAIK, DK1 controller could be disabled and enabled like no-controller version.
- jessebarksdaleHonored GuestYep, I'm using DK2.
Are there other ways to achieve this camera switching effect without disabling? - cyberealityGrand ChampionInstead of enabling/disabling camera, can you just move the OVRCameraRig to a different parent object?
- paulovichExplorerFrom 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.
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
- 8 months ago
- 2 years ago