Tuesday, March 25, 2014

Zity - Scaling Success

I Did it. Pictures below

It's not perfect, but I managed to create a method/algorithm to scale my island data to any size larger. This means that I can create my islands small (the way they are now) and scale them to the required size for use in the game. The reason this is so important is that my methods for generating the island shape and population data work VERY WELL on small sizes but for larger sizes they would take monstrous amounts of processing power and tweaking that wouldn't be feasible for the scope of my game. So I'm very glad it's over.

A little history - I posted this question here on StackOverflow 20 days ago and didn't get a single response or comment. Riddled with grief (more annoyance actually) I took it upon myself to solve my own question this very day! So starting at ten-o-clock this morning I set out into the deep unknowns of math and statistics. Wading through, I came to find that I could solve many of the issues myself and within hours I had gotten some key weighted values that I simply needed to add together for the final value (That took another two-three hours). Now I'm sitting here enjoying my triumph of mind over mechanical construct and soaking in the rays of victory. Answering my own question on StackOverflow was a bit of an ego-boost and now I'm ready to dive into generating the roads and highways that will make up this wonderful world!.. only after another few hours of cleaning up my code. I'm very excited for the things to come, especially buildings.
 (Top is my method of scaling, bottom is the computers)
(Ignore the difference in the island's color, only the shape has been implemented currently)



No comments:

Post a Comment