Author Topic: New feature in map editor  (Read 1358 times)

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
New feature in map editor
« on: 10 February 2015, 01:17:51 »
The map editors "randomize height" function was quite useless. I replaced it with something more useful:
 :angel:
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: New feature in map editor
« Reply #1 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
WiP Game developer.
I do danish translations.
"i break stuff"

kagu

  • Administrator
  • Horseman
  • ********
  • Posts: 203
    • View Profile
Re: New feature in map editor
« Reply #2 on: 10 February 2015, 13:36:02 »
wow titi ,looks very good.
Megaglest Chat
Please support:
1. CEGUI 2. In-process games 3. Registered Players
Playtime:
Every Sunday 21:00 - 01:00 CET

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: New feature in map editor
« Reply #3 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.
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: New feature in map editor
« Reply #4 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.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

titi

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 4,240
    • View Profile
    • http://www.titusgames.de
Re: New feature in map editor
« Reply #5 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 )
« Last Edit: 11 February 2015, 09:30:40 by titi »
Try Megaglest! Improved Engine / New factions / New tilesets / New maps / New scenarios