Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

[solved] Normal Map Smudges Problem

Discussion in 'General Graphics' started by Arthurtnt, Aug 29, 2015.

  1. Arthurtnt

    Arthurtnt

    Joined:
    Dec 2, 2012
    Posts:
    6
    Hi!

    I baked a normal map with substance designer and when i load it in Unity, it appears different. It seems to me that Unity loads the map with an another colorspace.

    When the specular light hits the mesh the stains appear. Like the image below:
    upload_2015-8-28_21-38-53.png

    But in Substance Designer it looks perfect. Like the image below:
    upload_2015-8-28_21-39-47.png

    And here is my normal map (I focused on the part that appears in the specular).
    upload_2015-8-28_21-46-39.png

    Here is the same normal map, but I increased the exposure(a lot) until I could see the stains:
    upload_2015-8-28_21-53-19.png

    Does anyone have any idea how to solve this?

    Here is what I already tried:
    - Change gamma in Photoshop
    - Check if mesh settings has no optimization options enabled
    - Check if the normal map has 16-bits info
    - Test in another software (Modo), and it was ok
    - Disable mipmap

    Thanks in advance!
     

    Attached Files:

  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    I might be confused - you said stains. Are you talking about the subtle metal patina streaks running down the side of the barrel?
    If so - wouldn't you want to control that via specular and roughness maps? Because a normal map is used for fake surface (bump) detail - not stains.

    Please correct any misunderstanding I have with your post - if I've misunderstood.
     
  3. Arthurtnt

    Arthurtnt

    Joined:
    Dec 2, 2012
    Posts:
    6
    Hi!

    I meant the smudges in the normal map, so that wasn't intentional. I wanted the metal to be flat.

    But actually I just figured out how to solve this. I found this video

    and it shows up that the best way to bake a normal map for Unity is by using xNormal with Unity Tspace plugin.

    and here is the result:
    upload_2015-8-29_10-17-41.png

    Sorry about "stains", I'm not a native speaker so I think that wasn't the best word to purport the problem.

    Thanks for your reply!
     
    theANMATOR2b likes this.