Search Unity

Unity 2021.2 Aliased Object Edges

Discussion in 'Web' started by tiggaxxx, Oct 27, 2021.

  1. tiggaxxx

    tiggaxxx

    Joined:
    Jan 13, 2020
    Posts:
    30
    I have just updated my WebGL project from version 2021.1 to 2021.2, and without doing any changes i did a build to test it out.

    It worked fine, no errors, didn't see much improvement on build speed or size though.

    But i did noticed something that bugged me immediately, the objects edges got aliased even though i have all the anti-aliasing settings right, the exact same settings from the previous version. I tried to tweek some settings but nothing changes.

    Example bellow:


    Unity 2021.1.24f


    Unity 2021.2.0

    I'm using the built-in render pipeline. The settings, scenes, lightning, objects are exactly the same on both builds.

    Has something changed? Any suggestions?

    I like to always work on the last versions. But i was forced to go back to 2021.1 because of this.
     
  2. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    273
    Hi!

    This is a strange one, we haven't made any changes to WebGL related to MSAA in 2021.2.

    Please open a bug report so we can take a look at all the settings and figure out if there's a bug here. If you do, send me the issue tracker number so I can follow up on it.
     
  3. Carpet_Head

    Carpet_Head

    Joined:
    Nov 27, 2014
    Posts:
    258
    I'm getting the exact same behaviour. Antialiasing is simply not working in builds
     
  4. unityruba

    unityruba

    Unity Technologies

    Joined:
    Nov 6, 2020
    Posts:
    273
    @Carpet_Head that's not good! I'll ask you to open a bug report so we can look into it as soon as possible. If you send me the bug report number I'll follow up on it.
     
  5. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    I am seeing this issue to and will look into it. Nothing explicitly changed with MSAA, but a lot of underlying tech changed between 2021.1 and 2021.2, including a new version of Emscripten.
     
  6. pojoih

    pojoih

    Joined:
    Mar 30, 2013
    Posts:
    226
    Same here, using URP and 2021.2f1, MSAA is not working, but setting the Renderscale to 2 helps for now.
     
  7. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    I have the fix for MSAA going missing. I'll get it into 2021.2 as soon as possible.
     
    tiggaxxx, KamilCSPS and DrViJ like this.
  8. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,092
    When will this fix land? I'm currently using 2021.2.7 and it still hasn't been fixed
     
  9. Starburst999

    Starburst999

    Joined:
    May 8, 2017
    Posts:
    54
  10. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    Yeah sorry about that. The fix was part of an overall Emscripten upgrade, since the bug was in Emscripten, and that always takes longer than expected. The fix is in the merge queue, we're just waiting on it to get through.
     
  11. mikaelwallen

    mikaelwallen

    Joined:
    Jun 3, 2016
    Posts:
    56
    Just ran into this issue as well and spent a couple of hours trying to figure out why we didn't get any AA anymore after upgrading to 2021.2.9. I hope the fix ends up in a release soon. ;)

    Still not fixed in 2021.2.10f1...
     
    Last edited: Feb 2, 2022
  12. anthony_b_

    anthony_b_

    Unity Technologies

    Joined:
    Oct 27, 2020
    Posts:
    24
    Sorry for the long lead time on the fix here. I can confirm the fix has landed in 2021.2.11f1.
     
  13. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,092
    @anthony_b_ It should be fixed in 2021.2.11, but after a quick build and testing... it still isn't applying MSAA with URP.
    Whilst it is mentioned in the release notes, it is not fixed.
     
    fra3point and manuelgoellnitz like this.
  14. manuelgoellnitz

    manuelgoellnitz

    Joined:
    Feb 15, 2017
    Posts:
    397
    I can confirm the bug is still not fixed
     
  15. mikaelwallen

    mikaelwallen

    Joined:
    Jun 3, 2016
    Posts:
    56
    I can unfortunately also confirm that the bug is *not* fixed.
    So Unity, what's going on here? The release notes for 2021.2.11f1 says it is fixed.
     
  16. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    Sounds like there was a mis-alignment of the release notes and where the fix landed. I will look into where it landed.
     
  17. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    I apologize for the release notes saying it was fixed in 2021.2. It should have been but there was a mis-step in the merge process for the 2021.2 backport. I had marked it as verified fixed in 2021.2, but realize now I had tested 2022. The real fix for 2021.2 is getting sorted out now.
     
  18. MaskedMouse

    MaskedMouse

    Joined:
    Jul 8, 2014
    Posts:
    1,092
    I've just built a sample project with 2021.2.15 and can confirm it is finally fixed.
    It took a while, been looking for every update every week. Thanks for looking into the issue and fixing it.
     
    Starburst999 likes this.
  19. brendanduncan_u3d

    brendanduncan_u3d

    Unity Technologies

    Joined:
    Jul 30, 2019
    Posts:
    437
    Sorry about it taking so long. The problem was down in Emscripten, and while the fix was simple, getting the patches coordinated took a lot longer than expected.
     
    MaskedMouse likes this.