Page 1 of 3

Restore mapgen v5 ?

PostPosted: Sat Oct 04, 2014 12:40
by Gael de Sailly
Hello !

I suggest to restore the mapgen V5 in the following Minetest version. It was interesting, because it was 3D noise.
I found these landscapes has a somewhat wonderful thing. I've played many times in the same world. But I had the bad idea to continue playing on it with Minetest 0.4.8 last year, and with mods, for example my Forest mod, carts and animal_modpack. Now I have a foolish map. But I've preserved the seed.

If I want to restaure this code, it's not only for me, but by thinking about this world, and this mapgen, I've realized it was actually very interesting.

The better place which remains of my world : this mountain has 94 blocks height. It doesn't exist in mapgen v6.
Image

The official mapgen v5 screenshot :
Image

There are 2 ways to do it :

First, we can translate it in LUA by lua voxelmanipulator and publish it as a mod.
Or we can put it in default mapgens (like v6, v7, indev and math) for the following Minetest.

I haven't a very good knowleadge of the C++. I think I can do the first thing, but not the second.
The code can be found here.

What do you think about it ?

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 04, 2014 13:00
by Krock
The people from FM already added it back to the game (or planned to do so)
I would like to have this mapgen again in the game :)

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 00:29
by paramat
Celeron55 wants v5 back in Minetest, and a while back stated he wants to do that himself, whether he will get around to it i'm not sure. I recently considered making a simplified lua version. For a c++ version we could add mgv6 caves and biomes, mudflow etc. to mgv5 (because mgv7 has no biomes), so could be quite simple. If i can get my head around c++ mapgen i might have a go myself.

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 00:48
by Inocudom
paramat wrote:Celeron55 wants v5 back in Minetest, and a while back stated he wants to do that himself, whether he will get around to it i'm not sure. I recently considered making a simplified lua version. For a c++ version we could add mgv6 caves and biomes, mudflow etc. to mgv5 (because mgv7 has no biomes), so could be quite simple. If i can get my head around c++ mapgen i might have a go myself.

Have you ever seen the caves in a mapgen v5 world? They are quite interesting.

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 00:59
by paramat
Oops i forgot, caves are done in a better way in mgv5, using 2 3D noises, so this should be conserved for sure.

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 05:21
by Gael de Sailly
Inocudom wrote:Have you ever seen the caves in a mapgen v5 world? They are quite interesting.

Yes, sure, I prefer this cave generator. For example I've found a big cave which make the link between a beach and a mountain. It doesn't exists in v6 or it's far fewer beautiful.

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 05:46
by Wuzzy
I fully support the idea of reviving MGV5.

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 05, 2014 23:37
by Dragonop
I already suggest this in the ''News'' section, but only as a comment; glad to see that other people also think like me.

Re: Restore mapgen v5 ?

