What are we supposed to use for lens flares?

According to Unity Issue Tracker - 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.

Fontainebleau demo from unity has some lens flares.

Alright, that’s good to know. Hope they’ll make it standard soon.

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? :slight_smile:

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?

  • 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.

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.

1 Like

Thank you very much!

1 Like

2019.1 - Still no lens flare :frowning:

Isn’t it an effect from 2000 :stuck_out_tongue:

Yes but what other way we have to create this glow type around lights?

2 Likes

Lens flare effects are very populair again in movies, would be nice to use them in unity

which folder and file?

https://github.com/Unity-Technologies/FontainebleauDemo/tree/master/Assets/Scripts/LensFlare

Additionally, apparently Unity is working on HDRP lensflare atm, at least there’s a wip branch on github:
https://github.com/Unity-Technologies/Graphics/tree/HDRP/hd_lens_flare

cool. so i just downloaded that 2.7 gig file. what do i do next.