{"id":897,"date":"2009-10-10T21:36:06","date_gmt":"2009-10-10T10:36:06","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=897"},"modified":"2009-10-10T21:36:06","modified_gmt":"2009-10-10T10:36:06","slug":"regions-moved-over-to-the-new-map-system","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2009\/10\/10\/regions-moved-over-to-the-new-map-system\/","title":{"rendered":"Regions moved over to the new map system"},"content":{"rendered":"

\"MapHoles\"<\/a>Apologies; \u00a0I promise that there’ll actually be some colour in tomorrow’s development screenshot!<\/p>\n

So today I’ve done a few more bits and pieces. \u00a0First, I fixed the weird clipping bug in the northwest corner of the map which I mentioned yesterday (it was just float imprecision. \u00a0Gotta love it!). \u00a0Second, I moved the generation of MMORPG regions over to this new Voronoi-diagram-based system. \u00a0While the map above looks basically like the one from yesterday’s screenshot, it’s actually now regions drawing their borders, whereas yesterday the screenshot was just of a Voronoi diagram.<\/p>\n

Actually making the regions have these new, more complicated borders has raised a few interesting little hiccups, though; \u00a0first, since I’m removing any infinitely-large Voronoi cells which are generated, there are now some areas within the world map which aren’t part of any region (I’m pointing at one such place in this screenshot). \u00a0 These are pretty common in the corners of the map, but you’ll occasionally see them along the sides as well. \u00a0I haven’t \u00a0yet decided whether or not this is something I care about. \u00a0Honestly, the outermost regions are always full of water anyway, and aren’t really ever going to be a playable area… \u00a0so if there are a few missing regions out near the world border, it probably doesn’t matter at all. \u00a0But it does mean that I’ll have to make sure that my code doesn’t mind being unable to find a region belonging to a particular point on the map. \u00a0And while it feels like I ought to be able to just clip those infinitely-large Voronoi cells against the square map area to make them finite, it’s trickier than it first appears, because the infinite cells aren’t closed polygon shapes; \u00a0they extend out infinitely, and my current clipping algorithm doesn’t like that. \u00a0I’m probably just going to leave these little missing spots as-is; \u00a0 too much effort to fix for too little benefit.<\/p>\n

I’ve also been working on the transition from “on ground” to this higher-up vantage point. \u00a0It’s not quite right yet, but it’s slowly getting there. \u00a0I’m imagining that one of the buttons on the GraveShip will bring you up to the full MMORPG map, which will be depicted in wireframe, with solid-coloured regions to depict level ranges, and iconic representations of what’s in each region (much like how it was drawn in previous versions of MMORPG Tycoon). \u00a0Goal is for the transition from fully-3D ground-based view to this vectorish global map to be completely seamless. \u00a0Hoping to have it finished sometime tomorrow.<\/p>\n","protected":false},"excerpt":{"rendered":"

Apologies; \u00a0I promise that there’ll actually be some colour in tomorrow’s development screenshot! So today I’ve done a few more bits and pieces. \u00a0First, I fixed the weird clipping bug in the northwest corner of the map which I mentioned yesterday (it was just float imprecision. \u00a0Gotta love it!). \u00a0Second, I moved the generation of…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[24,25],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-et","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/897"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=897"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/897\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=897"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=897"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=897"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}