MegaGlest Forum
MegaGlest => MegaGlest => Topic started 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)
-
what did you replace it with? xD, is it a tease to get us to get the newest git? :D XD
-
wow titi ,looks very good.
-
im confused, Did you improve the randomize height function or did you replace it, the picture leans against that you simply fixed it.
-
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.
-
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 )