Skip to main content
Inspiring
April 24, 2013

multiple camera setups at different depths?

Hi,
I'm converting a prototype I've been working on to work with the rift. It's an FPS game that uses 3 cameras at different depths: 1 for the game world at depth 0, 1 for the player's hands and items he's holding at depth 1(so the player hands never appear to penetrate objects) and 1 camera at depth 2 for overlay and UI FX.

I've tried creating multiple OVRcameraController setups in place of the existing cameras, but each successive OVRcameraController applies the lens correction distortion to the OVRcameraController at lower depths. So in my case the image is distorted 3 times, creating a very "fish-eye" look in the rift.

Is there a way to have multiple camera setups and apply the lens correction only once? Has anybody out there got multiple camera setups at different depths working?
    This topic has been closed for replies.

    2 replies

    Inspiring
    April 25, 2013
    You might want to take a look at this thread. Sounds like Oculus is considering making an update to the Unity integration to allow you to toggle the lens distortion on/off for each OVRCamera. A new SDK update just came out a few hours ago, but I'm not sure if this change made it in there or not.


    EDIT: Yep the new SDK update has this:
    LensCorrection: When set, Lens correction pass will be turned on.
    Titans of Space PLUS for Quest is now available on DrashVR.com
    Inspiring
    April 25, 2013
    thanks. Missed that one when I was looking through the threads :oops:

    Cheers