Fractal Forgery

Fractal Forgery

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Fractal Forgery

Post by Dragon45 »

... to generate landscapes. I was just digging around for information on fratals (Inspired by the Buddhabrot map) and apparently, there's this method known as "fractal forgery" to generate terrain by means of fractals (obviously). Anyone else think it that it would be possible to code up a random-map generator program using this method?
User avatar
BlackLiger
Posts: 1371
Joined: 05 Oct 2004, 21:58

Post by BlackLiger »

I was gonna write a map editor in C++ when I learn some. :P
User avatar
Min3mat
Posts: 3455
Joined: 17 Nov 2004, 20:19

Post by Min3mat »

a map generator would rock! please elaborate 8)
Sean Mirrsen
Posts: 578
Joined: 19 Aug 2004, 17:38

Post by Sean Mirrsen »

It is technically possible to make Spring generate a map for itself at startup. I could even speculate that it is rather easy, although I haven't yet understood the full depth of the process.
However, making Spring generate a map that would look good, or even be playable is very hard unless you have it make a flat plane.
jouninkomiko
Posts: 436
Joined: 26 Aug 2004, 08:11

Post by jouninkomiko »

there are a few methods to generate terrain using fractals randomly... maybe ill post some source for it as i make headway on this AI interface
CatalyticPrefect
Posts: 48
Joined: 01 May 2005, 23:09

Post by CatalyticPrefect »

It would be sweet to be able to do that like in Age of Empires 2.
SJ
Posts: 618
Joined: 13 Aug 2004, 17:13

Post by SJ »

I had a random map generator for the old spring using perlin noise and simulated erosion and being able to customize the map based on an input bitmap file. It doesnt generate output that the current spring can read and a lot of the stuff it does makes no sense in the current spring(like creating towns and roads). But I guess if someone want a base to build from they can check it out.
User avatar
Storm
Posts: 443
Joined: 12 Sep 2004, 22:23

Post by Storm »

Yes please. Give it to us.
User avatar
Gabba
Posts: 319
Joined: 08 Sep 2004, 22:59

Post by Gabba »

SJ wrote:and a lot of the stuff it does makes no sense in the current spring(like creating towns and roads)
Hey why not? A Spring map with towns and roads would look nice, the terrain right now looks pretty empty. There can be battles on planets where the warfare has just started and not everything is destroyed.
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

If you could post the source for that SJ, that would be great.
Warlord Zsinj
Imperial Winter Developer
Posts: 3742
Joined: 24 Aug 2004, 08:59

Post by Warlord Zsinj »

I think a custom map generator could be quite fun. It wouldn't be that difficult to make it balanced; you just run it through a couple of algorithms (if you were really brilliant, run those metal and balance algorithms into the fractal formula) to make sure that there is equal starting metal within all distances of starting positions.

... And yeah, autogenerated towns would be awesome, especially for mods such as Axis & Allies TA, and with a bit of Star-Warsy tweaking, SWTA...
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

I'm thinking that once we can get a rudimentary random-fractal map generator (possibly using SJ's code) we can build additional bits and pieces off of that as we need them. But we need something to work with first... SJ?
User avatar
Redfish
Posts: 289
Joined: 27 Feb 2005, 16:12

Post by Redfish »

I'm still dreaming of war on a planet where there is an existing civilization but Core and ARM don't bother with them and just destroy whatever comes in between the two races. Would be nice to have your units fight in a sim city like city :)
Post Reply

Return to “Engine”