🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Procedural Island Demo

Published February 01, 2011
Advertisement
Following on the last couple entries, I spent a couple hours putting together a simple demo application to demonstrate the procedural islands I described. Here is a ZIP:

randommapdemo.zip


Unzip and execute the file GenericRPG.exe. If all goes well, the window should open then hang for ten to fifteen seconds while a world is generated, then the map should display. You should see something like the following screenshots:

screen1.jpg

screen2.jpg


Press and hold the left mouse button to scroll the map around; the direction the map is scrolled is calculated based on the direction of the mouse cursor from the center of the screen. In the lower left corner is a minimap with a red dot representing the current center of view. In the lower right are two buttons: Generate and Quit. Quit exits the app, Generate will create a new world (after the 10 to 15 second pause, as before). You can also press Esc to exit the app.

The world is fairly sparse, since no doodads or decorations are present outside of those necessary to represent mountains and trees, but it should serve to demonstrate the idea pretty well, I should think. Let me know if you have any problems with the demo; I haven't tried it on any computer but my own, so it may be broken.

EDIT: As an aside, all of the graphics except for the trees are also procedurally generated using chains of noise modules and various functions. The mountains are exported as a heightmap+colormap for rendering in Blender, the ground tiles are built "in-place" using an offline tool.
2 likes 1 comments

Comments

Aardvajk
Works great for me. Very smooth. Takes about 3 seconds to generate an island on my dual core 2Ghz-ish.
February 01, 2011 09:00 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement