![]() Topic awaiting preservation: PHP/GD terrian generator (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: f(x) |
![]() 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 |
![]() 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) |
![]() 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 |
![]() Nice start.
|
Paranoid (IV) Inmate From: f(x) |
![]() Thanks poi! |
Neurotic (0) Inmate Newly admitted From: |
![]() Are you sharing the PHP code that generated this. Would love to see how it works. |