Jump to content

[SOLVED] landscape - png heightmap elevation scale problem


photo

Recommended Posts

Hello Unigine Team,

I am trying to create a landscape from PNG height maps but the elevation scale is wrong. If I use 8-bit tif height maps, the landscape generates as expected. The 8-bit depth is causing terracing/stepping in the elevation, so I decided to use 16-bit grayscale pngs.

8bitTifHeightmaps.thumb.jpg.522c68403d67aefe6150314d3bbf8cab.jpg

It looks similar to what is in 3ds max:

3dsmax.thumb.jpg.23c61f44015a0cf5ced2557a8e11f886.jpg

The 16 bit pngs do not create the expected elevation, the scale seems to make lows higher and the high areas lower. The terrain is very smooth though!

16bitPngHeightmaps.thumb.jpg.2057330f5efc520d06a1c90c6a01e148.jpg

 

How can I get the png's to create the correct elevation? I generated the pngs and tifs from 3ds max using a cage height of 416.25 meters as show in elevation settings below. Also, the elevation scale does not seem to save.

elevationsettings.thumb.jpg.2de6a50b4c3497526e5c1c7fee8f1be5.jpg

Attached you will find my height maps (png and tif) and landscape files for each. Place height maps in C:\HeightSectors

 

 

HeightmapLandscape.zip

Well, I've found a work around! In 3ds max I can render out a 16-bit color Tif. Then I load the 16-bit color tif into gimp and convert it to a grayscale image and that seems to work! Smooth and correct elevation. I hope this may help someone in the future.

fixedtiff.thumb.jpg.b756a4d13374c40d3264059dfc5660a3.jpg

  • Like 1
Link to comment
  • silent changed the title to [SOLVED] landscape - png heightmap elevation scale problem

Hello HarpSeal1,

Sorry for delay with the answer.

I've filed the issue with Normalization data not being correctly saved, thanks.

As for the heightmap troubles — glad you've found a workaround. More likely the problem was in the raster file type. You've used unsigned 16 bit, which changed every pixel value from 0 to 65,535. That could have broken the scale.

Thanks.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...