{"id":811,"date":"2016-12-01T03:24:19","date_gmt":"2016-12-01T08:24:19","guid":{"rendered":"http:\/\/blogs.discovery.wisc.edu\/vr2016\/?p=811"},"modified":"2016-12-01T10:09:42","modified_gmt":"2016-12-01T15:09:42","slug":"121-update-of-update","status":"publish","type":"post","link":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/2016\/12\/01\/121-update-of-update\/","title":{"rendered":"12\/1 Update of Update"},"content":{"rendered":"<p><b>What each individual in the group worked on over the last week:<\/b><\/p>\n<p>Mel:\u00a0I worked on expanding the terrain, and adding more terrain features. I also added audio files so when the plane moves there is a propellor sound. I fixed the controls by adding three inputs: pitch, roll, and yaw. The user can control the plane with the up and down arrows, left and right arrows, and left shift and right shift to tilt the plane. I also messed around with using a cockpit view instead of a plane. I have some models, I am just not sure the best way to do this yet \/ it doesn\u2019t look as nice.<\/p>\n<p>Li:\u00a0Add game over scene and scene loading codes (Load game over scene after collision and load game scene after shaking the phone). Change the direct rotation to relative rotation while flying since the view is allowed to rotate around with user\u2019s head. Download Oculus component and import into the project.<\/p>\n<p><span style=\"font-weight: 400\">Danny: Got a second iPhone. Both iPhones RYP data are pipelined into Unity via UDP. Added ip address input module on the iPhones. This allows us to connect to any server easily. Added shake gesture to restart game (because the player has the headset on, it is hard to do so with buttons).<\/span><\/p>\n<p>Wasim: Control\u00a0pwm\u00a0with Arduino is done. Testing it will a real fan.<\/p>\n<p><b>Accomplishments made: (include media if desired)<\/b><\/p>\n<p>Mel:\u00a0The terrain has a lake, a new sky, and an ocean. I am in the process of making a runway. The terrain now looks more like an island, and I made it larger, too. (benefit: user will stick to flying on land and not over water.) The plane is now a lot smoother with the controls, now because there is three (before I just had left and right and up and down (2)). My camera also follows the plane a lot better than before which is great! I added a video to demonstrate.<\/p>\n<p>Li:\u00a0<img loading=\"lazy\" class=\"alignnone size-medium wp-image-798\" src=\"http:\/\/blogs.discovery.wisc.edu\/vr2016\/files\/2016\/12\/Screen-Shot-2016-11-30-at-11.29.12-PM-300x158.png\" alt=\"screen-shot-2016-11-30-at-11-29-12-pm\" width=\"300\" height=\"158\" srcset=\"https:\/\/blogs.discovery.wisc.edu\/vr2016\/files\/2016\/12\/Screen-Shot-2016-11-30-at-11.29.12-PM-300x158.png 300w, https:\/\/blogs.discovery.wisc.edu\/vr2016\/files\/2016\/12\/Screen-Shot-2016-11-30-at-11.29.12-PM-768x406.png 768w, https:\/\/blogs.discovery.wisc.edu\/vr2016\/files\/2016\/12\/Screen-Shot-2016-11-30-at-11.29.12-PM-1024x541.png 1024w, https:\/\/blogs.discovery.wisc.edu\/vr2016\/files\/2016\/12\/Screen-Shot-2016-11-30-at-11.29.12-PM.png 1734w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<p>Danny:\u00a0<span style=\"font-weight: 400\">Shake gesture, ip input and pass on to main view, Unity receiver. And a demo of the control:<\/span><\/p>\n<p><iframe loading=\"lazy\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/nKMC-ZOyqmc?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p><b>Problems Encountered:<\/b><\/p>\n<p>Mel:\u00a0My plane flies directly through mountains (even though my cube wouldn\u2019t do this when I was testing). My \u201cwarning\u201d audio sound isn\u2019t working when my Y value gets less than a certain number (ordering the user to pitch up, because they will crash). I am also having problems figuring out how I should have a user land a plane \/ take off with the runway I am making. I am not sure how to do this\u2026.<\/p>\n<p>Li:\u00a0Lots of API need to read but still don\u2019t know how to use, especially the ones related to math (like rotation).<\/p>\n<p><b>Plans for the upcoming week:<\/b><\/p>\n<p>Mel:\u00a0My plans are to fix what happens when my plane goes through a mountain. Right now my plane goes directly through it and it shouldn\u2019t. I have tried testing this by creating a simple gameobject cube, and my cube can fly around and does not go through mountains. When I import a plane asset, and use the same script and properties, this changes. I want to mess around with this. I also am in the process of adding audio when the plane gets too close to the ground, to play a warning noise. I still need to figure out the cockpit situation, too. Not sure the best way to approach this. I also want to add more audio to give more controls to the user so they know what to do.<\/p>\n<p>Li:\u00a0Integrate iphone controls with Danny. May add tutorial.<\/p>\n<p><span style=\"font-weight: 400\">Danny: iPhone control calibration. The data from iPhone need to be calibrated each time before a new player start a game. This requries a tutorial\/practice stage of the game.<\/span><\/p>\n<p>Mel&#8217;s progress:<\/p>\n<p><iframe loading=\"lazy\" width=\"1170\" height=\"658\" src=\"https:\/\/www.youtube.com\/embed\/nrYpNXMR4XM?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>What each individual in the group worked on over the last week: Mel:\u00a0I worked on expanding the terrain, and adding more terrain features. I also added audio files so when the plane moves there is a propellor sound. I fixed the controls by adding three inputs: pitch, roll, and yaw. The user can control the [&hellip;]<\/p>\n","protected":false},"author":174,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5,46,38],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/posts\/811"}],"collection":[{"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/users\/174"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/comments?post=811"}],"version-history":[{"count":1,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/posts\/811\/revisions"}],"predecessor-version":[{"id":812,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/posts\/811\/revisions\/812"}],"wp:attachment":[{"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/media?parent=811"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/categories?post=811"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/vr2016\/wp-json\/wp\/v2\/tags?post=811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}