[Mod][Merged] Valleys Mapgen [valleys_mapgen]

Post Reply
User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

[Mod][Merged] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Hello !
This is my second mapgen. It aims to create various but realistic landscapes.
It's now also developed by duane and vlapsley.

This mapgen is now added in MT's core since January 14th 2016. It has been slightly modified, to be adapted to the core API and Minetest Game. Here this is the original Lua version.
Image

Some features :
  • Rivers : placed by a 2D noise (it may change), they have around 5 blocks width and 3 blocks depth. By default you can find rivers from height 0 to 120.
  • Mountains : modeled by 5 2D noises and a 3D noise. They are sometimes smooth and sometimes sharp and they can go up to y=200. My personal record : 278 with seed 9053682054377397076, at (239 ; 0).
  • Biomes : there are not formerly defined. That one of the principles of this mod. In fact, the terrain has various proportions of clay, silt and sand, various dirt thickness, humidity and heat. Every plant/tree has its own biome definition, resulting in very various biomes. So that's the plants themselves that define the biomes.
  • Vegetation : Valleys Mapgen generates 27 different plants:
    • 7 trees:
      • Default apple tree
      • Jungle tree
      • Pine tree
      • Fir tree
      • Banana tree
      • Birch tree
      • Cherry blossom tree
    • 12 flowers:
      • The 6 flowers from default
      • Gerbera
      • Arrow Arum
      • Bird of Paradise
      • Hibiscus
      • Orchid
      • Calla Lily
    • 2 mushrooms from default
    • Giant mushrooms (with setting "cave_stuff = true" in vmg.conf or "vmg_cave_stuff = true" in minetest.conf)
    • Cactus
    • Papyrus
    • Grass
    • Jungle grass
    • Dry Shrub
  • Trees generation : Valleys Mapgen has a somewhat strange way to generate trees, but it seems to work pretty well and results in very various shapes of trees. I use 3D Perlin Noises, with a spread parameter around 8, to place a sphere of leaves, distorted by the noise. I call it "leavesblobs". Trees are not all perfect, that the wanted effect. Some trees have very few leaves, that's why happen in the real world.
  • Altitude effects : the temperature parameter is decreased by climbing up. Snow begins to appear at 100 blocks height in average (you can change it in settings). The dirt thickness is also decreased by the altitude : no more dirt at 150 blocks in average, by default.
  • Ores : Valleys Mapgen supports all ores defined by minetest.register_ores, thanks to the new function minetest.generate_ores(vm, minp, maxp), and all of the ores from darkage.
  • Mapgen versions compatibility : if you download the mod and then I make a new version, and you update the mod, the mapgen will not change in old worlds, to avoid mapchunks gaps. It only supports the released versions.
  • Player spawner : You appear ON the ground, not IN, and not on an ocean either.
  • Settings : noises and many other features can be set in minetest.conf. See vmg.conf.example.
Spoiler
VMG 2.2 : More plants and treesImageImageImage

VMG 2.1 : River water …Image… and pine tree !
ImageImageImage

VMG 2.0 : TREES ! SNOW !ImageImage

Worldmap with 2.0 (seed 14280207678376675280) ; 2000×2000 nodesImage

VMG 1.3 : More dirtsImageImage

Worldmap with 1.3 (seed 9441853412759883959) ; 2000×2000 nodes. I'm in this world in the video. Try to locate my track on the map !Image

VMG 1.2 : LavaImage

VMG 1.1 : CavesImageImage

Worldmap with 1.1 (seed 5164276258932290250) ; 1000×1000 nodesImage

VMG 1.0ImageImageImageImage

These screenshots have been taken in completely natural worlds (I haven't placed or dug any block), with all default settings. So, by creating a world with default settings and the same seed, you will get the same world.
Video with 1.3 (French)
Video with 2.0 (French)
Mod review in English by NathanS

Download (rename to "valleys_mapgen") :
Latest (Code on Github)
Version 2.2 (Code on Github)
Spoiler
(I don't know why I've named the first version 1.0 and not 0.0)

Depends : default, minetest 0.4.12+ (or 0.4.11-dev after January 5). Prefer Minetest 0.4.12-dev after March 11th.
License : GNU General Public License

High-resolution textures added in HDX

Feel free to propose improvements :-)
Last edited by Gael de Sailly on Sun Dec 09, 2018 19:52, edited 41 times in total.
Just realize how bored we would be if the world was perfect.

