Page 2 of 2

Re: [Idea and Method] Improved heightmap generation

Posted: 19 Dec 2009 21:07
by petert
Zephyris wrote:http://hg.openttd.org/openttd/trunk.hg/rev/c3959fffa40a

:D I am looking forward to the nightly!
Ooh! This is the first suggestion topic I've actually seen go anywhere :-)

Re: [Idea and Method] Improved heightmap generation

Posted: 19 Dec 2009 22:21
by cmoiromain
Then maybe you should have a better look.

Re: [Idea and Method] Improved heightmap generation

Posted: 20 Dec 2009 20:21
by Firestryke31
Could this be extended to provide some kind of "archipelago" map? I've been wanting to play games where there are a bunch of medium-sized islands instead of one big continent and the current map generator is, well, not too good at specifying that. I've gotten close, but it's always taken "generate map, check it out, find no suitable islands, quit, rinse, repeat." I think more options for the map generator is always a good thing as long as they're kept at sane default values.

Re: [Idea and Method] Improved heightmap generation

Posted: 20 Dec 2009 20:25
by CommanderZ
Firestryke31 wrote:Could this be extended to provide some kind of "archipelago" map? I've been wanting to play games where there are a bunch of medium-sized islands instead of one big continent and the current map generator is, well, not too good at specifying that. I've gotten close, but it's always taken "generate map, check it out, find no suitable islands, quit, rinse, repeat." I think more options for the map generator is always a good thing as long as they're kept at sane default values.
There are water level definitions somewhere in the tgp.cpp assigning water percentages to each water level setting. IIRC I also made a patch for this adding one or two water level setings some (long) time ago. But it is really easy to change yourself.

Re: [Idea and Method] Improved heightmap generation

Posted: 21 Dec 2009 11:06
by Kerygma
Congrats on the inclusion! That's really a great feature :bow:

Re: [Idea and Method] Improved heightmap generation

Posted: 21 Dec 2009 11:38
by Terkhen
I use a slightly modified version of CommanderZ's patch to allow selecting the percentage of water you want from 2%, 10%, 25%, 33%, 50%, 66%, 75% and 90%. Of course you won't get that exact percentage of water after map generation but only an approximation. The resulting islands weren't grouped together; I haven't tested this new feature along with islands but I think their placement will be improved too.