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 /
avatar image
0
Question by GrayRabbitGames · Jul 28, 2017 at 05:57 PM · shadermaterialimportimage

Why isn't the background on this material showing up as transparent?

So this is a question that I'm seeing pop up a lot, and yet none of the answers I've found are working for me.

I have this PNG image with an alpha channel:

alt text

Which I imported into Unity, setting it to use input texture as alpha source, and setting alpha to transparent:

alt text

The image looks like it is being rendered the way I want in the preview. However when I apply it to a material, using a transparent shader like so:

alt text

The end result suddenly has a blue background, like so:

alt text

There must be something simple I'm missing. Does anyone have any idea why this is happening? I just want the background to be transparent, the way it is showing up when I first import the image.

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

5 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by GrayRabbitGames · Jul 28, 2017 at 09:33 PM

As it turns out, the solution was to change the shader to "unlit / transparent". Worked like a charm. Only problem is I also wanted to fade this object out using an alpha channel, but unlit / transparent won't allow me to access one, since it doesn't have a color setting. Oh well...

Comment
Add comment · Show 2 · 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 FortisVenaliter · Jul 28, 2017 at 09:36 PM 0
Share

Try out my answer. Worked like a charm on my setup with the same problem, and it doesn't require you to use a different shader.

avatar image GrayRabbitGames FortisVenaliter · Jul 28, 2017 at 09:54 PM 0
Share

Hi there Fortis,

I'm trying it now, and unfortunately it's not fixing the issue. While it does allow me to use the metallic slider as a means of controlling the alpha, there is still the blue background on it that shouldn't be there.

Thanks anyway - still not sure what exactly the issue is, but the unlit/transparent just seems to work. Even though I'm sacrificing the ability to fade it out.

avatar image
0

Answer by rawb86 · Jul 28, 2017 at 08:55 PM

Does it work like intended if you change the shader to "Standard (specular setup)", make the specular all black and set Smoothness to 0?

alt text


capture2.png (150.0 kB)
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 FortisVenaliter · Jul 28, 2017 at 09:00 PM

Change the Metallic Smoothness Source from "Albedo Alpha" to "Metallic Alpha".

Right now it's using the alpha channel in your texture to determine smoothness. For some reason, this seems to discount it from being used as a transparency channel.

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 fede9948 · Jul 28, 2017 at 09:57 PM

I think what you are looking for is the standard shader set to "Fade" instead of transparent. You could turn off specular highlights and reflections to have only your graphic displayed on the object. You can modify its alpha value to fade it in/out.

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 TheWrongJohn · Apr 16, 2021 at 09:37 PM

These setting seem to be working for me, at least for now :-) alt text


screenshot-2021-04-16-at-190554.png (64.4 kB)
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

123 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 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

Using Multiple Tiles for Textures 0 Answers

Standard Asset water material is pink 4 Answers

Creating a Material from shader string 2 Answers

Importing Maya assets with applied textures shown 0 Answers

Material doesn't have a color property '_Color' 4 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