Skip to content

Loading height maps and textures? #72

Answered by spimort
niklasking asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @niklasking !

I'm so glad you enjoy what I've done!

So, the whole system is based on heightmaps, as long as you have ImageTexture resource in Godot, you should be able to use it in the zones.
For the heightmap itself, I use the RF format (OpenGL texture format GL_R32F where there's one component, a 32-bit floating-point value.) so I can have somewhat precise values that goes over 255.

I made a quick test here, I took a heightmap from new york (only the area with the squares) :

and I made a script to convert the resulting image into 4 zones :


Obviously my source image is not really precise but that gives you a picture of what could be done.

This was just a quick test, but here's wh…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
9 replies
@spimort
Comment options

@niklasking
Comment options

@spimort
Comment options

@niklasking
Comment options

@spimort
Comment options

Answer selected by niklasking
Comment options

You must be logged in to vote
0 replies
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