Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question How to conveniently generate normal & mask map for 2D texture?

Discussion in '2D' started by FlyMonkeyKing1, Oct 4, 2023.

  1. FlyMonkeyKing1

    FlyMonkeyKing1

    Joined:
    May 10, 2023
    Posts:
    5
    I have read through the document given by Unity, they said using Photoshop. May I ask do they generate the texture automatically or manually? Btw, are there any software or methods recommended for the generation?

    upload_2023-10-3_20-42-28.png

    The PS interface for the 3D normal map filter is not convenient, functional, and user-friendly:
     
    Last edited: Oct 4, 2023
  2. FaithlessOne

    FaithlessOne

    Joined:
    Jun 19, 2017
    Posts:
    312
    There are a couple of software solutions for generating normal maps out there. I use Laigter for my project. It is free and can batch process many files. There are also a few configuration options for the normal maps. Quality of the maps is decent for a free tool. Also tile maps are supported, but they require some fine-tune effort. You can get the tool here:
     
    FlyMonkeyKing1 likes this.
  3. FlyMonkeyKing1

    FlyMonkeyKing1

    Joined:
    May 10, 2023
    Posts:
    5
    Thanks! Do you also know any tools for generating the mask map?
     
  4. FaithlessOne

    FaithlessOne

    Joined:
    Jun 19, 2017
    Posts:
    312
    With "mask map" I guess you are referring to _MaskTex which can be added as a secondary texture to other textures. It can be used by shaders for different purposes. The screenshot you posted indicates that they may probably be used in your case for some additional highlighting/shading. Unfortunately I don't know of concrete tools that can reproduce these results. Certainly there are some other tools than Photoshop which can create such mask maps.
     
    FlyMonkeyKing1 likes this.