Search Unity

  1. All Pro and Enterprise subscribers: find helpful & inspiring creative, tech, and business know-how in the new Unity Success Hub. Sign in to stay up to date.
    Dismiss Notice
  2. Dismiss Notice

Bug Terrain Heightmap generation issue - results in sawtooth ridged terrain.

Discussion in 'World Building' started by LuciferTheITGuy, May 29, 2021.

  1. LuciferTheITGuy


    May 9, 2020
    Images attached below of the issue I've been having. The terrain turns into a ridged, jagged mess when the height map is imported.

    I've been processing in Illustrator, exporting as a png, and then converting from a PNG to Raw using Fiji (ImageJ). As far as I can tell the png (shown below) file is fine, as is the raw image. Everything looks fine until the terrain is generated from the heightmap. I imported the same heightmap (albeit the png) into blender and did not have any issue, but viewing both the heightmap and png - they are identical.

    This is one of the height maps I'm trying to import. I've added a gaussian blur in as well which did not help with the issue.
    I've tried changing the byte order and depth, but changing either of those just results in a smaller jagged mess that looks nothing like the continents I'm trying to import.
  2. Spudly1701


    Aug 25, 2013
    Just going through all the things that should be checked, apologies if you've done all these.

    Heightmap should be grayscale, 16bit. (change settings in Photoshop/Editor of choice)
    Heightmaps need to be Power of 2 +1, so if your heightmap image is 2048x2048, resize it to 2049x2049, if 4096, resize to 4097 etc.
    Make sure the exported Byte Order and importing byte order are the same (Mac/Windows).

    That's all I can think of at the moment, hope it helps.