Forum Discussion
dsky9
10 years agoHonored Guest
Stereo Lens Flares in Unity 5.2.x w SDK 0.7
Hi, I had some lens flares I was using with Unity 5.0 / SDK 0.5... I simply added a Flare Layer to each of the Eye cameras, and voila, I had stereo lens flares. Now, There appears to be only one c...
vrdaveb
10 years agoOculus Staff
This appears to be a limitation in the way Unity renders flares. We've reported it. For now, I'd recommend using two separate Cameras. Instead of putting Cameras on the left/rightEyeAnchors, you'll have to duplicate centerEyeAnchor and comment out the following lines in OVRCameraRig.cs. Then try setting the "Target Eye" on each one to "Left" or "Right" instead of "Both". Then you should be able to add a separate Flare Layer to each Camera and get correct results. Please let me know if that doesn't work.
Debug.LogWarning("Having a Camera on " + cam.name + " is deprecated. Disabling the Camera. Please use the Camera on " + centerEyeCamera.name + " instead.");
cam.enabled = false;Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device