[QUESTION] Generating new maps from heightmaps images.

Post Reply
User avatar
Megaf
Member
Posts: 99
Joined: Fri Nov 01, 2013 18:00
GitHub: megaf
IRC: Megaf
In-game: Megaf
Contact:

[QUESTION] Generating new maps from heightmaps images.

by Megaf » Post

Hi everyone,
Is it possible to generate a map from a heightmap like this (attached)? I pixelized it because I'd like each pixel to be a node.
[edit] I just uploaded the original non pixelized map just in case. Maybe it would actually looks better this way.

PS.: I'm not sure if this is the right place to ask this question, please, fee free to move this topic to other place.
Attachments
heightmap.png
(147.45 KiB) Downloaded 1 time
heightmap_pixelized.png
(44.44 KiB) Downloaded 1 time

User avatar
paramat
Developer
Posts: 3699
Joined: Sun Oct 28, 2012 00:05
GitHub: paramat
IRC: paramat
Location: UK

Re: [QUESTION] Generating new maps from heightmaps images.

by paramat » Post

Hey thats where i live :) This modder generates worlds that way, his code will do it viewtopic.php?p=117878#p117878

User avatar
Hybrid Dog
Member
Posts: 2775
Joined: Thu Nov 01, 2012 12:46
GitHub: HybridDog

Re: [QUESTION] Generating new maps from heightmaps images.

by Hybrid Dog » Post

Of course it's possible to get the height from an image. The code for .bmp images is already done for the "image loader mod" and pngs can automatically be converted to bmps with the right program.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest