Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
baloniman's avatar
baloniman
Honored Guest
12 years ago

Unity Lens flare distance

I'm having trouble getting my Lens Flares working using the Oculus Camera scripts. I can make the lens flare show up when it's somewhat close to the camera however after I exceed a value of +100 Z the flare dissapears regardless of clipping planes sizes. Is there something I'm overlooking here ?

2 Replies

  • drash's avatar
    drash
    Heroic Explorer
    Is it possible you have some invisible Colliders that are occluding your line of sight?
  • I figured it out. It was due to lens distortion. As the flare moved further away it would distort upwards outside of the view. Anyone having this problem in the future should manually move away your flare from the camera and check the Y value of the flare object in a subtle fashion until the flare appears in view. Thanks for the input Drash :D