User avatar
Krock
Developer
Posts: 4649
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Krock » Post

I looked into the codes and I'm surprised how well coded it is.
Adding trees to make the landscape even more beautiful would be a good idea.
Also, you could increase the minimal dirt depth, it doesn't look nice on some places because there's just stone.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Krock wrote:Also, you could increase the minimal dirt depth, it doesn't look nice on some places because there's just stone.
I wanted places with only stone, but it happens too often and on too large areas. I will tweak the parameters of noise 7, by reducing scale and adding octaves.
Just realize how bored we would be if the world was perfect.

twoelk
Member
Posts: 1482
Joined: Fri Apr 19, 2013 16:19
GitHub: twoelk
IRC: twoelk
In-game: twoelk
Location: northern Germany

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by twoelk » Post

Looks very promising.
Having a "reward" on top of a mountain doesn't sound that bad but I havn't tried your mapgen yet so I don't know how much is too much. :-)

I am all for large mountains as long as they look at least a bit naturall and not like some needles about to topple over. I wonder if some really large scale noise would be possible. I dream of mountains that may be 500 nodes high but also have a basis that is twice as wide giving an average slope of 45 degrees or even less. Or large diverse highland areas with highland water. Not just the generall 20 nodes high plateaus and mesas we now have so often. Just imagine having something like the Ngorongoro crater in the Serengeti of east Africa in Minetest -
Spoiler
Image
I don't know if Paramat ever got the rivers flowing in riverbeds really functional but that is a problem I would love to be solved in Minetest and that would surely put Minetest above all competitors.

As for the diversity, I would assume having biomes of different scales would also help. Like we allready have for the beach for example. Just as with terrain hight. I would imagine a relative large scale pattern of biomes according to temperatur, humidity, hight and light that is dotted with micro biomes at terrain edges and special places. If for some reason there is a small pond in a desert then a tiny oasis should be generated. Similar things could happen at all water edges, not just beaches and swamps.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

twoelk wrote:I dream of mountains that may be 500 nodes high but also have a basis that is twice as wide giving an average slope of 45 degrees or even less.
We have not the same opinion about it. So I have an idea : implementing a way to change mapgen parameters before world creation, in minetest.conf.
Just realize how bored we would be if the world was perfect.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Don » Post

Looks nice. I live in the mountains and you do see lots of stone. At high elevation all you see is stone.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Yes, so… it woud be good to include height in dirt thickness calculation.

Caves will come soon. I've already coded it, it works but it's not optimal IMO.
And also, there are really too many ores, at least 2 or 3 times more than in v6 (I will try to calculate it precisely). I can't do anything for my part because I use the function minetest.generate_ores(vm), and it may be this function which has problems.

