Search Unity

Unity normal maps orientation format: OpenGL or Directx?

Discussion in 'General Graphics' started by riba78, Oct 15, 2018.

  1. riba78

    riba78

    Joined:
    Feb 16, 2018
    Posts:
    33
    I'm going mad with a Unity directx11 desktop project.
    I'm using Substance Designer to create textures and export them to Unity as texture files.

    The problem is about the normal map: normal map on Designer 3dview mismatches the result on Unity.
    First of all, I'd like to know which normal map orientation uses Unity: OpenGL (Y+) or Direct (Y-)?
    I havent' found any official information.Just some random posts between Unity Answers and Allegorithmic forum and it seems that Unity uses OpenGL (Y+). Does someone know any official information?

    I'm using Unity 2017, so legacy render pipeline, not new HD SRP

    Thank you
     
    Last edited: Oct 15, 2018
    AntonioModer likes this.
  2. brownboot67

    brownboot67

    Joined:
    Jan 5, 2013
    Posts:
    375
  3. riba78

    riba78

    Joined:
    Feb 16, 2018
    Posts:
    33
    Thank you.
    So now I'll check why I have mismatching with Designer.
     
  4. riba78

    riba78

    Joined:
    Feb 16, 2018
    Posts:
    33
    I've completely resolved.
    I had to change the normal orientation of the preview material used in Designer.
    In this way, all is aligned: Unity, Normal Node in Designer and 3D preview in Designer.
     
  5. pretorious

    pretorious

    Joined:
    May 7, 2015
    Posts:
    6
    Hi there,
    I had this issue so from Substance to Unity, so do you have to create the normal map as Open GL instead of Direct X to work correctly within Unity
     
    akareactor likes this.
  6. sirleto

    sirleto

    Joined:
    Sep 9, 2019
    Posts:
    146
    as i struggled with this, too (once again, like every year atleast once) ...
    (and this is the top google result, atleast for me)
    ...here is the right answer:


    as usually found inside a great article from great @bgolus
    https://bgolus.medium.com/generating-perfect-normal-maps-for-unity-f929e673fc57