Skip to content

How to import Tangrams heightmap? #587

Closed Answered by TokisanGames
ljlhouben asked this question in Questions
Discussion options

You must be logged in to vote

The file format from the Tangrams site is default *.png with 32 bit color depth (grayscale though), is this usable or do I need to convert?

The document you linked explains that Godot doesn't support greater than 8-bit png. Convert to exr in photoshop, gimp, or Krita, then import that.

If you save your file as normalized (values 0-1), then scale it on import to whatever height you want, or whatever peak height to trough you get from that website.

To what size do I need to shrink the image canvas? ( My original file is 7780x4395 pixels)

Max size is +/-32767 (total 65.5kx65.5k). I'm sure it will fit. You must have a large enough region size though. You get up to 32x32 regions. So 8k / 3…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ljlhouben
Comment options

Answer selected by ljlhouben
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants