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 noXur · Jun 22, 2014 at 03:57 PM · materialtransparentinvisible

Semi-transparent material is always invisible

Hey there!

I'm building a dynamic water mesh for a 2D game as described in this tutorial: Creating Dynamic 2D Water Effects in Unity. Now, I've got the following problem:

Whenever a material with transparency support is assigned, the material is completely invisible, except a very thin colored line below the top line. If I just use a diffuse material everything is fine and the material-attached texture is showing up, too. The scene is lit-up by a sun light.

I've made two screenshots to demonstrate the problem.

Update: In the meantime I've experimented with the scene in 3D perspective mode and even checked the transforms, z-values and the triangle winding of the different layers. Everything should be fine, strange. It seems that once I attach a transparent material, it renders the z-values of the water behind all other objects in the scene. So, the water is only visible if no other object is rendered behind it.

Some help would be much appreciated, thanks.


This is how it looks with a diffuse material, everything is ok:

alt text

Here I've used a material with transparency support, so nothing is shown:

alt text

water_bug.png (55.6 kB)
water_ok.png (39.2 kB)
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 Nick4 · Jun 22, 2014 at 04:20 PM 0
Share

Go to your texture's import settings and enable "Alpha Is Transparency"

avatar image noXur · Jun 22, 2014 at 06:33 PM 0
Share

Unfortunately, this doesn't help.

1 Reply

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

Answer by noXur · Jun 23, 2014 at 01:17 PM

I've found out that it has something to do with these sorting layers of Unity.

Because I mix 2D sprite rendering with regular mesh rendering of the water, it seems that I'm forced to only use the default sorting layer for all sprites.

If all sprites use the default sorting layer, everything is just fine. Can be closed.

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

3 People are following this question.

avatar image avatar image avatar image

Related Questions

How to make an object visible through walls 1 Answer

Swapping between Diffuse and Transparent/Diffuse Shaders 0 Answers

Lighting artifacts through transparent material 0 Answers

Why is my sprite disappearing when I make a new material and add the Sprites-Default shader? 1 Answer

how to do reflective transparent flooor? 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