Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

My own height map is not working...

Discussion in 'Shaders' started by thornblom, May 6, 2015.

  1. thornblom

    thornblom

    Joined:
    May 6, 2015
    Posts:
    1
    I'm new to height maps and that stuff, so excuse me a bit..
    I'm using a relief mapping shader, and it works really great. But, when trying to make my own height map it just scales the whole texture when I change the height parameter. When using the Unity default particle texture as height map, the height parameter acually works as it should. So it's def something wrong with my height map..
    I'm just using Gimp to make a black/white layer (same dimensions and stuff) and exports that layer.
    How am I supposed to create my height map from my texture?
     
  2. TomTrottel

    TomTrottel

    Joined:
    Aug 16, 2014
    Posts:
    18
    Are you using Unity 5 ?

    Just black and white is not enough really for a good heightmap. You need grayscale. I often draw the darkest areas black and then use a gausian blur often it. Fast and ok results mostly for structures like walls.