EDIT : There are 3.05 times more ores than in mapgen v6 (calculated by running a #minetest.find_nodes_in_area in v6 without caves and in valleys_mapgen). How is it possible ? minetest.generate_ores shouldn't generate the ores exactely the same way than in v6 ?
Just realize how bored we would be if the world was perfect.

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

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by paramat » Post

This looks awesome! Will try it later.
twoelk, rivers now flow in my mapgens, by using 'update_liquids()' in the LVM stuff at the end. Also, it's recommended river water is non-renewable to avoid a huge mess, and has a range of 2 to 4 to hold it's shape on steep slopes.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by philipbenr » Post

Only complaint : No trees. Other than that, this looks amazing, and would be by far my favorite of all magpens.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

philipbenr wrote:Only complaint : No trees.
Not finished. There will be trees in the future, maybe not in the mapgen itself, since my project is to make a subgame including this mod. I'll even try to make trees that dies and regrow naturally.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Update : there are now caves !
The problem about ores is temporarily solved : I've used a second LVM to generate ores, which I think is unclean coding, see #2464. But it works.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

The mapgen has now some compatibility problems, because of some features that I use that are changing, especially minetest.generate_ores. It will stay compatible with 0.4.12-stable.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

NEW : Lava.
I wrote:The mapgen has now some compatibility problems, because of some features that I use that are changing, especially minetest.generate_ores. It will stay compatible with 0.4.12-stable.
Finally I've chosen to use the new API to rewrite it properly. Please update MT to a (very) recent build.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Trying to make biomes and to improve rivers. Wait… some time.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

1.3 released.
New : more dirts (clayey, silty, sandy). It's the beginning of the biomes.
Just realize how bored we would be if the world was perfect.

User avatar
philipbenr
Member
Posts: 1897
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi
Location: United States

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by philipbenr » Post

Sounds great. I'll look at it later.

User avatar
srifqi
Member
Posts: 570
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by srifqi » Post

*speechless, awake

We're waiting for biomes!
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Trees are coming…

For now, 2 trees : apple tree and jungle tree.
There will be more trees in the future.

Experimental code for trees : the leaves are generated from 3D perlin maps.
Just realize how bored we would be if the world was perfect.

Ivà
Member
Posts: 115
Joined: Sun Feb 22, 2015 07:11
GitHub: melzua
IRC: melzua
In-game: melzua
Location: Catalonia

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Ivà » Post

Oh! Wow...
+1

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

New : pine tree (you can call it "fir tree", in fact I've made fir trees from the nodes called default:pinetree and default:pine_needles).

This tree grows on high valleys, in the mountains, generally not on the top. I will probably change it.

I will release 2.0 when it will be playable in survival mode. Wait a little : I've not a lot of free time to spend on it. I will have more time after June 24th.
Just realize how bored we would be if the world was perfect.

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

Just realize how bored we would be if the world was perfect.

User avatar
Don
Member
Posts: 1643
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Don » Post

Wow! That looks really nice.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here

User avatar
srifqi
Member
Posts: 570
Joined: Sat Jun 28, 2014 04:31
GitHub: srifqi
IRC: srifqi
In-game: srifqi
Location: Indonesia

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by srifqi » Post

Good work Gael de Sailly!

Just checked the diff and watch many differences. Yes, a little bit longer while generating. Otherwise, wonderful!
Saya dari Indonesia! · Terjemahkan Minetest! · my mods · My nickname in IPA: /es.rif.qi/

User avatar
Gael de Sailly
Member
Posts: 845
Joined: Sun Jan 26, 2014 17:01
GitHub: gaelysam
IRC: Gael-de-Sailly
In-game: Gael-de-Sailly gaelysam
Location: Voiron, France

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Gael de Sailly » Post

srifqi wrote:Yes, a little bit longer while generating
That's normal since I've added some features. But it's not enormous. To compare, for my Forest mapgen, created more than 1 year ago, the average mapgen time was around 3-5 seconds ! And for valleys mapgen, I've 400-750 ms with the same computer. I liked the Forest mapgen but the code was awful, I was a beginner and I did not have the notion of computer calculation time. The code was completely messed up, all variables were global, etc. In summer 2014 I wanted to continue this mod, but I didn't have the courage to understand and improve my own code.
So on February 8th I've decided to start a new project. I want a very clean code, to avoid what happened to Forest.
Since there are some “fans” of Forest, I will add Forest's trees (slightly modified) in VMG.

I will probably have a break. Don't worry if you don't see me some weeks.
Just realize how bored we would be if the world was perfect.

Sokomine
Member
Posts: 4276
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mapgen][WIP] Valleys Mapgen [valleys_mapgen]

by Sokomine » Post

Gael de Sailly wrote: Since there are some “fans” of Forest, I will add Forest's trees (slightly modified) in VMG.
That's good to hear! The trees in forrests are conveniently shaped and sized. If mg_villages finds your forest mod installed, it does make use of its tree and wood types:
Image
Those high hills in the valleys mod are more tricky for the villages. They can only spawn up to a certain height and do not handle the mapblock above. Maybe I ought to avoid spawning in such situations as it doesn't look good. The valleys are much more convenient places.
Attachments
screenshot_20150531_221710.png
screenshot_20150531_221710.png (629.9 KiB) Viewed 7629 times
A list of my mods can be found here.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 15 guests