• 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 blagthen · Oct 21, 2014 at 01:52 PM · androidshadersflickeringspecularnormal map

Specular and normal map artefacts problem

Hi, I've been searching for days on internet but i can't find any solution for my problem. So here it is: First eveything seems ok in my computer, but all the problems comes when i built and run on my samsung tab2. I'm trying to archive a "leather" texture and of course to have the best results i want to use specular and normal bump. I tried all shaders with bumped specular (currently using the self-illumination bumped specular), but i have the same problem with all the shaders. As long as i only use normal map or specular everything seems fine, the problem seems to be when i use both [but i need to use both...] So here it is, in distance, i have some squares artefacts as shown in the image: alt text

And when i'm closer to the couch i'm getting some white flickering like this: alt text

I'm a newbie, but since i tried everything i could think about [increase AA, remove mipmaps, etc] but nothing worked. Also right now in the scene i have a directionnal light (also tried point light but didn't get any better...).

I tried to write all the specification in my post but if the is missing any elements don't hesitate to ask! I'm kind of desesperate right now...

Thanks!

artefact_loin.png (73.7 kB)
artefact_proche.png (506.0 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 blagthen · Oct 23, 2014 at 03:17 PM 0
Share

no more idea about what could solve my problem? Is it because I am the only one running this problem or because no one have found a solution yet?

avatar image Kreshi · Apr 13, 2016 at 04:26 PM 0
Share

I am having the same problem on mobile devices :(

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Kreshi · Apr 13, 2016 at 06:26 PM

OK, i found the solution to this problem. For whichever reason, the normals returned by UnpackNormal will return normalized normals on Standalone, but not normalized normals on Mobile. So normalizing the normals in your shader right after unpacking them will do the trick.

Comment
Add comment · Show 2 · 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 ebanimations · Dec 16, 2016 at 12:14 PM 0
Share

@$$anonymous$$reshi

Do you have an example of how your normalizing the normals in your shader?

I'm doing this: o.Normal = normalize(normal);

in my shader but its having no affect?

avatar image Kreshi · Dec 25, 2016 at 09:51 AM 0
Share

ebanimations

yes, just like that. But maybe there is something else wrong in your shader or normalmap?

avatar image
0

Answer by ScareCrow95 · Apr 13, 2016 at 04:46 PM

try reducing the intensity of the normal map , that helped in my case , you will get less of the artifacts

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
1

Answer by bobin115 · Oct 21, 2014 at 02:00 PM

with Specular the flashing is the shininess there is a little slider that you can use to turn it down, or darken the normal map texture,both work.

alt text


help.png (23.8 kB)
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 blagthen · Oct 21, 2014 at 02:07 PM 0
Share

yes i tried this too, even if i darken it i get the problem. It's less apparent when i lower the shininess, but for my material i need somethin more "condensed", not an overall spec :/

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

7 People are following this question.

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

Related Questions

How to reduce shader compilation time on android devices 0 Answers

Specular Materials on iPhone or Android? 1 Answer

Shader and normal map working when editing, but sprite turns black when running with animations 2 Answers

Creating a Water Surface with a Texture-shaped Hole For Android 0 Answers

Ideas on Transparent shader that can receive shadows and is not ignored by Post processing stack? 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