Skip to content

How is the max height calculated when using a heightmap? #169

Answered by JamesTKhan
antzGames asked this question in Q&A
Discussion options

You must be logged in to vote

With heightmaps it looks like the max height is calculated using an arbitrary value, terrainWidth * 0.17f

It should be possible to plug in different values to replace the hard coded 0.17f, the UI fields just have to be added in.

Adding in fields to change the value makes sense to me.

https://github.com/JamesTKhan/Mundus/blob/master/editor/src/main/com/mbrlabs/mundus/editor/ui/modules/inspector/components/terrain/generation/HeightmapTab.kt#L75

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by antzGames
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants