Search Unity

Heightmap issue

Discussion in 'Editor & General Support' started by diablo, Aug 14, 2012.

  1. diablo

    diablo

    Joined:
    Jan 3, 2011
    Posts:
    736
    Hello,

    I'm trying to import a height-map from Blue Marble (http://earthobservatory.nasa.gov/Features/BlueMarble/Images/srtm_ramp2.world.5400x2700.jpg) that I scaled to 4096x2048 and saved as RAW in photoshop, but I'm having issues (PC/Windows).

    Depth : 8
    Width : 4096
    Height : 2048
    Byte Order : PC
    Terrain Size
    X : 4096
    Y : 100
    Z : 2048

    I exagerated the Y for now so I can clearly see the elevations. What I get is a 4096x2048 terrain, the lower half of which seems to be reflecting all the heightmap data (in other words, the bottom 4096x1024 of this map seems to be squeezing the 4096x2048 heightmap into it) and the top half of the terrain is untouched (completely flat) except for the fact that it's elevated at a Y close to the maximum Y of 100. I thought perhaps the huge terrain size might be an issue, so I tried a small terrain size of 100,5,50 but same issue. It also appears inverted and upside down.

    Any thoughts?

    .
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Heightmaps must be power of two plus one, and square. i.e., 513 x 513.

    --Eric