No more Waterworlds!

…At least, not unless you really want one, because I’ve added a mechanism for you to determine how much land you want. All you have to do is specify a target percentage, basically. Under the hood, what it does is it first deforms the globe like it always does and then checks to see what the actual land coverage percentage is. It then compares this to your specified target. If it’s more than 5% higher or lower then the target, it’ll scale the resulting mesh up or down (depending on whether there’s too much or too little land) a teensy bit at a time and then calculates the percentage again until it winds up with a value that’s within 5% of your target. It’s pretty neat and it doesn’t add anything to the total generation time either! Also, unlike Alpha Centauri, when you tell my algorithm to generate a planet with about 30% land, it makes one that has a few big continents rather than 500,000 tiny islands. Booya!

I hope to have a playable tech demo uploaded sometime tonight or tomorrow. I use the word “playable” in the loosest possible sense of the word here, since all you’ll be able to do at this point is generate a globe. But hey, at least it’ll exist in a place where the entire internet can make fun of it!

Advertisement

~ by Nate on December 7, 2009.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

 
Follow

Get every new post delivered to your Inbox.