Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
CoreySauve's avatar
CoreySauve
Explorer
13 years ago

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?

2 Replies

Replies have been turned off for this discussion
  • drash's avatar
    drash
    Heroic Explorer
    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.
  • thanks. Missed that one when I was looking through the threads :oops:

    Cheers