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
0
Question by hamss · Jan 12, 2012 at 11:18 PM · texturetexture2dtransparencyplaneunlit transparent

Unlit/Transparent texture leaves dark lines on the transparent edges

I have transparent pngs on flat planes using the unlit/transparent shader and I get these lines that flicker on all the transparent edges (see screen shot). I looked this issue up on this forum and found some answers, 1: set the wrap to clamp which didnt work with the unlit transparent and I cant do on most of my objects anyway and 2: make sure there is a transparent edge around the entire png which also didnt work and I cant do on most my object again. I also tried making it a tiff with an alpha layer and that did nothing as well.

So I am wondering what I can do to solve this problem?

https://picasaweb.google.com/lh/photo/4QYnLYR79tVhoRWaI4OaVqcG-IodSRtMHoQ3uddR8xk?feat=directlink

Comment
Add comment · Show 2
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 kalvinlyle · Jan 13, 2012 at 12:40 AM 0
Share

You screenshot seems to be a broken link

avatar image hamss · Jan 13, 2012 at 01:36 AM 0
Share

fixed the link

1 Reply

· Add your reply
  • Sort: 
avatar image
4

Answer by kalvinlyle · Jan 13, 2012 at 02:46 AM

The pixels from the bottom of your texture are blurring and wrapping to the top. The shader won't matter, as the settings are for the textures and will transfer to all shaders your texture is used in.

I'm working on a 2D game at the moment and have had this issue on a few textures. Setting the Wrap Mode to Clamp will fix this, make sure you Apply the changes to the texture after you change them.

I'm assuming this is a 2D game where the camera is mostly fixed... if you change the Texture Type to Advanced and turn off Generate Mip Maps you can save some memory on your textures as well.

For other textures were the Wrap Mode can't be set to Clamp you'll need to leave a significant transparent border around all edges if your texture uses mip maps as the down sampling will blur the texture and it will bleed further as the camera zooms out or the glancing angle increases.

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 hamss · Jan 13, 2012 at 02:59 AM 0
Share

Thanks! That really helped, its good knowing what actually is happening to cause the issue. I was able to get the clamp setting to work eventually so that is good now, and for the ones that couldnt have that ins$$anonymous$$d of putting a transparent edge around the whole thing I was able to add it to the bottom and top only, I wont ever see the sides of these particular objects, so they didnt matter, and it worked.

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

6 People are following this question.

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

Related Questions

in game - how to partly invisible an object ? 2 Answers

Getting Transparency on a .PNG Texture on a 'Plane' Object to Work Properly 1 Answer

ingame transparency 2 Answers

Imported Plane Mesh Not Rendering Textures Properly 1 Answer

How to not see white background on texture 1 Answer


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