How to import Tangrams heightmap? #587
-
Simple question, As a newbie, I would like to import a piece of map from https://tangrams.github.io/heightmapper/ as a starting point to create a map for a game level. I tried to follow the https://terrain3d.readthedocs.io/en/stable/docs/import_export.html tutorial, but not all settings are explained in detail therefore I don't understand them all.
Regards Ludo |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
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 / 32 is 256, minimum region size (default) .
Sorry I can't support 3rd party tools like this tangrams app or image editing apps. Learning about image formats and how to manipulate them, understanding what format your data is in, which tools support which formats, how to adjust into new formats, all can be done with YouTube tutorials and is well worth your time. You'll learn more through testing and experimentation. These are basic skills you'll use throughout your entire career, not just in gamedev. How to import data in our tool is already written about, and demonstrated in my first tutorial video. The differences with the latest are minor. |
Beta Was this translation helpful? Give feedback.
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.
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…