Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
2
Question by Greynz · Jan 10, 2014 at 11:53 PM · shadow bughard shadows

Hard shadows and AA causing white pixel artifacts on ALL meshes

Hard shadows with AA enabled seem to cause a white pixel border artifact to be rendered around my model. See image for clarification:

http://i.imgur.com/Uc1LmbX.jpg

you can see the problem clearly, when the model is in the light but rendered over a cast shadow the white border appears, but when it is rendered fully in the light or shadow it is not apparent.

It is not my material settings, as you can see it also happens with this default sphere:

http://imgur.com/EPdllRY

(it isn't the plane below it causing the problem either, I tried it with a default plane beneath it in an empty scene as well.)

And finally here is a picture with and without AA enabled:

http://i.imgur.com/fHpTWQU.jpg

If anybody could shed some light on the issue (hah) it would be much appreciated!

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

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by AM_1 · Jun 25, 2014 at 01:49 PM

This question is old, I know, but no one has answered it, so I'll do it.

Shadows are rendered after all the inbuilt antialiasing calculations are finished, which means that when Unity renders a frame, it first renders all objects without shadows or effects. Then it antialiases the result, so the non-shadowed ground is blurred together with the objects. Finally, Unity adds shadows.

Render Objects -> Antialias them with light pixels -> Darken the background with shadows

The problem is, you have some of the non-shadowed light ground pixel on top of the shadowed ones. So basically, the "white pixel" artifacts you are seeing is just your ground peeking through the shadows.

your image

Solution:

If you're using Unity Pro, you can use this antialiasing method instead of the default, or you could use the in-built Unity Pro Edge Blur Effect.

If you're using Free, you could spend a lot of time and game performance doing this: Recreating Unity Pro effects in Unity Free (see the part about RenderTextures) and use FXAA3 antialiasing with that. Other that that you'll just have to change your quality settings on Unity Free.

Hope it helped!

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 unity_4Wx1iEgE2rzHSw · Feb 11, 2018 at 11:51 AM 0
Share

I knew this was not a bug and boils down to mysterious headaches if one does not own unity pro. I have flickering shadows and aa issues hitting the roof on the most simple scene of a model sitting on a couch. Considering it is now 2017 and the problem persists, I question what is the reason it is not fixed. No solution has worked so far.

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

20 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

Related Questions

Black stripes shadows 4 Answers

Why are the shadows glitching 0 Answers

RealTime Shadows with terrain painted trees 1 Answer

Shadow Issues, Light going through walls slightly 3 Answers

Lights rendering Shadow Artifacts? 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