{"id":1637,"date":"2016-07-18T06:44:33","date_gmt":"2016-07-17T21:44:33","guid":{"rendered":"http:\/\/nantoka.filmm.info\/blog\/?p=1637"},"modified":"2016-07-18T09:10:33","modified_gmt":"2016-07-18T00:10:33","slug":"vr%e3%82%a2%e3%83%97%e3%83%aa%e9%96%8b%e7%99%ba%e3%83%a1%e3%83%a2","status":"publish","type":"post","link":"https:\/\/nantoka.filmm.info\/blog\/?p=1637","title":{"rendered":"VR\u30a2\u30d7\u30ea\u958b\u767a\u30e1\u30e2"},"content":{"rendered":"<p>\u5b9f\u8cea2\u65e5\u9593\u3067<strong>OculusRift\uff08DK2\uff09<\/strong>\u5bfe\u5fdc\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\uff0e<\/p>\n<p>\u3053\u306e\u30ec\u30d9\u30eb\u306a\u3089\u6587\u7cfb\u306e\u79c1\u3067\u3082\u30e2\u30c7\u30ea\u30f3\u30b0\u542b\u3081\u30662\u65e5\uff08\u5fb9\u591c\u306a\u3057\uff09\u3067\u4f5c\u308c\u308b\u306e\u3067\uff0c<strong>\u5352\u7814\u3068\u304b\u306f\u3053\u3093\u306a\u30ec\u30d9\u30eb\u3058\u3083\u30c0\u30e1<\/strong>\u3067\u3059\u3088\u301c<\/p>\n<p>\uff08\u3066\u3044\u3046\u304b\uff0c\u305d\u3082\u305d\u3082<strong>\u7d44\u307f\u7acb\u3066\u305f\u3060\u3051<\/strong>\u3067\u7814\u7a76\u3067\u3082\u306a\u3093\u3067\u3082\u306a\u3044\uff0c\uff0c\uff0c\uff09<\/p>\n<p>\u305d\u3082\u305d\u3082Oculus\u3063\u3066\u4f55\u304b\u3063\u3066\u3063\u3064\u30fc\u3068\uff0cPSVR\u306e\u3088\u3046\u306a\u3082\u306e\u3067\u3059\uff0e<\/p>\n<p>&nbsp;<\/p>\n<div id=\"at_zurlpreview\">\n<h2>Oculus Rift\u306f\u30b3\u30b1\u3089\u308c\u306a\u3044\u3001\u3060\u304b\u3089\u5024\u6bb5\u3082\u9ad8\u304f\u306a\u308b\uff5cWIRED.jp<\/h2>\n<p class=\"imgp\"><img decoding=\"async\" src=\"http:\/\/wired.jp\/wp-content\/uploads\/2016\/01\/riftblogpierre1thumb.jpg\" data-src=\"[http:\/\/wired.jp\/wp-content\/uploads\/2016\/01\/riftblogpierre1thumb.jpg]\" \/><\/p>\n<p class=\"imgd\">\u88fd\u54c1\u7248\u300cOculus Rift\u300d\u306e\u4e88\u7d04\u53d7\u4ed8\u304c\u306f\u3058\u307e\u308a\u3001\u305d\u306e\u4fa1\u683c\u306e\u9ad8\u3055\u306b\u9a5a\u3044\u305f\u4eba\u3082\u591a\u3044\u3060\u308d\u3046\u3002\u3057\u304b\u3057\u30bd\u30cb\u30fc\u3084HTC\u3068\u3044\u3063\u305f\u624b\u3054\u308f\u3044\u30e9\u30a4\u30f4\u30a1\u30eb\u4f01\u696d\u3068\u7af6\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044Oculus\u306b\u3068\u3063\u3066\u3001\u3044\u3061\u3070\u3093\u306e\u554f\u984c\u306f\u305d\u306e\u4fa1\u683c\u3067\u306f\u306a\u3044\u3088\u3046\u3060\u3002<\/p>\n<p class=\"imgs\">LINK: <a href=\"http:\/\/wired.jp\/2016\/01\/11\/oculus-rift-price\/\" target=\"_blank\">wired.jp\/2016\/01\/11\/oculus-rift-price\/<\/a><\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\u3053\u306eOculus\u793e\u304cDK1\u3092\u51fa\u3057\u305f\u306e\u306f\u305a\u3044\u3076\u3093\u524d\u3067\u3059\uff0e\u5f53\u6642\u306f\u885d\u6483\u3067\u3057\u305f\u306d\uff0e\u79c1\u306f\u30b8\u30a7\u30c3\u30c8\u30b3\u30fc\u30b9\u30bf\u30fc\u3067\u9154\u3063\u3066Oculus\u306f\u89e6\u3089\u306a\u3044\u3053\u3068\u306b\u3057\u307e\u3057\u305f\uff0e<\/p>\n<p>\u3067\u3082\u3053\u306e\u3042\u305f\u308a\u306e\u885d\u6483\u304c\u73fe\u5728\u306eVR\u30d6\u30fc\u30e0\u3092\u4f5c\u3063\u305f\u3068\u3082\u8a00\u3048\u307e\u3059\uff0e<\/p>\n<p>\u3055\u3066\uff0c\u3053\u306eVR\u30b3\u30f3\u30c6\u30f3\u30c4\uff0c\u4f5c\u308b\u306e\u306f<strong>\u8d85\u7c21\u5358<\/strong>\u3067\u3059\uff0e<\/p>\n<p>\u3069\u306e\u304f\u3089\u3044\u7c21\u5358\u304b\u3068\u3044\u3046\u3068\uff0c\u30c9\u30e9\u30a4\u30d0\u306a\u3069\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u308c\u3070\uff0c\u898b\u308b\u3060\u3051\u306a\u3089\uff13\u5206\u304f\u3089\u3044\u3067\u4f5c\u308c\u307e\u3059\uff0e<\/p>\n<p>\u7814\u7a76\u5ba4\u306b\u524d\u306e\u4f4f\u4eba\u304c\u6b8b\u3057\u3066\u304a\u3044\u305f\u30a8\u30a2\u30ed\u30d0\u30a4\u30af\u304c\u3042\u3063\u305f\u306e\u3067\uff0c\u3061\u3087\u3044\u3068\u5206\u89e3\uff0e\u30c7\u30fc\u30bf\u304c\u53d6\u308c\u305d\u3046\u3067\u3057\u305f\uff0e<\/p>\n<p>\u305d\u3053\u3067\uff0c\uff0c\uff0c\uff0c<\/p>\n<p>Arduino\u3067\u3061\u3087\u3044\u3061\u3087\u3044\u3068\u3044\u3058\u3063\u3066\uff0c<\/p>\n<p><a href=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike1.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1638\" src=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike1.jpg\" alt=\"bike1\" width=\"300\" height=\"225\" \/><\/a><\/p>\n<p>\u3053\u3093\u306a\u3082\u306e\u304c\u3067\u304d\u307e\u3057\u305f\uff0e<\/p>\n<div style=\"width: 474px;\" class=\"wp-video\"><!--[if lt IE 9]><script>document.createElement('video');<\/script><![endif]-->\n<video class=\"wp-video-shortcode\" id=\"video-1637-1\" width=\"474\" height=\"356\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/IMG_2157.mp4?_=1\" \/><a href=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/IMG_2157.mp4\">http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/IMG_2157.mp4<\/a><\/video><\/div>\n<p>\u516b\u4e8b\u306e\u7a7a\u3092\u7a7a\u4e2d\u6563\u6b69\u266a<\/p>\n<p>\u30aa\u30fc\u30ad\u30e3\u30f3\u3067\u9ad8\u6821\u751f\u304c\u7d76\u53eb\u3057\u3066\u3044\u307e\u3057\u305f\u301c\uff08\u305d\u308c\u3092\u898b\u3066\u308b\u65b9\u304c\u697d\u3057\u3044\uff09<\/p>\n<p><a href=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-1640\" src=\"http:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike2.jpg\" alt=\"bike2\" width=\"500\" height=\"375\" srcset=\"https:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike2.jpg 500w, https:\/\/nantoka.filmm.info\/blog\/wp-content\/uploads\/2016\/07\/bike2-300x225.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>\u30bb\u30f3\u30b5\u306e\u30c7\u30fc\u30bf\u5909\u63db\u306b\u306fAruino\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>&nbsp;<\/p>\n<p>\u4eca\u56de\u66f8\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u5168\u90e8\u3067200\u884c\u4ee5\u4e0b\u3067\u3059\uff0e<\/p>\n<p>\u305d\u306e\u3046\u3061\uff0c\u30a8\u30a2\u30ed\u30d0\u30a4\u30af\u306e\u30bb\u30f3\u30b5\u3092Arduino\u304b\u3089\u30b7\u30ea\u30a2\u30eb\u3067\u9001\u308b\u30d7\u30ed\u30b0\u30e9\u30e0<\/p>\n<pre class=\"lang:default decode:true \" title=\"arduino-bike\">unsigned long mytime = 0;\r\nunsigned long hittime;\r\nunsigned long duration;\r\nboolean sensorBool = true;\r\nint input_value;\r\n\r\nvoid setup(){\r\nSerial.begin(9600);\r\nmytime = millis();\r\n}\r\n\r\n\r\nvoid loop(){\r\n input_value = analogRead(3);\r\nif(sensorBool == true){\r\nif(input_value &lt; 200){\r\n sensorBool = false;\r\nhittime = millis();\r\nduration = hittime - mytime;\r\nmytime = hittime;\r\nsend();\r\n}\r\n}else if(!sensorBool){\r\n  if(input_value &gt; 500){\r\n    sensorBool = true;\r\n  }\r\n}\r\n  \r\n}\r\n\r\nvoid send(){\r\nSerial.println(duration);\r\n\r\n}\r\n<\/pre>\n<p>\u3053\u308c\u3092Unity\u306b\u9001\u3063\u3066\uff0c\u30b3\u30fc\u30b9\u306e\u30b9\u30d7\u30e9\u30a4\u30f3\u3092\u8d70\u308b\u3060\u3051\u3067\u3059\uff0e<\/p>\n<p>\u3046\u3093\uff0c\u7c21\u5358\u3067\u3059\u306d\uff0e<\/p>\n<p>Unity\u5074\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u306f<a href=\"http:\/\/nantoka.filmm.info\/blog\/?p=1651\">\u5225\u8a18<\/a>\u3057\u307e\u3059<\/p>\n<p>\u306a\u304a\uff0c\u6570\u5024\u5909\u5316\u3092\u3084\u3055\u3057\u304f\u3059\u308b\u305f\u3081\u306b\uff0c<\/p>\n<p>Mathf.LerpUnclamped<\/p>\n<p>\u3092\u4f7f\u3063\u3066\u3044\u307e\u3059\uff0e<\/p>\n<p>Mathf.Lerp\u3067\u3082\u3044\u3044\u306e\u3067\u3059\u304c\uff0c\u3053\u308c\u306f\uff10\u304b\u3089\uff11\u3067\u3057\u304b\u52d5\u4f5c\u3057\u307e\u305b\u3093\uff0e<\/p>\n<p>Spline\u306f\uff10\uff08\u59cb\u70b9\uff09\u304b\u3089\uff11\uff08\u7d42\u70b9\uff09\u3067\u52d5\u304f\u306e\u3067\uff0c\uff11\u3092\u5165\u308c\u308b\u30681\u5468\u3057\u307e\u3059\uff0eMathf.Lerp\u3067\u3059\u3068\uff0c1\u5468\u3057\u304b\u3057\u307e\u305b\u3093\uff0e<\/p>\n<p>Mathf.LerpUnclamped\u306b\u3059\u308b\u3068\uff0c1\u3092\u8d8a\u3048\u3066\u3082\u6570\u5024\u88dc\u5b8c\u3057\u3066\u304f\u308c\u308b\u306e\u30672\u54683\u5468\u3057\u305f\u3044\u304a\u5ba2\u3055\u3093\u304c\u3044\u308b\u3068\u304d\u306b\u3082\u5bfe\u5fdc\u3067\u304d\u307e\u3059\uff0e<\/p>\n<p>\u3082\u3061\u308d\u3093\uff0c\u9069\u5b9c\u30c7\u30fc\u30bf\u306e\u30ea\u30bb\u30c3\u30c8\u306f\u5927\u4e8b\u3067\u3059\u304c\uff0c\uff0c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b9f\u8cea2\u65e5\u9593\u3067OculusRift\uff08DK2\uff09\u5bfe\u5fdc\u306e\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4f5c\u3063\u3066\u3044\u307e\u3057\u305f\uff0e \u3053\u306e\u30ec\u30d9\u30eb\u306a\u3089\u6587\u7cfb\u306e\u79c1\u3067\u3082\u30e2\u30c7\u30ea\u30f3\u30b0\u542b\u3081\u30662\u65e5\uff08\u5fb9\u591c\u306a\u3057\uff09\u3067\u4f5c\u308c\u308b\u306e\u3067\uff0c\u5352\u7814\u3068\u304b\u306f\u3053\u3093\u306a\u30ec\u30d9\u30eb\u3058\u3083\u30c0\u30e1\u3067\u3059\u3088\u301c \uff08\u3066\u3044\u3046\u304b\uff0c\u305d\u3082\u305d\u3082\u7d44\u307f\u7acb\u3066\u305f &hellip; <a href=\"https:\/\/nantoka.filmm.info\/blog\/?p=1637\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">VR\u30a2\u30d7\u30ea\u958b\u767a\u30e1\u30e2<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,29,28,2],"tags":[],"class_list":["post-1637","post","type-post","status-publish","format-standard","hentry","category-3dcg","category-arduino","category-oculus","category-unity"],"_links":{"self":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1637","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1637"}],"version-history":[{"count":11,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1637\/revisions"}],"predecessor-version":[{"id":1654,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1637\/revisions\/1654"}],"wp:attachment":[{"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nantoka.filmm.info\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}