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 enginehouse · Jul 06, 2012 at 07:54 AM · shadernormal

bumped self illumination shader question

I was wondering what the best way to use the bumped self illumination shader is. I have read through the help pages and understand that unity takes the alpha channel from the normal map as the self illumination value, my only problem with this is that Unity asks me to set the normal_map.png file that I've made to a Normal texture in the texture import section. Once I do this the self illumination looks wrong, if I keep it as a Texture then the self illumination looks right but the normap mapping looks wrong. I've worked around it by creating a normal_map.jpg, set this to be a Normal Texture, and then created a self_illumination.png which is plain white with the alpha channel containing the information. This works but seems silly to me to now have 2 texures when the documentation says I only need one. Please help!

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ScroodgeM · Jul 14, 2012 at 12:39 PM

are you talking about built-in shader "Self-Illumin/Bumped Diffuse"? it has a "Illumin (A)" texture for illumination. shader uses this (only this) texture to make illumination. illumination color taken from diffuse texture. normal-map can't contain alpha-channel and it's impossible to use normal-map for something but normal-mapping

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

Answer by enginehouse · Jul 15, 2012 at 05:19 PM

Yes I'm talking about the built in shader 'Self-Illumin/Bumpted Diffuse'. I would agree taking the illumination from the alpha channel of the normal map is a bit weird, but the documentation says this is the case. It says "One consideration for this shader is that the Alpha Channel of the Normal map also defines the Illumination Map." link here: http://docs.unity3d.com/Documentation/Components/shader-SelfIllumBumpedDiffuse.html

I'm not sure why this would be the case, as I mentioned before it works fine but messes the normal information up, until I set the normal map to be a normal map in the inspector, and then normals work find but self illumination doesnt work.

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 ScroodgeM · Jul 15, 2012 at 05:33 PM 0
Share

i'd check source for shader described at link above, but there's no use alpha channel from normal map in any way. i think it's a error in docs...

  1. create duplicate of your normal map with alpha

  2. one copy of it mark as normal map and fill "normal map" field in material

  3. second copy of it mark as normal texture and fill "illu$$anonymous$$ation map" field in material

this should work. really you need texture with alpha channel only for illu$$anonymous$$ation

avatar image
0

Answer by TLMultimedia · Jan 16, 2015 at 03:06 AM

I too followed the Unity Manual for Self Illum Bumped Diffuse and sure enough @ScroodgeM is correct and it does not work. The only way I can get the Alpha on the normal map file to respond as a light map is by leaving it a default texture type which is clearly no use for the normal map.

The documentation is clearly either incorrect or lacks a suitable explanation of how any work-around would be achieved.

Odd that the documentation would remain incorrect for 2 1/2 years but I can think of no other explanation.

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

7 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

WorldNormalVector(IN, o.Normal): how is it calculated? 3 Answers

How can I add Normal mapping to a Terrain custom shader? 0 Answers

Shader: actual view direction/normal? 2 Answers

Normals face correctly, but lit reversed 1 Answer

Fading Normal Map 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