{"id":20,"date":"2007-02-27T05:42:00","date_gmt":"2007-02-27T04:42:00","guid":{"rendered":"http:\/\/www.tapper-ware.net\/blog\/?p=20"},"modified":"2010-07-11T12:03:35","modified_gmt":"2010-07-11T10:03:35","slug":"canvas-3d-renderer-updated","status":"publish","type":"post","link":"https:\/\/www.tapper-ware.net\/blog\/canvas-3d-renderer-updated\/","title":{"rendered":"Canvas 3D Renderer updated"},"content":{"rendered":"<p>I&#8217;ve updates the Canvas 3D Renderer with new sample data, a few performance tweaks, background image support, support for colored polygons and a few tweaks here and there.<\/p>\n<p>Note however that the car you see is not a sprite, it&#8217;s simply an image put in front of the canvas for my amusement. So don&#8217;t get confused if it doesn&#8217;t behave the way you expect it to do.<\/p>\n<p>Right now the sample data has around 200 faces and while the code is almost ready for shared vertices (which means that one vertex belongs to many faces, resulting in a much lower number of vertices in memory and therefore a lot less calculations) right now a face still consists of 3 vertices, meaning that it does about 500-600 rotations, projections,clipping and collision tests per frame update, with very few optimizations so far and for that the speed is (at least in my opinion) amazing.<\/p>\n<p>What&#8217;s interesting to me are the test results&#8230; I didn&#8217;t time them, so I can&#8217;t give you any numbers, but<br \/>\nOpera 9.1 is definitely the slowest one, but with a very steady framerate, which probably means that drawing and garbage collection are very fast (as these tend to take up a variable amount of time), but arithmetic is slow.<\/p>\n<p>Firefox 2 is pretty steady as well, and a lot faster than Opera.<\/p>\n<p>Firefox 3 Alpha is certainly the fastest browser, but with a very unsteady framerate. I guess the new garbage collector is causing this while drawing speed is increasing thanks to Cairo.<\/p>\n<p>You can still find it at <a href=\"http:\/\/tapper-ware.net\/canvas3d\/\">http:\/\/tapper-ware.net\/canvas3d\/<\/a> (Note that the background gets drawn during the first screen update after the image has loaded, so it will probably take a second or two to appear the first time you load the page. Screen updates happen whenever you move around).<\/p>\n<p>P.S. I&#8217;d appreciate it if you could send me mail if you want me to answer your comments. hansschmucker at gmail dot com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve updates the Canvas 3D Renderer with new sample data, a few performance tweaks, background image support, support for colored polygons and a few tweaks here and there. Note however that the car you see is not a sprite, it&#8217;s simply an image put in front of the canvas for my amusement. So don&#8217;t get &hellip; <a href=\"https:\/\/www.tapper-ware.net\/blog\/canvas-3d-renderer-updated\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Canvas 3D Renderer updated<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/20"}],"collection":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/comments?post=20"}],"version-history":[{"count":2,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions"}],"predecessor-version":[{"id":154,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/posts\/20\/revisions\/154"}],"wp:attachment":[{"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/media?parent=20"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/categories?post=20"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tapper-ware.net\/blog\/wp-json\/wp\/v2\/tags?post=20"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}