{"id":1784,"date":"2017-08-15T15:48:36","date_gmt":"2017-08-15T07:48:36","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=1784"},"modified":"2017-08-15T15:48:36","modified_gmt":"2017-08-15T07:48:36","slug":"webvr-%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=1784","title":{"rendered":"WebVR \u7b80\u4ecb"},"content":{"rendered":"<p>\n\t\u6700\u8fd1\u5927\u6f20\u7a77\u79cb\u548cVUE\u6846\u67b6\u7684\u4f5c\u8005\u5728\u7f51\u4e0a\u5bf9WebVR\u8fdb\u884c\u4e86\u6495\u903c\u7684\u4e89\u8bba\u3002\u76ee\u524d\u77e5\u4e4e\u4e0a\u7684\u76f8\u5173\u6587\u7ae0\u5df2\u7ecf\u88ab\u5220\u9664\u4e86\uff0c\u5927\u5bb6\u5728\u7f51\u4e0a\u627e\u627e\uff0c\u5e94\u8be5\u8fd8\u80fd\u627e\u5230\u76f8\u5e94\u8f6c\u8f7d\u7684\u6587\u7ae0\u3002\n<\/p>\n<p>\n\t\u56de\u5230\u672c\u6587\u4e3b\u9898\u3002\u53bb\u5e74\u8c37\u6b4c\u548c\u706b\u72d0\u9488\u5bf9WebVR\u63d0\u51fa\u4e86WebVR API\u7684\u6807\u51c6\uff0c\u987e\u540d\u601d\u4e49\uff0cWebVR\u5373web + VR\u7684\u4f53\u9a8c\u65b9\u5f0f\uff0c\u6211\u4eec\u53ef\u4ee5\u6234\u7740\u5934\u663e\u4eab\u53d7\u6c89\u6d78\u5f0f\u7684\u7f51\u9875\uff0c\u65b0\u7684API\u6807\u51c6\u8ba9\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528js\u8bed\u8a00\u6765\u5f00\u53d1\u3002\n<\/p>\n<p>\n\t\u770b\u5230\u8fd9\u91cc\uff0c\u611f\u89c9\u524d\u7aef\u53c8\u8981\u6563\u53d1\u51fa\u7b2c\u4e8c\u6625\u3002\u800c\u4e14\u501f\u52a9JavaScript\uff0cvr\u9886\u57df\u7684\u53d1\u5c55\u5c06\u88ab\u63a8\u4e0a\u4e00\u4e2a\u65b0\u7684\u53f0\u9636\u3002\n<\/p>\n<p>\n\t\u5173\u4e8eWebVR\uff0c\u706b\u72d0\u5f00\u53d1\u8005\u7f51\u7ad9\u4e0a\u8bf4\u5230\u3002WebVR\u4e3a\u865a\u62df\u73b0\u5b9e\u8bbe\u5907\u663e\u793a\u63d0\u4f9b\u652f\u6301 &mdash; \u4f8b\u5982Oculus Rift\u8fd9\u6837\u7684\u5934\u6234\u8bbe\u5907\u5230web apps\u7684\u8fde\u63a5\uff0c \u5141\u8bb8\u5f00\u53d1\u8005\u5c06\u4f4d\u7f6e\u548c\u52a8\u4f5c\u4fe1\u606f\u8f6c\u6362\u62103D\u573a\u666f\u4e2d\u7684\u8fd0\u52a8\u3002\u8fd9\u9879\u6280\u672f\u4f1a\u6709\u5f88\u591a\u6709\u8da3\u7684\u5e94\u7528, \u6bd4\u5982\u865a\u62df\u7684\u4ea7\u54c1\u5c55\u793a\uff0c\u53ef\u4ea4\u4e92\u7684\u57f9\u8bad\u8bfe\u7a0b\u4ee5\u53ca\u8d85\u5f3a\u6c89\u6d78\u611f\u7684\u7b2c\u4e00\u4eba\u79f0\u6e38\u620f\u3002\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"WebVR\" src=\"http:\/\/ocuzluml6.bkt.clouddn.com\/hw-setup.png\" \/>\n<\/p>\n<p>\n\tWebVR \u662f\u65e9\u671f\u548c\u5b9e\u9a8c\u6027\u7684 JavaScript API\uff0c\u5b83\u63d0\u4f9b\u4e86\u8bbf\u95ee\u5982 Oculus Rift \u548c Google Cardboard \u7b49 VR \u8bbe\u5907\u529f\u80fd\u7684 API\u3002\n<\/p>\n<p>\n\t\u5173\u4e8eWebVR\u6709\u4eba\u501f\u52a9three.js for WebGL\u5df2\u7ecf\u4f5c\u51fa\u4e86\u4e00\u4e9b\u4f7f\u7528\u6848\u4f8b\u3002\u53e6\u5916\u6211\u4e5f\u4f1a\u4f7f\u7528\u706b\u72d0\u548c\u8c37\u6b4c\u63a8\u51fa\u6765\u7684\u4e00\u4e9bapi\u8fdb\u884c\u4e00\u7cfb\u5217\u7684\u6559\u7a0b\u3002\u5e7f\u5927\u7684\u7f51\u53cb\u4eec\uff0c\u656c\u8bf7\u671f\u5f85\u5427\u3002<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=1784\">WebVR \u7b80\u4ecb<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u6700\u8fd1\u5927\u6f20\u7a77\u79cb\u548cVUE\u6846\u67b6\u7684\u4f5c\u8005\u5728\u7f51\u4e0a\u5bf9WebVR\u8fdb\u884c\u4e86\u6495\u903c\u7684\u4e89\u8bba\u3002\u76ee\u524d\u77e5\u4e4e\u4e0a\u7684\u76f8\u5173\u6587\u7ae0\u5df2\u7ecf\u88ab\u5220\u9664\u4e86\uff0c\u5927\u5bb6\u5728\u7f51\u4e0a [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[1106,1430],"class_list":["post-1784","post","type-post","status-publish","format-standard","hentry","category-java","tag-javascript","tag-webvr"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1784","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1784"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions"}],"predecessor-version":[{"id":1785,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/1784\/revisions\/1785"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1784"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1784"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}