{"id":2785,"date":"2013-02-22T18:58:07","date_gmt":"2013-02-22T08:58:07","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=2785"},"modified":"2013-02-22T18:58:07","modified_gmt":"2013-02-22T08:58:07","slug":"yay-wasting-time","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2013\/02\/22\/yay-wasting-time\/","title":{"rendered":"Yay, wasting time"},"content":{"rendered":"
I just spent two hours trying to figure out why my starfield-with-custom-rendering-code wasn’t rendering unless I put it somewhere which ought to have been behind the camera, and why all the tests for which stars were visible weren’t working correctly.<\/p>\n
Completely forgot that the camera transform needs to be supplied to the rendering code, for these custom-rendering entities.\u00a0 It’s not done for you automatically, the way it is with vsSprites and vsModels.\u00a0 :)<\/p>\n
I started out planning to steal the starfield from the old Asteroids testbed game.\u00a0 But having looked at it again, it’s only six single-pixel dots.\u00a0 So maybe that’s not ideal for use here.\u00a0 I’m putting in a 3D starfield behind the 2D game, just because it looks nice.\u00a0 :)<\/p>\n","protected":false},"excerpt":{"rendered":"
I just spent two hours trying to figure out why my starfield-with-custom-rendering-code wasn’t rendering unless I put it somewhere which ought to have been behind the camera, and why all the tests for which stars were visible weren’t working correctly. Completely forgot that the camera transform needs to be supplied to the rendering code, for…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[41,17],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-IV","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/2785"}],"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=2785"}],"version-history":[{"count":2,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/2785\/revisions"}],"predecessor-version":[{"id":2787,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/2785\/revisions\/2787"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=2785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=2785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=2785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}