importing a heightmap 4097x4097 from unity exported

Hi,

(unity version 2.6.1f3)

I’ve imported a 8bit 4096x4096 heightmap in unity, changed the terrain a bit and exported it to a new raw file, which unity sets at 4097x4097.

After tweaking things in photoshop and saving it in the 4097 resolution, unity won’t import it, as it’s 1 pixel to big.

When i rescale it in photoshop to 4096, unity will import it.
However, the polygon positions move like 30 cm in a certain direction. So that’s a no go.

Why can’t i import this heightmap in unity which was exported from unity without rescaling it?

Best regards,

Atzer

I got this same issue when following a similar method, I don’t know the exact cause of this or if this is a proper resolution but you can try exporting your terrain doing whatever work needs to be done in photoshop and when you’re done rather than resizing the image within photoshop (if that’s how you’re doing this) resize the canvas.

I noticed if I resize the image then the canvas it gets all screwy but if I only resize the canvas it seems to work. I also noticed that when you export from unity it creates Alpha channels for any of the alterations you’ve made within Unity, You have to make sure that you also resize the Alpha channel, or at least make sure it remains lined up properly, this should happen on its own…but it wasn’t for me, so double check that too.