Skip to main content
New Participant
February 4, 2015

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!
    This topic has been closed for replies.

    4 replies

    New Participant
    February 4, 2015
    Are you using DK2? DK2 seems not to support disabling OVRController. AFAIK, DK1 controller could be disabled and enabled like no-controller version.
    New Participant
    February 4, 2015
    Yep, I'm using DK2.

    Are there other ways to achieve this camera switching effect without disabling?
    Inspiring
    February 4, 2015
    Instead of enabling/disabling camera, can you just move the OVRCameraRig to a different parent object?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    February 27, 2015
    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.