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
1
Question by Sam · Mar 16, 2011 at 02:00 PM · transparencyalphamapping

Unity 3D Alpha Map Problems?

Can somebody please help me on this because this is REALLY annoying and a group of us a have looked at this time and time again and can't understand the reason why this isn't working.

We have a 3D object in Unity (a transparent jar with olives inside) and the texture attached to it has an alpha map so that you can see inside the jar.

We've set the texture to Transparent/Diffuse inside Unity but for some reason - no matter how much we try - the sections of the alpha channel that are solid still have transparency, despite the fact that on the map - the sections are white.

The only other alternative we can think of is going into the models and dividing them up with their own textures, but we'd rather just have one map for one object but with the alpha channel providing transparency on the required sections.

Any suggestions how we could achieve this - or is there no other option but to break up the models and assign them individual textures?

Thanks in Advance

PB

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

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by Statement · Mar 16, 2011 at 02:37 PM

Make sure you have full alpha in the main color value associated with the material, just above the texture slot in the inspector. If you do have some other alpha value in there, you won't ever get full opaqueness.

alt text
Here, main color has 45% alpha resulting in transparency over the whole material.

Comment
Add comment · Show 4 · 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 Sam · Mar 16, 2011 at 03:03 PM 0
Share

"full alpha" does that mean we should have that section entirely white or not?

avatar image Statement · Mar 16, 2011 at 03:32 PM 0
Share

Entirely white.

avatar image Statement · Mar 16, 2011 at 03:33 PM 0
Share

What happens is that main color is multiplied to the texture color. For example, if the texture has full alpha (white) at some texel and main color has 35% alpha, then that part will be 35% opaque. It just gets multiplied per channel, so you want to have 100% alpha in the color.

avatar image Statement · Mar 16, 2011 at 03:34 PM 0
Share

Just to make sure we're talking about the same thing; there's color and there's alpha showing in the picture above. The smaller bar (alpha bar) should be fully white. What color you choose otherwise won't matter. You can have it red, with full alpha for example.

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

No one has followed this question yet.

Related Questions

Does the Particle Animator work with transparent shaders? 1 Answer

Wrong texture-arranging order 0 Answers

Decal Alpha Blend 0 Answers

Render part of object with alpha of other object 1 Answer

An Outline like the Editor does in game, with transparency 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