{"id":405,"date":"2014-05-06T21:33:31","date_gmt":"2014-05-06T21:33:31","guid":{"rendered":"http:\/\/blogs.discovery.wisc.edu\/projects\/?p=405"},"modified":"2014-05-08T16:12:05","modified_gmt":"2014-05-08T16:12:05","slug":"rotating-the-world-builder-scene","status":"publish","type":"post","link":"https:\/\/blogs.discovery.wisc.edu\/projects\/2014\/05\/06\/rotating-the-world-builder-scene\/","title":{"rendered":"Rotating the World Builder Scene"},"content":{"rendered":"<p>As the semester is coming to an end I would like to try to accomplish getting the world builder scene to rotate. From my last video, I really like how the scene can be adjusted by using the leap motion to draw the scene up, down, into, and out of the screen.<\/p>\n<p>Next I would like to be able to rotate the scene along the x axis. So when the hand is closed we would save the position of the hand in the (x,y,z) plane and then rotate about the x axis so that you could see the backside of the figure that you are drawing.<\/p>\n<p>I am hoping to do this action is one finger. When the rotation would be based up the change of x and the finger moves left to right. To accomplish this I will be using the GLrotatef(angle, x,y,z) function where x = change of x and the y and z are both constant. I am having trouble finding a way to calculate the angle for this function. I believe I will need to find the angle between the start point when he hand grabs the world and the ending point when the hand releases the world.<\/p>\n<p>I will be making another video to demonstrate this effect tomorrow.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As the semester is coming to an end I would like to try to accomplish getting the world builder scene to rotate. From my last video, I really like how the scene can be adjusted by using the leap motion &hellip; <a href=\"https:\/\/blogs.discovery.wisc.edu\/projects\/2014\/05\/06\/rotating-the-world-builder-scene\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":24,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[9],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/posts\/405"}],"collection":[{"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/users\/24"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/comments?post=405"}],"version-history":[{"count":5,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/posts\/405\/revisions"}],"predecessor-version":[{"id":410,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/posts\/405\/revisions\/410"}],"wp:attachment":[{"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/media?parent=405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/categories?post=405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.discovery.wisc.edu\/projects\/wp-json\/wp\/v2\/tags?post=405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}