• 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
1
Question by dajyareo · Mar 09, 2015 at 09:08 PM · unity 5transparencytreespngdrawing

White outline around tree leaves after upgrade to Unity 5

After upgrading our project from unity 4.6 to 5, I've noticed a white outline that surrounds each of the leaves in our trees if they are in front of any other objects in the scene:

alt text

If the leaf is in front of the tree trunk, you wont see this outline; however, if it's in front of the ground or sky (or anything else other than the tree) they you see this. If I drag the tree directly into the scene I don't see this issue, so it appears to be with the shader used for terrain trees causing the problem.

I'm using a PNG texture for the leaves.. Anyone know a workaround for this issue to make textures play nicely with these new tree leaf shaders?

capture.png (174.1 kB)
Comment
Add comment · Show 3
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 Owen-Reynolds · Mar 09, 2015 at 09:46 PM 0
Share

I see this all the time with cut-out shaders. Looks like the alpha-cutoff value is adjusted too low (or the leaf was made with alpha too high, depending how you look at it.)

Not sure about the new nature shaders, but whenever I see that, I just adjust the cut-off slider. In fact, I always adjust the cut-off sliders, since what are the odds they happen to synch-up perfectly.

avatar image dajyareo · Mar 10, 2015 at 07:58 AM 0
Share

I too had the same thought with the alpha cut off slider; however, it seems to have no effect. Here's my texture import and material settings:

alt text

alt text

In an interesting twist.. If I switch the player settings to Forward rendering from deferred, the problem goes away.. Not that this is a solution, but it seems to point more to how that new shader is handled in the deferred renderer.

capture1.png (37.6 kB)
capture2.png (19.2 kB)
avatar image dajyareo · Mar 11, 2015 at 03:32 AM 0
Share

Looks like I'm not the only one hitting this issue:

http://forum.unity3d.com/threads/unity-5-something-weird-with-trees-alpha-textures.307372/

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by twobob · Mar 24, 2015 at 05:38 PM

For us it was turn off "Receive Shadows" on the prefab in p4. Obviously not ideal.

Perhaps though this has been picked up in the patches now/soon as it sound familiar. 5_0 (p series)

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Applying partly transparent texture to a 3d model made in Blender. 1 Answer

How to import good quality png ? 1 Answer

Edge Detection (effect normals) with water (transparent) error. 0 Answers

Saving UI Image to file with transparent background 3 Answers

Two png mouse down detect 3 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