Forum Discussion
CoreySauve
13 years agoExplorer
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?
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
- drashHeroic ExplorerYou 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.
- CoreySauveExplorerthanks. Missed that one when I was looking through the threads :oops:
Cheers
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
- 10 months ago
- 2 years ago