• 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 /
This question was closed Oct 20, 2012 at 10:53 AM by Dreamblur for the following reason:

Closed by OP

avatar image
Question by Dreamblur · Oct 18, 2012 at 01:45 AM · shaderblendertransparentpng

Models becoming transparent

My .obj files exported from Blender seem to be unable to support any texture with a transparent section (as dictated by the alpha channel). When I use the default diffuse shader and use a texture without an alpha channel, the texture is shown on the model, which tells me that my normals and my UV maps are, at the very least, functional. However, when I use an image with a transparent section as my texture, the model become completely transparent. This issue persists regardless of whether the image was made using Photoshop or GIMP (.png format), and regardless of whether the shader used was the default diffuse shader or the default transparent diffuse shader. The same textures work on models exported from other game engines. I've double checked my models in Blender and the normals are all facing outwards. Even a regular primitive plane exported from Blender suffers from the same problem.

Any ideas?

Comment

People who like this

0 Show 0
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

  • Sort: 
avatar image

Answer by Eric5h5 · Oct 18, 2012 at 02:00 AM

Use a transparent cutout shader if possible. Otherwise you will need to divide the model into separate parts, and only use transparency on the specific parts that need it, while the rest uses a non-transparent shader. This is because of transparency sorting issues in 3D graphics.

Comment

People who like this

0 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 Dreamblur · Oct 18, 2012 at 02:07 AM 0
Share

The default transparent cutout shaders don't work either. As long as there is any transparency in the texture used, even if just a single pixel, the whole model becomes transparent. If I use a non-transparent texture on the transparent/transparent cutout shaders, on the other hand, the model starts to function properly again. I've never had any trouble with transparency prior to this issue, and only with the models from Blender. (And yes, I really need to use Blender. =P)

avatar image Eric5h5 · Oct 18, 2012 at 02:16 AM 0
Share

You should probably post a screenshot.

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

10 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

Related Questions

Remove white edges on texture help 2 Answers

PNG or TGA32 for semitransparent material 2 Answers

[Solved] Shader: cutout shader over a texture 1 Answer

apply transparent png, material color shine through 3 Answers

2sided Shader - Strumpy Shader Editor 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