[Idea and Method] Improved heightmap generation

Got an idea for OpenTTD? Post it here!

Moderator: OpenTTD Developers

petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

Re: [Idea and Method] Improved heightmap generation

Post 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 :-)
User avatar
cmoiromain
Chief Executive
Chief Executive
Posts: 655
Joined: 15 Jan 2007 21:45
Location: FRANCE
Contact:

Re: [Idea and Method] Improved heightmap generation

Post by cmoiromain »

Then maybe you should have a better look.
I am little, ugly, and nasty. How do you do?
User avatar
Firestryke31
Engineer
Engineer
Posts: 17
Joined: 22 Aug 2009 02:53
Location: Throw a dart at central Texas
Contact:

Re: [Idea and Method] Improved heightmap generation

Post 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.
"Why were you late?"
"There was a train."
-- Conversation between 2 New Braunfelians
User avatar
CommanderZ
Tycoon
Tycoon
Posts: 1872
Joined: 07 Apr 2008 18:29
Location: Czech Republic
Contact:

Re: [Idea and Method] Improved heightmap generation

Post 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.
Kerygma
Engineer
Engineer
Posts: 14
Joined: 30 Jun 2009 11:06
Location: Germany

Re: [Idea and Method] Improved heightmap generation

Post by Kerygma »

Congrats on the inclusion! That's really a great feature :bow:
Terkhen
OpenTTD Developer
OpenTTD Developer
Posts: 1034
Joined: 11 Sep 2008 07:32
Location: Spain

Re: [Idea and Method] Improved heightmap generation

Post 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.
Attachments
more_map_settings_r18582.diff
(5.42 KiB) Downloaded 87 times
Post Reply

Return to “OpenTTD Suggestions”

Who is online

Users browsing this forum: No registered users and 12 guests