Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by DougInScotland · Aug 21, 2016 at 09:06 AM · unity 5webglanti-aliasing

WebGL antialiasing

Hi

Does anyone know if it is possible to antialias 3D objects in WebGL please?

If so, how do I go about enabling it?

I have tried setting the antialiasing multi-sample settings in edit/quality settings, but that doesn't seem to do anything for webgl builds.

Thank you!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by DougInScotland · Aug 22, 2016 at 06:15 AM

Thank you both very much. I'll check these things out and get back.


Update: I looked into this a little more and checked the settings you mentioned. I also checked the Unity documentation and it does appear to say that WebGL supports antialiasing. However, the setting that is mentioned has no impact when I compile to WebGL. So either I'm missing something or the documentation is inaccurate at this point in time.

https://docs.unity3d.com/Manual/webgl-graphics.html

"WebGL supports anti-aliasing on most (but not on all) combinations of browsers and GPUs. To use it, anti-aliasing must be enabled in the default Quality Setting for the WebGL platform. Switching quality settings at runtime will not enabled or disable anti-aliasing - it has to be set up in the default Quality Setting loaded at player start up. Note that the diffent multi sampling levels have no effect in WebGL."

I can't actually see antialiasing listed in the WebGL player settings: https://docs.unity3d.com/Manual/class-PlayerSettingsWebGL.html

Clearly WebGL CAN support antialiasing since playcanvas do it very nicely: https://playcanvas.com/

Any thoughts or feedback on this would be most welcome.

Thank you!


Update again:

OK, so I think I've cracked it! I had a look into the way that quality settings are applied and I realised that the default quality setting for WebGL was "Fastest", which doesn't have AA enabled.

I made the default for WebGL "Good" and now the AA is pretty nice. Setting it to "Fantastic" makes it really really nice.

The interesting thing (and I wonder if this is a Unity bug) is that if I build as a windows exe the AA, which is also set as "Fastest" moves up to "Fantastic" automatically. I guess it is picking up the performance of the PC and adjusting accordingly. This doesn't happen for WebGL. So it seems that with WebGL we just get what we set as default and it doesn't adjust itself.

So basically, if you want WebGL antialiasing then just get to know the way that the quality settings (https://docs.unity3d.com/Manual/class-QualitySettings.html) and ensure that the default setting (the green tick) is on a quality setting that uses AA.

Hope this helps someone else out there who is struggling with this.

Thanks everyone!

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Hliouxas · Aug 24, 2016 at 10:24 AM 0
Share

In order to check your antialising Settings go to - Edit - Project Settings - Quality , there you can see the antialiasing Quality , but make sure you default your WebGL build on the Quality Preset you want. Your default setting is represented with a green tick , usually webgl default is the low setting , but my suggestion is defaulting to the high or max settings. There you can enable $$anonymous$$SAA. It's very important though you disable ANY image effect you have applied to your main camera (Bloom , $$anonymous$$otion Blur , Color Corection , etc...) because they brake the antialiasing... Later on i will post all the steps you need to do with screenshots

https://docs.unity3d.com/$$anonymous$$anual/class-QualitySettings.html

avatar image
0

Answer by OsmiousH · Aug 21, 2016 at 10:15 AM

This link was in the forums(I didn't understand what it does though)

Its a Big unity Issue

I hope they fix this in the next release

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Hliouxas · Aug 22, 2016 at 01:13 AM

Do you have any image effects applied to your main camera? If so , disable them , cause i had the same problem and it worked only after i disabled any image effect i had applied to my main camera. Make sure you use forward rendering instead of deferred , cause deferred doesn't support msaa. And finally set your webGL memory to 512 MB or something lower than that. Tell me how it goes

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Marco-Trivellato · Jan 27, 2017 at 09:34 PM

Anti-Aliasing is supported but only works if there are no Image Effects enabled.

With WebGL2.0, there is no such limitation, so ImageEffects+AA can be used together.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

106 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity WebGL build and PHP Post communication 0 Answers

No 'Access-Control-Allow-Origin' in webGL Unity Multiplayer 1 Answer

web gl facebook multiplayer 0 Answers

webGl not running in Browser showing Message 0 Answers

HEEEEEEELP PLZ !!! I can't publish my webgl build casue it has no anti aliasing and other bad graphics 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges