Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

What are we supposed to use for lens flares?

Discussion in 'Graphics Experimental Previews' started by IgnisIncendio, May 5, 2018.

  1. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    According to https://issuetracker.unity3d.com/issues/lens-flare-not-working-in-hdrp-preset-project, the simple lens flares won't work due to it being deprecated. https://github.com/Unity-Technologies/PostProcessing/issues/354 asks for the old lens flares image effect to be brought into the new Post Processing stack, but as of right now, there's been no updates about it. Googling doesn't seem to give me many answers either.

    If we're using HDRP, what are we supposed to use? Simple lens flares can't be used. Legacy image effect isn't recommended. The new post processing stack doesn't support it.
     
  2. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    455
  3. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    Alright, that's good to know. Hope they'll make it standard soon.
     
  4. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,665
    According to your linked GitHub Issue, they are working on physically based lens flares. Also, Chman said there:
    Not sure if plans have changed... Maybe @Chman can give us an update? :)
     
  5. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    Not sure if I should create a new topic for this: speaking of which, a lot of the old image effects didn't make it into the new post processing stacks as well, such as:
    • Sun shafts
    • Blur
    • Bokeh in depth of field
    • Tilt shift
    So if we need these effects, do we use the old image effects in conjunction with the post processing stack?
     
  6. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    • HD due 2018.3 - long way to go, much work to be done
    • "Sun shafts" are volumetrics, coming soon
    • Blur, Bokeh, Tilt are likely your job or asset store.
    But this is really easy. We implemented our own first class effects with very little work recently, see the docs here - pretty trivial to port.

    https://github.com/Unity-Technologies/PostProcessing/wiki/Writing-Custom-Effects

    This is the correct and desired way to do post effects that work correctly with HD, and is also a lot less work for people wishing to add their own.
     
    SgerbwdGwyn likes this.
  7. IgnisIncendio

    IgnisIncendio

    Joined:
    Aug 16, 2017
    Posts:
    223
    Thank you very much!
     
    hippocoder likes this.
  8. Amitloaf

    Amitloaf

    Joined:
    Jan 30, 2012
    Posts:
    97
    2019.1 - Still no lens flare :(
     
  9. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Isn't it an effect from 2000 :p
     
  10. Amitloaf

    Amitloaf

    Joined:
    Jan 30, 2012
    Posts:
    97
    Yes but what other way we have to create this glow type around lights?
     
    mgsvevo and FerdowsurAsif like this.
  11. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,527
    Lens flare effects are very populair again in movies, would be nice to use them in unity
     
  12. zeropointblack

    zeropointblack

    Joined:
    Jun 8, 2020
    Posts:
    197
    which folder and file?
     
  13. rz_0lento

    rz_0lento

    Joined:
    Oct 8, 2013
    Posts:
    2,361
  14. zeropointblack

    zeropointblack

    Joined:
    Jun 8, 2020
    Posts:
    197