<\/a>So I was working to debug terrain blending, and thought that it might be easier to see what was going on if I could see the distances more easily, and so modified the terrain to draw with a simple grid on it… \u00a0I’m going to have to include something like this in the final game, aren’t I?<\/p>\nAnyhow, I found a bug in the terrain blending code, and was all excited to have fixed it, only to discover that fixing it has made the problem worse. \u00a0Or at least, it has made problems appear at all district boundaries, instead of only at some of them, and make the bad behaviour even more pronounced.<\/p>\n
However, making a bug’s bad behaviour occur more consistently is often a good first step toward solving the bug, so I’m hopeful that I’m moving in a good direction.<\/p>\n
What I’ve done in this shot is to set up all districts to be almost completely flat, just at different heights from each other; \u00a0the blending function should make smooth ramps up and down between the different flat sections.. but as you can see here, the ramps seem to only be about half as steep as they need to be, and you end up with a sheer vertical cliff in the middle of them. \u00a0(for reference, the blend between districts occurs over forty meters on each side of the border, and each square in the grid is eight meters on a side — so that means that you should see about ten grid squares of blending in total, between each pair of districts.<\/p>\n","protected":false},"excerpt":{"rendered":"
So I was working to debug terrain blending, and thought that it might be easier to see what was going on if I could see the distances more easily, and so modified the terrain to draw with a simple grid on it… \u00a0I’m going to have to include something like this in the final game,…<\/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-gk","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1012"}],"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=1012"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1012\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}