Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by wuv · May 20, 2016 at 01:53 PM · texturematerialalphaspecularalpha channel

Specular Texture with Smoothness Issue

Hi all,

Hoping somebody can help with a problem I'm having with specularity/smoothness in my materials.

My problem is that I don't seem to have control over the smoothness of my material when using a specular map. As i understand it - smoothness is controlled using the alpha channel of the specular map, however whatever I do in my alpha channel seems to have no affect on the smoothness of my material. Even using a black spec map w/ black alpha channel, there is a small fresnel looking effect on my assets (see below) - I would assume that this would have created the same look as the top image. I even tried a black spec map /w white alpha, and still no change (bottom image).

Everything works fine without a spec map plugged in - I can reduce the smoothness/specularity completely - but obviously I need be able to reach the same smoothness values with a specular map included.

I'm using 8 bit PNG's - although I've tried 16 bit PNG's and Targas - but no luck...

I'm hoping I'm missing something obvious as it is quite frustrating! Any ideas as to what might be causing the problem?

alt text

specular-example-01.png (417.6 kB)
Comment
Add comment · Show 4
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 FortisVenaliter · May 20, 2016 at 02:20 PM 0
Share

On your texture import settings for the specular texture, have you checked the box "alpha is transparency"?

avatar image wuv FortisVenaliter · May 20, 2016 at 03:10 PM 0
Share

Hi Fortis, Thanks for the quick response. I did try that too yes - I've just double checked again and it doesn't affect it. Out of interest - why might that have been a solution?

avatar image FortisVenaliter wuv · May 20, 2016 at 03:24 PM 0
Share

Because sometimes the alpha channel doesn't seem to import properly if it's not checked. It was a shot in the dark, but worth a shot.

What program are you using to export the image? $$anonymous$$aybe it didn't export properly? Can you attach the two black textures you are using?

Show more comments

1 Reply

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

Answer by FortisVenaliter · May 20, 2016 at 03:44 PM

Yep, that's the issue. Both of those images have full 1 for the alpha component. I checked this by opening them in Gimp (sort of an open-source equivalent to PS), and decomposing the RGBA layers. The color channels are black, but the alpha is full on both images. You need to look into how you are exporting them.

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 wuv · May 20, 2016 at 03:51 PM 0
Share

Sorry I'm not sure what you mean by 'full'. If you mean just fully black/white colour channels/alpha channel without any change in values for the texture - that's what I'm using just to test the problem. I figured that it would be easier to spot if anything changes if using just black/white. Unless you meant something else?

avatar image FortisVenaliter wuv · May 20, 2016 at 03:53 PM 0
Share

No, what I mean is that both textures are identical. Each color is (0,0,0,1). They have zero in the color channels, and 1 in the alpha channel. Both of them. So, that's why you have full shininess in your material.

avatar image wuv FortisVenaliter · May 20, 2016 at 03:58 PM 0
Share

Ah ok, so there's no difference in the alpha channels...weird. I will have to look into that now. Thank you for the help! One step closer...

avatar image wuv · May 20, 2016 at 05:11 PM 0
Share

Just an update - I've found a plugin which exports with the alpha channel in tact, so problem is solved. Not sure when this problem may have started, I've exported alphas from this version of CS6 before...very strange. Anyway, cheers very much for the help, much appreciated!

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

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

Related Questions

Raw Image changing texture in inspector but not in game. 1 Answer

Lighting issues despite not having normals,Lighting not displaying correctly despite no normal maps 0 Answers

Material.SetTexture doesn't work if not "_MainTex" 0 Answers

Terrain completely naked after downgrading from 2018.3.0f to 2018.2.8f 0 Answers

Skybox not correctly alpha blending with custom Shader 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