Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Bug Broken Lens Flare in URP. Any ETA on fix?

Discussion in 'Universal Render Pipeline' started by Sky77, Dec 8, 2021.

  1. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    Hi,

    We’re using Lens Flare in URP12 and they have various problems on different platforms (for example: the lens flare position is wrong if you scale the rendering resolution).
    We are on Unity 2021.2.5 and it’s still not fixed.
    Any ETA on a fix?
    We’re preparing a demo of our game and our milestone is approaching fast.

    Thanks!
     
  2. Elvar_Orn

    Elvar_Orn

    Unity Technologies

    Joined:
    Dec 9, 2019
    Posts:
    158
  3. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
  4. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    Any news on this?
    Aside from the scaling problem the URP lens flare has various problems on different platforms and is almost unusable right now… :(
     
    o1o101 likes this.
  5. Elvar_Orn

    Elvar_Orn

    Unity Technologies

    Joined:
    Dec 9, 2019
    Posts:
    158
    I believe he's made the backport but he's on vacation for the Holidays so I can't confirm. I'll make myself a reminder to check right after the Holidays. I'll give you an update as soon as he's back.

    Please report bugs if possible. If you do and post here the case ID's I can have the developers take a look.
     
    o1o101 likes this.
  6. Sky77

    Sky77

    Joined:
    Jan 30, 2014
    Posts:
    171
    A small bump on this, since the bug it’s still not fixed in 2021.2.8f1. :)

    Is it possible to get an ETA? This is a new features that’s basically been unusable from the start in a lot of cases…
     
  7. o1o101

    o1o101

    Joined:
    Jan 19, 2014
    Posts:
    637
    Dang was hoping this would be in 2.8 :(
     
  8. ChrissTman

    ChrissTman

    Joined:
    Aug 11, 2015
    Posts:
    10
    Some time has passed.

    The bug has this "Fix In Review for 12.1.4" in it's status.
    (https://issuetracker.unity3d.com/issues/urp-lens-flare-do-not-account-for-render-scale-setting)

    But URP "12.1.4" is already out and available in Unity 2021.2.11 AND it still doesn't fix the issue (at least i hope)
    (https://docs.unity3d.com/Packages/com.unity.render-pipelines.universal@12.1/changelog/CHANGELOG.html)

    And the issue is not just tied to the Render Scale, but rather about resolution of any render target. For example, while rendering on to a Render Texture, the flare's position is not correct as well.

    Any updates?

    EDIT: as of URP 12.1.6 available in 2021.2.16f1 seems the render scale doesn't seem to effect the falres anymore.
     
    Last edited: Mar 24, 2022
  9. DingusAUS

    DingusAUS

    Joined:
    Dec 2, 2013
    Posts:
    15
    URP lens flares still render in the wrong place, at its vertical opposite.
    Unity 2021.3.1f1
    URP 12.1.6
     
    JotaRata likes this.
  10. ChrissTman

    ChrissTman

    Joined:
    Aug 11, 2015
    Posts:
    10
    https://unity3d.com/unity/whats-new/2022.1.0

    2022.1.0 is out for 3 days and in the release notes, it seems to be addressed. I don't have time to check it right now, but I hope this was finally it <3
     
  11. JonathanPaquinLafleur

    JonathanPaquinLafleur

    Joined:
    Jun 27, 2017
    Posts:
    13
    I just tried URP Lens flares in 2022.1.11f1 and the vertical mirroring bug is still there in WebGL build
     
    JotaRata likes this.
  12. JotaRata

    JotaRata

    Joined:
    Dec 8, 2014
    Posts:
    61
    Any updates on this?

    I have my lens flares inverted in the vertical Y position and the depth map occlusion seems to be inverted
     
  13. JotaRata

    JotaRata

    Joined:
    Dec 8, 2014
    Posts:
    61
    Confirmed. This bug is also on Android using Unity 2022.1.6f
     
  14. varganorbert222

    varganorbert222

    Joined:
    Aug 9, 2015
    Posts:
    4
    Here would be a temporary solution while we wait for a fix. In LensFlarePass.cs, the DoLensFlareDatadriven procedure must be modified to include the renderscale. For example:
    upload_2023-1-19_0-38-45.png
     
    RaventurnPatrick likes this.
  15. RaventurnPatrick

    RaventurnPatrick

    Joined:
    Aug 9, 2011
    Posts:
    169
    Last edited: Oct 16, 2023