PostPosted: Tue Oct 14, 2014 21:16
by Vazon
I agree as well, v6 is quite dull in mapgen wise, nothing really to explore. and v7 the only way to use it is add a mod and a lot of lag :(

Re: Restore mapgen v5 ?

PostPosted: Wed Oct 15, 2014 02:28
by paramat
See https://github.com/minetest/minetest/issues/1719#issuecomment-58321246 for Celeron55's almost complete mgv5 for recent Minetest, i edited his commits a little for latest Minetest and now have mgv5 running in a local compiled version. I might put my commits up at Github so you can compile this into Minetest yourself.
Hopefully i can get default registered ores working in this, hmmmm wants the mgv7 biome API used so i might attempt to integrate that.

Re: Restore mapgen v5 ?

PostPosted: Wed Oct 15, 2014 04:48
by greydmiyu
Vazon wrote:I agree as well, v6 is quite dull in mapgen wise, nothing really to explore. and v7 the only way to use it is add a mod and a lot of lag :(


That has been my experience so far. I have been unimpressed with the caving experience. All I have seen are moderately sized pocket caverns, no tunnels at all. :(

Re: Restore mapgen v5 ?

PostPosted: Wed Oct 15, 2014 11:25
by paramat
Image


^ Mgv5 in 0.4.10-dev from Celeron55's fork.
I added ores, removed the biomes. While i learn how to add the mgv7 biome API i'm using 'paragenv7' mod to add biomes (roughly 600ms per chunk). To use mgv7 you have to add your own biome and decoration registrations, see the 'Big Freaking Dig' Game as an example, using the mgv7 biome API this way is not slow because it is C++.


Image


Image


^ Paragenv7 on mgv5

Re: Restore mapgen v5 ?

PostPosted: Wed Oct 15, 2014 11:55
by Wuzzy
Yes! I am looking forward for this. :-)

Re: Restore mapgen v5 ?

PostPosted: Wed Oct 15, 2014 13:49
by Dragonop
+1
+2
+3
+4
+5
+∞

Re: Restore mapgen v5 ?

PostPosted: Thu Oct 16, 2014 11:53
by paramat
Here's my mgv5 branch https://github.com/paramat/minetest/tree/mgv5
Here's the commit that adds mgv5 to recent 0.4.10 https://github.com/paramat/minetest/commit/a6ab3f99622a6281e1042c78bfa10af9654b2748
If you compile this you can use stone-only mgv5 with paragenv7.

Re: Restore mapgen v5 ?

PostPosted: Thu Oct 16, 2014 13:18
by MTDad
I tried, but I must have botched it somewhere as I have no v5 option. Cloned your repo, cmake, make yada yada, and got vanilla minetest. hmmm guess I'll try again.

Re: Restore mapgen v5 ?

PostPosted: Fri Oct 17, 2014 12:50
by oleastre
Maybe you forgot to switch to the mgv5 branch ?
=> git checkout -b mgv5

Re: Restore mapgen v5 ?

PostPosted: Fri Oct 17, 2014 13:07
by paramat
Image


I just now managed to get the mgv7 biome API working in mgv5.
https://github.com/paramat/minetest/commits/mgv5

Re: Restore mapgen v5 ?

PostPosted: Fri Oct 17, 2014 14:58
by Inocudom
paramat wrote:Image


I just now managed to get the mgv7 biome API working in mgv5.
https://github.com/paramat/minetest/commits/mgv5

I will be sure to tell the developers of Freeminer about this.

Re: Restore mapgen v5 ?

PostPosted: Fri Oct 17, 2014 17:54
by MTDad
oleastre wrote:Maybe you forgot to switch to the mgv5 branch ?
=> git checkout -b mgv5


Thank You! Not forgot, didn't know, I'm a noob. Got it compiled now and just spent some time flying around some maps. I see what you guys mean, much more interesting maps, saw some great fjords. Some of it gets a bit surreal, but it does so in an eye-pleasing way as opposed to downright ugly like often happens for me in v6.

Image

Image

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 05:49
by Vazon
v6 isn't ugly so to say, but more plain you can go server to server that runs v6 and see not much difference in the two. that is why I love the idea of v5 being readded.

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 08:42
by RHR
Great work paramat! But is mapgen v5 much slower than mapgen v6 ??

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 11:50
by Jordach
paramat wrote:Image


I just now managed to get the mgv7 biome API working in mgv5.
https://github.com/paramat/minetest/commits/mgv5

Try running BFD. I'd like to see MGV5 with something that actually can use the Biome API.

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 15:13
by Gael de Sailly
RHR wrote:Great work paramat! But is mapgen v5 much slower than mapgen v6 ??

Yes, mapgen V5 is slower. But if you have a recent computer, it's not a problem.

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 16:50
by Krock
mgv5 can't be very slow because several Lua mapgen use 3d perlin noise without long generation times.

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 18:30
by Gael de Sailly
If your computer is fast, no problem ! But if it's really slow, you should take the mapgen V6, which is extremely fast. Or, if you're sedentary in Minetest (which is not the case for me, at all !), you can use a slower mapgen. It will be slow at the firt time, but once the terrain is generated, it will be faster.

Re: Restore mapgen v5 ?

PostPosted: Sat Oct 18, 2014 23:46
by paramat
Mgv5 is still using the old slower internal 3D noise code, i need to change this to the new faster 3D noise used in mgv7.
Jordach, already tried it to test decorations.


Image

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 19, 2014 13:05
by paramat
I'm stuck ... new noise is in, it runs but is all very low very smooth hills, and the cave threshold isn't acting as expected.
https://github.com/paramat/minetest/blob/mgv5/src/mapgen_v5.cpp
https://github.com/paramat/minetest/blob/mgv5/src/mapgen_v5.h
https://github.com/paramat/minetest/commits/mgv5

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 19, 2014 16:20
by Gael de Sailly
Is it possible to rewrite it in Lua ?
I think I will try it, using my mapgen library (if you want to help me you're welcome).

Re: Restore mapgen v5 ?

PostPosted: Sun Oct 19, 2014 22:04
by MTDad
paramat wrote:I'm stuck ... new noise is in, it runs but is all very low very smooth hills, and the cave threshold isn't acting as expected.


When you said you were going to change it to the v7 3d code, the first thing that popped into my head was "nonono, not if it'll make it look like v7", but I admit to having no clue how that stuff works. (Its not that I don't like v7, but I think I like v5 more). My vote if its worth anything is to just roll it back to the old code. On my pc at least, it really didn't generate slow at all. There were some weird small patches that wouldn't render when I used BFD, but paragen made a really nice world.

And Duh I need to add that I for one really appreciate what you're doing. Mapgen is one of the sticky points I never quite seem to be satisfied with, and is one of the few minetest things I'm sure I'll never learn to do.