Search Unity

Normal Map to Greysale Bump?

Discussion in 'Formats & External Tools' started by antenna-tree, Oct 6, 2006.

  1. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    I never thought I'd need to do this, but does anyone know of a method to turn a normal map into a greysclae height/bump map? I know this is a little backwards, but I need to manually edit a large UV set and doing it in greyscale would be much easier.
     
  2. drJones

    drJones

    Joined:
    Oct 19, 2005
    Posts:
    1,351
    kill the saturation or just convert to grayscale? you might need to play with the levels then.
     
  3. freyr

    freyr

    Joined:
    Apr 7, 2005
    Posts:
    1,148
    No, removing the saturation from a normal map will not generate a displacement map. A normal map encodes the normals at each pixel in the RGB values, wheras a displacement map encodes the height difference from a flat surface in each pixel.

    To convert a normal map to a displacement map, you would have to somehow integrate the normal map.
    Some googling gave me this site, which contains a tool called Displacement Map Creator, that should do exactly that. The only problem is that it requires a Win32 PC to run.

    PS. The same page also describes a way to create normal maps from 4 differently lit photographs of a real object using Photoshop.
     
  4. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    That's what the dusty PC sitting in the corner is for :wink: I'm not sure I can get DirectX 9 to install on it though.

    That's really cool, I might have to build a little lightbox setup and test that out. Thanks Keli for the link.
     
  5. forestjohnson

    forestjohnson

    Joined:
    Oct 1, 2005
    Posts:
    1,370
    Wow that is a great tutorial. If my gfx card could do bumpmaps I would be all over that in a second.