Search Unity

Terrain stamp and 16bit heightmap

Discussion in 'World Building' started by chena_cpp, Dec 18, 2019.

  1. chena_cpp

    chena_cpp

    Joined:
    Oct 27, 2014
    Posts:
    24
    I use a 16 bit png as a brush, terrain is 2m / heightmap pixel.
    terrain tools preview 2.02.

    upload_2019-12-18_19-15-58.png
    After paint

    upload_2019-12-18_19-18-18.png

    this is a bug or i set something wrong?

    Thanks.
     
  2. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    What is the resolution of your png ?
     
  3. chena_cpp

    chena_cpp

    Joined:
    Oct 27, 2014
    Posts:
    24
    257x257, same as terrain heightmap.

    I upload the png for test.
     

    Attached Files:

  4. konsic

    konsic

    Joined:
    Oct 19, 2015
    Posts:
    995
    I would say your resolution is too low.
    World machine produces 513x513 at minimum.
     
  5. ChrisTchou

    ChrisTchou

    Unity Technologies

    Joined:
    Apr 26, 2017
    Posts:
    74
    Hello!

    I downloaded your image and tested it. The issue is actually that 16 bit PNG files get downgraded to 8-bit at some point in the import pipeline. I will get a bug filed for that.

    I tested converting the image to a 16-bit TIFF file, and it imported correctly without the quantization.
    (Just make sure you select "R 16 bit" as the texture format)

    -Chris
     
    chena_cpp likes this.
  6. chena_cpp

    chena_cpp

    Joined:
    Oct 27, 2014
    Posts:
    24
    Thanks.
    Which software did you used to convert to tiff? I tried paint.net, it seems it convert to 8bit tiff.