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

Glitch when importing raw as heightmap

Discussion in 'General Graphics' started by Onack, Nov 4, 2020.

  1. Onack

    Onack

    Joined:
    Mar 21, 2014
    Posts:
    2
    I have a heightmap, it is exported as geotiff from QGIS then opened in ImageJ and saved as raw, it is a 16bit grayscale image with Intel byte order(Mac). It seems like when the reader gets to color value above 255 it puts it at height 0.

    If I use 8bit it works just fine, but then i get really jagged edges because of lower vertical resolution.
    Edit: Seems also that black is at height 255 for some reason
     

    Attached Files:

    Last edited: Nov 4, 2020
  2. B_Campbell

    B_Campbell

    Unity Technologies

    Joined:
    May 21, 2019
    Posts:
    10
    Hey Onack,

    Do you mind sharing the heightmap texture so we can test and investigate on our side? Are you also using Terrain Toolbox or another tool to import the heightmap?
     
  3. Onack

    Onack

    Joined:
    Mar 21, 2014
    Posts:
    2
    Using the Terrain Toolbox. Attached is the zipped raw file
     

    Attached Files: