{"id":709,"date":"2009-11-22T20:54:00","date_gmt":"2009-11-22T19:54:00","guid":{"rendered":"http:\/\/mehm.net\/blog\/?p=709"},"modified":"2009-11-22T20:54:00","modified_gmt":"2009-11-22T19:54:00","slug":"war-in-space-day-22","status":"publish","type":"post","link":"https:\/\/mehm.net\/blog\/?p=709","title":{"rendered":"War in Space Day 22"},"content":{"rendered":"<p>Ok, again not much time spent on the project due to other things. I looked into <a href=\"http:\/\/www.codeplex.com\/JigLibX\">JigLibX<\/a>, and found that it requires some fiddling before it can be built for XBox 360. Furthermore, even though it seems to work well, it doesn&#8217;t feature a point &#8211; triangle mesh collision detection, which is why I&#8217;ll spend a part of the last week or so rolling my own version.<\/p>\n<p>What I&#8217;m going to do is to reduce the problem to 2D by saving a collision polygon together with the models of the ships. Then, I&#8217;ll use a simple <a href=\"http:\/\/en.wikipedia.org\/wiki\/Point_in_polygon\">point-in-polygon test<\/a>, as described on this page by <a href=\"http:\/\/ozviz.wasp.uwa.edu.au\/~pbourke\/geometry\/insidepoly\/\">Paul Bourke<\/a>. For the import, I&#8217;ll use the Maya obj exporter and modify the sample <a href=\"http:\/\/creators.xna.com\/en-us\/sample\/custommodelimporter\">XNA custom model importer<\/a> for my needs.<\/p>\n<p>Aside from this, I&#8217;ll try to make the game more visually appealing and finalize gameplay so it feels like a finished project. That means I&#8217;ll look into setting up lighting correctly, get a nice texture for the planet\/sun in the middle, display the projectiles as sprites, create some models for the ships themselves and maybe some effect when they are destroyed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, again not much time spent on the project due to other things. I looked into JigLibX, and found that it requires some fiddling before it can be built for XBox 360. Furthermore, even though it seems to work well, it doesn&#8217;t feature a point &#8211; triangle mesh collision detection, which is why I&#8217;ll spend [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,3],"tags":[],"_links":{"self":[{"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709"}],"collection":[{"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":2,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"predecessor-version":[{"id":720,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions\/720"}],"wp:attachment":[{"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mehm.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}