a Worldmap generator - new version with Biome generation

Showcase your libraries, tools and other projects that help your fellow love users.
Post Reply
User avatar
chezrom
Citizen
Posts: 59
Joined: Tue May 28, 2013 11:03 pm
Location: France

a Worldmap generator - new version with Biome generation

Post by chezrom »

NEW VERSION with :
  • rain & temperature computation
  • display inform about the pointed cell (temperature, biome, altitude ...)
  • biome generation (Tundra, Rain Forest, ...)
  • 3 view : altitude, altitude with rain level & biome view. Switch between view with TAB key
[/b]

The new views :
The rain level
The rain level
worldgen_rain.jpg (27.12 KiB) Viewed 4349 times
The biome
The biome
worldgen-biome.jpg (47.14 KiB) Viewed 4349 times

Some post dungeon or word generator. So I post a worldmap generator (with sea and relief) I do to test some other ideas.
It don't use perlin noise nor fractal. It grows seas (with pseudo random) from lines seed and compute relief (with diffusion, not very perfect) on land.
Each cell of my map is 5x5 pixels.



The world is a cylinder. To rotate : Left mouse button and drag
To regenerate a new map : right mouse button.
Attachments
worldgen.love
new version with biome generation
(31.29 KiB) Downloaded 285 times
Last edited by chezrom on Thu Jul 18, 2013 10:13 pm, edited 2 times in total.
User avatar
Eamonn
Party member
Posts: 550
Joined: Sat May 04, 2013 1:29 pm
Location: Ireland

Re: a Worldmap generator

Post by Eamonn »

Looks pretty awesome! I like it! :)
"In those quiet moments, you come into my mind" - Liam Reilly
User avatar
chezrom
Citizen
Posts: 59
Joined: Tue May 28, 2013 11:03 pm
Location: France

Re: a Worldmap generator

Post by chezrom »

Eamonn wrote:Looks pretty awesome! I like it! :)
Thank you.
User avatar
Mermersk
Party member
Posts: 108
Joined: Tue Dec 20, 2011 3:27 am

Re: a Worldmap generator

Post by Mermersk »

This is very cool chezrom. :P
User avatar
chezrom
Citizen
Posts: 59
Joined: Tue May 28, 2013 11:03 pm
Location: France

Re: a Worldmap generator - new version with Biome generation

Post by chezrom »

Mermersk wrote:This is very cool chezrom. :P
Yeah thank you ! And to be more cool, I post a new version with Climate & Biome generation, and multiple views (TAB to swith between them).
The love file is in the first post.

At the bottom of the screen, I display information about the cell pointed by the mouse :
  • latitude
  • altitude, in meters
  • temperature, in Celcius degrees
  • rain (100=max of the map)
  • the biome.
For the Climate & Biome computation I have adapted a cool work done by Jice, author of the libtcode library for rogue-like.
The cool work can be found here, under the name "world generator", among other jewels.
A good article of Jice about precipitation and rain can be also found here.

My code is not similar : I don't use the same land mass generation, nor erosion and my winds model is not the same (I use east/west winds and a wind pattern nearer of the earth). Else the code for biome (using Whittaker biome diagram), for rain computation and for temperature is the same.

I think, however, than some tuning must be done, for example I find that equatorial forests are misplaced.

Enjoy !
User avatar
Zer0
Citizen
Posts: 59
Joined: Sat Oct 06, 2012 9:55 am
Location: Sweden
Contact:

Re: a Worldmap generator - new version with Biome generation

Post by Zer0 »

It looks really cool.

I changed the rendering to render it on a canvas ONCE instead of drawing the entire map every frame.

It looks exactly the same but it renders faster ( and may have a little extra load time )
Attachments
WorldgenWithCanvas.love
Worldgen With Canvas
(31.57 KiB) Downloaded 191 times
If you can't fix it, Kill it with fire. ( Preferably before it lays eggs. )
User avatar
BulbaMander
Citizen
Posts: 65
Joined: Sat Dec 15, 2012 7:00 pm

Re: a Worldmap generator - new version with Biome generation

Post by BulbaMander »

Really cool, I like it a lot. I noticed that islands that are around 10-15 pixels wide will register as sea, and be biome 0. Just though Id let you know.

EDIT: I looked a little closer, and the program recognizes the island, it just isnt showing up as a Biome, idk why but yea what I said is wrong.
It takes an idiot to do cool things. Thats why they're cool. :emo:
Post Reply

Who is online

Users browsing this forum: No registered users and 224 guests