• 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 Jadugara · Apr 27, 2012 at 10:35 PM · materialmaptransparentself-illumination

I want to add a Self-Illumination map to a Transparent material...

I'm trying to add a Self-Illumination map to a material already using a Transparency map...

I am an extremely new Unity user, and have no scripting experience whatsoever. I'm very used to setting up materials like this in Max by simply having a 32-bit Targa with an alpha channel for the transparency in the Diffuse slot, and adding a simple black targa with painted glowy bits in the slot for Self-Illumination... In past game engines I've worked with, importing this object with such a material simply works...

I am now trying to replicate this simple effect in Unity, but am having no luck...

I have a window object I am using that's nothing but a square poly, with a texture on it that looks like a round window that is primarily totally opaque (for the window-panes and frame), but is surrounded by a degree of transparency that makes it seem like it's casting a shadow on whatever wall it's placed against... I want the window to look like there is glowing light coming from within, so I'd like to also add a map to the material to make it self-illuminating so that the material uses both the alpha layer transparency of the 32-bit targa used for its diffuse map, as well as the secondary self-illumination map...

Likewise, I'm also wanting to make plants using a transparent texture for the leaves, and a second self-illumination texture for glowing patterns on the leaves...

Unfortunately, there seems to be no base Unity material that allows this functionality, and when I go into part of the material's interface that has the phrase "Edit Shader" (where I was assuming I could add the Self-Illumination element to it), the words "Edit Shader" are grayed out... I at first assumed I could start with a Self-Illumination material in Unity, and then choose a 32-bit Targa with alpha for the Base, but Unity seems to ignore the alpha-layer data in the Base texture under this circumstance...

Am I doing something wrong or missing something? Is there a way to achieve this without writing a special script?

I'd really appreciate some help on this...

Jadugara ^_^

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 Bluestrike · May 11, 2012 at 12:24 PM

You should go to the material in unity and select a transparent or self ilum shader. Unity uses the aplha on the difuse texture for translucency. before Unity 3.0 it also used the alpha for self ilumination (when you selected a self ilum shader for the material.) Since 3.0 we can add an extra material whats alpha is used for self ilumination.

If you want both at the same time, there is no proper shader for that. Found this on the forums: http://forum.unity3d.com/threads/1554-Materials-with-Both-Transparency-and-Self-Illumination.

This probably is not the awnser you are looking for ;) I too would like a shader where the diffuse alpha is used for translucency and another texture its alpha for self ilumination.

If you know something about writing shaders, the default unity shaders can not be edited but they can be downloaded from the resources page on the website.

Comment
Add comment · Show 1 · 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 Jadugara · May 13, 2012 at 08:10 PM 0
Share

Thanks,...I appreciate the info... Yeah,...it looks like I'm simply going to have to wait for our programmers to write a special shader for our needs.... Bummer...

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.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Having trouble creating transparent material on Android? 1 Answer

Best way for creating a high quality world map 0 Answers

Is it possible to have a clear material? 1 Answer

Assign material to second UV map 1 Answer

Material on GUI Transparent problem 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