Skip to content
Discussion options

You must be logged in to vote

after normalizing the pixel values (between 0,1), I obtained the following plot.
This did not resemble the shape of the terrain I have sculpted in Godot.
I was unable to understand why this happened and I couldn't debug it.

You didn't normalize; you clamped. Two completely different operations. As the docs say, the data are real heights. How does one convert values between say -500 and 500 to 0-1? clamp(x, 0, 1) is the wrong answer.

If you explore the documentation and API more, you'll find we have an exporter tool written in gdscript that uses data.export_image so you don't need to do per region. However, as the import docs say, Godot doesn't support higher than 8-bit PNGs, so export w…

Replies: 1 comment 1 reply

Comment options

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

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