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 Jigglebones · Jul 17, 2018 at 07:21 PM · texturemeshshadersmaterialstransparency

How do I properly apply a transparent texture to a mesh?

I have imported a mesh from Blender. The geometry and UV mapping have transferred over just fine, but as I was setting up the materials in Unity I have run into a problem. I want to apply a transparent image texture to the mesh (face to head). The problem is the gray boxy artifacts which you can see in the image I have uploaded, along with my texture import and material setup. The image texture is just a PNG with a cartoon face, the background being the checkerboard pattern representing transparency. The mesh is a .blend file. alt text

untitled-1.png (248.4 kB)
Comment
Add comment · Show 1
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 JVene · Jul 18, 2018 at 02:47 AM 0
Share

Upload a copy of the png you're using for this texture, otherwise I have no idea what to do for this. Also, what is the head? Is that the cube itself? All I can see at the moment about the png is the face details.

To that end, if the png has an alpha channel which makes only the lines of the face, then I'd expect you can't see the cube. For that, you may need to make the alpha a shade, not 0 (black) and white ( 255 ) in the alpha channel.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Stratosome · Jul 17, 2018 at 07:25 PM

In your material, try changing the "Rendering Mode" to "Fade". It's up near the top. If it is on "Opaque", it won't allow for transparency.

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 Jigglebones · Jul 17, 2018 at 07:39 PM 0
Share

Thanks for the response! I've tried the different rendering modes, and with "Fade" the face looks perfect, however the head disappears completely. A solution I can think of is duplicating the head and giving it it's own material allowing it to be visible, this way one head would just be the face, and the other head would be visible as the head. This works but I was wondering if there is a way where I can just keep it at one head. But I guess that's not necessary. @Stratosome

alt text

untitled-1.png (44.6 kB)
avatar image Stratosome Jigglebones · Jul 17, 2018 at 07:52 PM 0
Share

That could work. Honestly, I haven't done a whole lot with materials, so that may be the best suggestion I've got for this. Someone else might have a better idea though.

avatar image
0

Answer by mayur7garg · Jul 18, 2018 at 06:28 AM

The head disappears completely because the texture you are using as Albedo is transparent except for the face. Try using a texture with a colored background. And try messing with the Transparent rendering mode too.


https://docs.unity3d.com/Manual/StandardShaderMaterialParameterRenderingMode.html

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

132 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Setting up regions for different materials 1 Answer

How to change textures over time? 0 Answers

My mesh didn’t appear in Unity 0 Answers

World Space material Stretching when object is rotated. 0 Answers

See backside of a transparent emissive shader? 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