<\/a>It’s kind of neat, when you realise that your systems are generic enough that you don’t actually have to write much code to get interesting effects.<\/p>\nPreviously, the “selected building” effect I was using was just to draw a simple wireframe box around it. \u00a0But there were bugs which caused the box not to z-buffer correctly (that is, the box showed through the building). \u00a0But I realised that with my procedural geometry, I’d already built all the tools I needed to draw glowing lines around the procedural shapes themselves; \u00a0I’d written it for drawing region outlines that I was showing off months back.<\/p>\n
Really, this probably also wants to have lines along the sharp corners, but that’s a little harder to work out; \u00a0my procedural geometry is being worked out on a per-vertex basis, not a per-edge basis. \u00a0Maybe I ought to switch to per-edge. \u00a0That’d also let me cast shadows from these objects, which would be pretty cool.<\/p>\n
But I’m not doing that until milestone 2! \u00a0:)<\/p>\n","protected":false},"excerpt":{"rendered":"
It’s kind of neat, when you realise that your systems are generic enough that you don’t actually have to write much code to get interesting effects. Previously, the “selected building” effect I was using was just to draw a simple wireframe box around it. \u00a0But there were bugs which caused the box not to z-buffer…<\/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-ig","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1132"}],"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=1132"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/1132\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=1132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=1132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=1132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}