{"id":1840,"date":"2012-10-19T09:46:48","date_gmt":"2012-10-19T16:46:48","guid":{"rendered":"http:\/\/the-witness.net\/news\/?p=1840"},"modified":"2012-10-19T09:46:48","modified_gmt":"2012-10-19T16:46:48","slug":"ipad-victory-shot","status":"publish","type":"post","link":"http:\/\/the-witness.net\/news\/2012\/10\/ipad-victory-shot\/","title":{"rendered":"iPad Victory Shot"},"content":{"rendered":"<p>For the past few weeks Andy has been working on the iPad port of the game, and we now have the engine running on that device:<\/p>\n<p><a href=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2012\/10\/ipad.jpg\"><img src=\"http:\/\/the-witness.net\/news\/wp-content\/uploads\/2012\/10\/ipad-286x384.jpg\" alt=\"\" title=\"ipad\" width=\"286\" height=\"384\" class=\"aligncenter size-large wp-image-1841\" \/><\/a><\/p>\n<p>The colors are all funny because we haven't written the shaders for the iPad yet, so what you are seeing is the surface normals of the objects in the scene.<\/p>\n<p>We haven't written the shaders yet because they need to be OpenGL ES shaders, and the shaders we have right now are HLSL shaders all written for medium-to-high-end PCs. As the first part of the porting work, Andy made the engine work on OpenGL on the PC, and for that we converted our HLSL shaders to GLSL automatically. But the jump to ES on an embedded device is big enough that it doesn't make sense to try and use the same shaders. Instead we'll have to have some simpler shaders that we substitute.<\/p>\n<p>As you can see from my previous post, I have been working on touch controls (not on the iPad, but on a touchscreen Windows PC). A very rough first cut of that is now working. It's nice to play the game with touch controls, as it feels more immediate than mouse and keyboard (and I have been a first-person shooter player forever!) <\/p>\n<p>So in order to have the game fully interactive on the iPad, we just need to write the bit that translates iPad touch controls to feed them into the rest of the gameplay code, which should not take long. <\/p>\n<p>Then, after that, we have to work out exactly how we are going to crunch all the graphical assets down to portable versions and do the streaming in an appropriate way... which is going to be a bit of work. Salvador built a streaming asset system a while back, and we have been using that daily on the PC, but we haven't tried to set it up on a lighter-weight portable system like the iPad yet. We'll see how it goes!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the past few weeks Andy has been working on the iPad port of the game, and we now have the engine running on that device: The colors are all funny because we haven&#8217;t written the shaders for the iPad yet, so what you are seeing is the surface normals \u2026<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"http:\/\/the-witness.net\/news\/2012\/10\/ipad-victory-shot\/\">Continue reading<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[4],"tags":[],"_links":{"self":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/1840"}],"collection":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/comments?post=1840"}],"version-history":[{"count":1,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/1840\/revisions"}],"predecessor-version":[{"id":1842,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/posts\/1840\/revisions\/1842"}],"wp:attachment":[{"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/media?parent=1840"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/categories?post=1840"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/the-witness.net\/news\/wp-json\/wp\/v2\/tags?post=1840"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}