{"id":7150,"date":"2007-10-29T12:03:01","date_gmt":"2007-10-29T02:03:01","guid":{"rendered":"http:\/\/michael.ellerman.id.au\/blog\/2007\/10\/29\/realtime-raytracing-on-the-cell\/"},"modified":"2008-02-05T09:39:45","modified_gmt":"2008-02-04T23:39:45","slug":"realtime-raytracing-on-the-cell","status":"publish","type":"post","link":"https:\/\/michael.ellerman.id.au\/blog\/2007\/10\/29\/realtime-raytracing-on-the-cell\/","title":{"rendered":"Realtime Raytracing on the Cell"},"content":{"rendered":"<p>In a comment to one of my <a href=\"\/blog\/2007\/09\/18\/raytracing-progress-report\/\" title=\"Raytracing progress report\">previous posts<\/a>, &#8220;TimC&#8221; asks if the performance of my simple raytracer is &#8220;anywhere near realtime&#8221;.<\/p>\n<p>At the moment it&#8217;s certainly not, although there is definitely the potential for it.<\/p>\n<p>I haven&#8217;t spent much effort on optimising the ray tracing algorithm, because I&#8217;m more interested in optimising what I&#8217;ve got, and the issues I come across that are interesting and different because I&#8217;m using the Cell. So at the moment I have no spatial partitioning at all, I just do a brute force raytrace per pixel. Even a simple bounding box would significantly speed up the current implementation, especially for the test scenes I&#8217;m using where there&#8217;s a lot of empty space.<\/p>\n<p class=\"center\"> <a href=\"http:\/\/www.alphaworks.ibm.com\/tech\/irt\"><img decoding=\"async\" src=\"https:\/\/michael.ellerman.id.au\/blog\/wp-content\/mpe\/uploads\/2007\/10\/irt.jpg\" \/><\/a><\/p>\n<p class=\"center\"><em>IBM&#8217;s <a href=\"http:\/\/www.alphaworks.ibm.com\/tech\/irt\">Interactive Ray Tracer<\/a><\/em><\/p>\n<p>Some IBM guys in the US have been working on a serious raytracer, they call the <a href=\"http:\/\/www.alphaworks.ibm.com\/tech\/irt\" title=\"Interactive Ray Tracer for Cell Broadband Engine\">&#8220;Interactive Ray Tracer&#8221;<\/a>, it is seriously impressive. They have a <a href=\"http:\/\/www.gametomorrow.com\/minor\/barry\/iRT_shaders_560p.mov\">video demo<\/a>, as well as a <a href=\"http:\/\/www.youtube.com\/watch?v=oLte5f34ya8\">cluster version running on three PS3s<\/a>. From memory their test scene has something like 300,000 triangles, compared to mine which is about 30 or less.<\/p>\n<p>If you have a <a href=\"http:\/\/en.wikipedia.org\/wiki\/Playstation_3\">playstation 3<\/a> running Linux you can even <a href=\"http:\/\/www.alphaworks.ibm.com\/tech\/irt\/download\">download<\/a> and run it yourself. There&#8217;s also a <a href=\"http:\/\/www.alphaworks.ibm.com\/tech\/irt\/forum\">forum<\/a> if you have trouble getting it going.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In a comment to one of my previous posts, &#8220;TimC&#8221; asks if the performance of my simple raytracer is &#8220;anywhere near realtime&#8221;. At the moment it&#8217;s certainly not, although there is definitely the potential for it. I haven&#8217;t spent much effort on optimising the ray tracing algorithm, because I&#8217;m more interested in optimising what I&#8217;ve [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[18,17,28,56,57],"_links":{"self":[{"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/posts\/7150"}],"collection":[{"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/comments?post=7150"}],"version-history":[{"count":0,"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/posts\/7150\/revisions"}],"wp:attachment":[{"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/media?parent=7150"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/categories?post=7150"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michael.ellerman.id.au\/blog\/wp-json\/wp\/v2\/tags?post=7150"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}