<\/a>I know I said I wasn’t going to write any code today, but.. \u00a0what can I say, I’m weak. \u00a0:)<\/p>\nToday I started putting in the bare bones of procedural geometry generation. \u00a0In the bottom right of this screenshot, we’re looking at a starting area. \u00a0The game has requested a simple block of a rough shape and size, and the procedural geometry systems have filled in that space with actual renderable geometry. \u00a0It’s extremely simple in this case, but I didn’t have a lot of coding time today. \u00a0I’m just pleased that it’s coming together so easily!<\/p>\n
There are a couple bugs to sort out; \u00a0in particular, there’s a bug with the generation of surface normals, which can lead to some really weird lighting, where you get hard creases in the surface where they should be smooth. \u00a0(This is visible where the cursor is pointing; \u00a0that edge should be soft, but instead there’s a hard border between light and shadow on the roof of the structure). \u00a0I’m not feeling up to figuring that bug out tonight; \u00a0I’ll leave it for tomorrow or the next day.<\/p>\n
Also, right now, every starting area is generated at exactly this size and looking exactly like this. \u00a0I’ll need to add some variability into the system to keep things fresh, while still keeping enough constant elements so that the buildings remain recognisable to a casual glance.<\/p>\n","protected":false},"excerpt":{"rendered":"
I know I said I wasn’t going to write any code today, but.. \u00a0what can I say, I’m weak. \u00a0:) Today I started putting in the bare bones of procedural geometry generation. \u00a0In the bottom right of this screenshot, we’re looking at a starting area. \u00a0The game has requested a simple block of a rough…<\/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-dI","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/850"}],"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=850"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/850\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}