MegaGlest Forum

MegaGlest => MegaGlest => Topic started by: titi on 10 February 2015, 01:17:51

Title: New feature in map editor
Post by: titi on 10 February 2015, 01:17:51
The map editors "randomize height" function was quite useless. I replaced it with something more useful:
 :angel:
(http://titi.megaglest.org/screens/editor.jpg)
Title: Re: New feature in map editor
Post by: Coldfusionstorm on 10 February 2015, 13:30:52
what did you replace it with? xD, is it a tease to get us to get the newest git? :D XD
Title: Re: New feature in map editor
Post by: kagu on 10 February 2015, 13:36:02
wow titi ,looks very good.
Title: Re: New feature in map editor
Post by: Coldfusionstorm on 10 February 2015, 13:42:27
im confused, Did you improve the randomize height function or did you replace it, the picture leans against that you simply fixed it.
Title: Re: New feature in map editor
Post by: Omega on 10 February 2015, 14:48:21
what did you replace it with? xD, is it a tease to get us to get the newest git? :D XD
It seems that instead of randomizing on a per-cell basis, it randomizes areas.

Probably implemented by picking random seed points and the heights at such points, then interpolating all the cells inbetween to create the smooth slopes shown in the image.
Title: Re: New feature in map editor
Post by: titi on 10 February 2015, 15:01:13
Yes, its a bit like omega says.
I first walk through the map and make some spots very high or low on a random basis, then I smooth this.

You have several options to influance the behaviour:
1. you can do this on top of an already existing map or you reset the height before it starts
2. you can give minHeight and maxHeight for the peaks that are set in a first run
3. you can influance the chance that a peak is set
4. you can configuer the number of smooth recursions

All this gives very different results, play with it to see what happens ( its in git in development branch )
And yes I replaced the original randomize, because it was quite useless.

update: anyone tried it yet ? ( windows build is fixed too now )