Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Normal maps not working in asset bundle made with unity 2019.3

Discussion in 'Asset Bundles' started by francescocagnetta, Mar 2, 2020.

  1. francescocagnetta

    francescocagnetta

    Joined:
    Jun 11, 2018
    Posts:
    13
    Hello,
    as in the title, I am facing problems with normal maps when I load asset bundles at runtime. The maps are there in the right place, if I run the game in the editor and load the bundle, I can see the file in the normal map slot, but you can't see it on the objects, and ofc if you change the multiplier value nothing happens.

    Any advice?
     
  2. DrSeltsam

    DrSeltsam

    Joined:
    Jul 24, 2019
    Posts:
    100
    I ran into the same issue using Unity 2019.3.7f1 and HDRP 7.3.1. I have a prefab which uses the standard HDRP Lit shader with an albedo and normal map. When loading the prefab at runtime from editor, everything works fine, but when loading it from an asset bundle, the normal map doesn't work. It shows up on the material settings, but it has no effect. Changing the normal map texture has no effect either. However, changing the shader of that material in editor (it's sufficient to re-select the HDRP Lit shader) makes the normal map to work suddenly :eek:

    It looks like normal mapping gets stripped from the shader from the shader/material?
     
  3. yanenwei1990

    yanenwei1990

    Joined:
    Mar 5, 2020
    Posts:
    2
    Has the above problem been solved?
     
  4. yanenwei1990

    yanenwei1990

    Joined:
    Mar 5, 2020
    Posts:
    2
    Has the above problem been solved?
     
  5. jsr2k1

    jsr2k1

    Joined:
    Aug 11, 2010
    Posts:
    118
    2 years later, still facing the same problem..

    Any solution?

    Unity version v.2020.3.34
    Material with HDRP/Lit