Search Unity

Question .mtl not mapping textures for URP?

Discussion in 'Editor & General Support' started by fusobotic, Mar 24, 2021.

  1. fusobotic

    fusobotic

    Joined:
    Feb 27, 2010
    Posts:
    15
    Currently have this .mtl with matching textures in the same directory as the .obj, but the URP standard lit shader is only mapping the Base Map value and not any of the others. Also I noticed the smoothness and metallic sliders as at their defaults as well, even though I set Ks to 1.0 in the mtl. I am using 2019.4.0f1

    Code (csharp):
    1. newmtl Serena
    2. Ns 225.000000
    3. Ka 1.000000 1.000000 1.000000
    4. Kd 0.800000 0.800000 0.800000
    5. Ks 1.000000 1.000000 1.000000
    6. Ke 0.000000 0.000000 0.000000
    7. Ni 1.450000
    8. d 1.000000
    9. illum 2
    10. map_bump Serena_Normal.png
    11. map_Kd Serena_Albedo.jpg
    12. map_Ks Serena_MR.png
    13. map_Ka Serena_AO.jpg
    I would like to know how I should be formatting the .mtl file for these so that they automatically map to their fields and I won't have to mess with extracting the material, thanks!

    Results currently:
    upload_2021-3-23_21-40-3.png