{"id":489,"date":"2009-03-20T22:22:39","date_gmt":"2009-03-20T12:22:39","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=489"},"modified":"2009-03-20T22:27:14","modified_gmt":"2009-03-20T12:27:14","slug":"progress-on-lighting","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2009\/03\/20\/progress-on-lighting\/","title":{"rendered":"Progress on Lighting"},"content":{"rendered":"

Wanted to post a quick update. \u00a0Work stuff is extremely busy for the next week, possibly the next two weeks, but I’m still getting little bits and pieces done here and there. \u00a0I mentioned earlier that I’m working on putting 3D lighting support into VectorStorm, but it’s taking a little longer than I’d hoped.<\/p>\n

Here’s the current status. \u00a0In order to get proper 3D lighting support, it requires replacing the old rudimentary “color” rendering system with a basic material system. \u00a0However, one of the VectorStorm goals is to remain extremely easy to use and to retain backwards compatibility, so the old ‘SetColor’ commands will still be available; \u00a0they’ll just internally use the new Material system.<\/p>\n

In order to do all this, I’ve been drastically simplifying the rendering code; \u00a0moving the code’s smarts from the renderer into the display list class. \u00a0I’ve now got it to the stage where most API features are working again, with the simpler code structure. \u00a0The only things still broken now are vsOverlays (simple gradients; \u00a0I often use these for skies) and vsShaders (modify static display lists; \u00a0the “strobing green wireframe” effect seen in the intro for MMORPG Tycoon was achieved using a vsShader, for example). \u00a0I’ll get to vsShaders soon. \u00a0vsOverlays.. I’m not sure. \u00a0But I’ll probably make them work too, sometime soon.<\/p>\n

It’s likely that the old-style of rendering, while it still works, might become slightly slower, as it’s not being as intelligently optimised by the internal systems any more. \u00a0If that’s an issue, code using the old line-drawing code can be migrated to the new drawing primitives, which allow you to specify an arbitrary number of lines in a single call, instead of multiple MoveTo\/LineTo calls.<\/p>\n

Anyhow, once vsShaders are working again and the material system is in place, I’ll start looking at generating some proper terrains for MMORPG Tycoon 2.0, and see what I can do with that… \u00a0wish me luck!<\/p>\n","protected":false},"excerpt":{"rendered":"

Wanted to post a quick update. \u00a0Work stuff is extremely busy for the next week, possibly the next two weeks, but I’m still getting little bits and pieces done here and there. \u00a0I mentioned earlier that I’m working on putting 3D lighting support into VectorStorm, but it’s taking a little longer than I’d hoped. Here’s…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[4,3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-7T","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/489"}],"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=489"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/489\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}