Topic awaiting preservation: PHP/GD terrian generator (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: f(x) |
posted 11-20-2007 23:37
I made this primarily for a MMORPG flash game that I'm developing. There's no edge of the map, so I needed the map to grow as the players explore. This is the best I could come up with for a terrain generator, powered purely by PHP and the GD library. |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 11-21-2007 01:19
Pretty cool! Do you have color-coding for the terrain? Like the red/brown is mountains/highlands, white would be snow caps, etc.? |
Paranoid (IV) Inmate From: f(x) |
posted 11-21-2007 01:41
Sort of... As I mentioned above, I used a gradient (linked above), to translate the grayscale altitude map produced by the fractal. I still don't know how I'm going to implement this into the game engine, but I'll do it somehow. I might just have the game engine do the terrain generation if it doesn't tax processing power too much. My game engine right now avarages around 35 - 40 FPS on my machine, though I have no 3D transformations yet. |
Paranoid (IV) Inmate From: Norway |
posted 11-21-2007 01:55
Nice start.
|
Paranoid (IV) Inmate From: f(x) |
posted 11-21-2007 02:13
Thanks poi! |
Neurotic (0) Inmate Newly admitted From: |
posted 11-22-2011 09:05
Are you sharing the PHP code that generated this. Would love to see how it works. |