{"id":121010,"date":"2018-10-01T08:18:21","date_gmt":"2018-10-01T00:18:21","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=121010"},"modified":"2018-09-25T16:19:46","modified_gmt":"2018-09-25T08:19:46","slug":"mozilla-api-webxr","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/mozilla-api-webxr.html","title":{"rendered":"Mozilla\u5c06\u5f00\u53d1\u5168\u65b0\u7684\u865a\u62df\u73b0\u5b9eAPI—WebXR"},"content":{"rendered":"
\u5728\u6dfb\u52a0\u4e86Firefox\u5bf9WebVR\u7684\u652f\u6301\u4e4b\u540e\uff0cMozilla\u73b0\u5728\u6b63\u5728\u5f00\u53d1\u4e00\u6b3e\u65b0\u7684API\uff0c\u53ebWebXR\uff0c\u6765\u5b9e\u73b0\u7f51\u7edc\u6df7\u5408\u73b0\u5b9e\u7684\u529f\u80fd\u3002Mozilla\u53bb\u5e74\u9996\u6b21\u5ba3\u5e03WebXR\u5c06\u4f1a\u53d6\u4ee3WebVR\uff0c\u5e76\u5c06\u5bf9\u4f7f\u7528WebVR\u7684\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u5e73\u7f13\u7684\u8fc7\u6e21\u671f\u3002<\/p>\n
\u6b63\u5982Mozilla VR\/AR\u7814\u7a76\u5de5\u7a0b\u7ecf\u7406Lars Bergstrom\u6240\u5199\u7684\uff1a<\/p>\n
Mozilla\u6b63\u5728\u6b65\u5165JavaScript APIs\u5de5\u4f5c\u7684\u65b0\u9636\u6bb5\uff0c\u5b8c\u6210\u540e\u6bcf\u4e2a\u4eba\u90fd\u53ef\u4ee5\u5728\u516c\u5f00\u7f51\u7edc\u4e0a\u521b\u9020\u548c\u5206\u4eab\u865a\u62df\u73b0\u5b9e\uff08VR\uff09\u548c\u589e\u5f3a\u73b0\u5b9e\uff08AR\uff09\u9879\u76ee\u3002<\/p><\/blockquote>\n
\u5168\u65b0\u7684WebXR Device API\u5c06\u901a\u8fc7\u96c6\u6210\u73b0\u5b9e\u548c\u4e0a\u4e0b\u6587\u8986\u76d6\uff0c\u63d0\u4f9b\u5728\u6d4f\u89c8\u5668\u4e2d\u642d\u5efa\u589e\u5f3a\u73b0\u5b9e\u9879\u76ee\u7684\u529f\u80fd\u3002\u6bd4\u5982\u8bf4\uff0c\u7528\u6237\u53ef\u4ee5\u7528\u5929\u7a7a\u76d2\u53d6\u4ee3\u7f51\u9875\u80cc\u666f\uff0c\u5929\u7a7a\u76d2\u662f\u65e0\u6cd5\u5373\u523b\u83b7\u5f97\u7684\u4e8b\u7269\u7684\u5b9e\u65f6\u56fe\u50cf\uff0c\u53ef\u80fd\u4f1a\u5c55\u793a\u5929\u7a7a\u3001\u5c71\u3001\u8fdc\u5904\u7684\u5efa\u7b51\u7b49\u7b49\u3002\u53e6\u5916\uff0c\u4e3a\u4e86\u8ba9\u7528\u6237\u66f4\u65b9\u4fbf\u5730\u64cd\u7eb5\u865a\u62df\u7a7a\u95f4\uff0cWebXR\u5c06\u4f1a\u652f\u6301\u4e0d\u540c\u79cd\u7c7b\u7684\u7528\u6237\u8f93\u5165\uff0c\u5305\u62ec\u8bed\u97f3\u548c\u624b\u52bf\u3002<\/p>\n
<\/p>\n
WebXR\u793e\u533a\u6b63\u5728\u4e3a\u73b0\u5728\u7684\u65e0\u7ebf\u8bbe\u5907\u4fee\u8ba2\u4e00\u4efd\u8349\u6848\u6761\u4f8b\u3002\u6bd4\u5982\u8bf4\uff0c\u521b\u5efa\u5929\u7a7a\u76d2\u8bbe\u7f6e\uff0c\u7528\u6765\u6539\u53d8\u7f51\u9875\u7684\u80cc\u666f\u56fe\u7247\u3002\u6211\u4eec\u8fd8\u5728\u7740\u624b\u7814\u7a76\u5c06\u65e9\u5148AR\u5e73\u53f0\u7684\u5168\u5c40\u611f\u77e5\u80fd\u529b\u79fb\u690d\u5230web\u4e2d\u6765\uff0c\u8fd9\u6837\u5f00\u53d1\u4eba\u5458\u5c31\u53ef\u4ee5\u786e\u5b9a\u8868\u9762\u7684\u4f4d\u7f6e\uff0c\u800c\u4e0d\u9700\u8981\u5728\u7535\u6c60\u9a71\u52a8\u7684\u8bbe\u5907\u4e0a\u8fd0\u884c\u590d\u6742\u7684\u8ba1\u7b97\u673a\u89c6\u89c9\u4ee3\u7801\u3002<\/p>\n
\u76ee\u524dWebXR\u7684\u8349\u6848\u6761\u4f8b\u5305\u62ec\u4eae\u5ea6\u6d4b\u91cf\u3001\u773c\u52a8\u8ddf\u8e2a\u3001\u5929\u7a7a\u76d2\u3001\u9759\u60013D\u56fe\u6807\u3001\u63a7\u5236\u5668\u652f\u6301\u3001\u8ba1\u7b97\u673a\u89c6\u89c9\u7b49\u7b49\u3002\u7f51\u9875\u5c06\u53ef\u4ee5\u68c0\u6d4b\u548c\u67e5\u8be2VR\/AR\u80fd\u529b\u8f6e\u8be2\u8bbe\u5907\u65b9\u5411\u548c\u4f4d\u7f6e\uff0c\u5e76\u5728\u6c89\u6d78\u5f0f\u7684AR\u4f1a\u8bdd\u4e2d\u6839\u636e\u6240\u9700\u7684\u5e27\u901f\u7387\u4ea7\u751f\u56fe\u5f62\u5e27\u3002\u5c3d\u7ba1\u8349\u6848\u8fd8\u6ca1\u6709\u6572\u5b9a\uff0c\u4f46\u662fMozilla\u4ecd\u7136\u8ba1\u5212\u6839\u636e\u73b0\u5728\u7684\u72b6\u51b5\u63a8\u884c\uff0c\u6839\u636e\u9700\u8981\u8fdb\u884c\u5fc5\u8981\u7684\u8c03\u6574\u3002<\/p>\n
\u5728\u4e00\u5f00\u59cb\uff0c\u5bf9\u6c89\u6d78\u5f0f\u4f53\u9a8c\u7684\u652f\u6301\u4f1a\u901a\u8fc7\u7279\u5b9a\u7248\u672c\u7684Firefox\u5b9e\u73b0\uff0c\u79f0\u4e3aFirefox Reality\uff0c\u4f46\u4e4b\u540e\u5b83\u5c06\u4f1a\u6269\u5c55\u5230Mozilla\u652f\u6301WebVR\u7684\u6bcf\u4e00\u4e2a\u5e73\u53f0\uff0c\u5305\u62ecWindows\u3001Linux\u3001macOS\u3001Android\u548ciOS\u3002\u5bf9\u4e8eiOS\u5e73\u53f0\u6765\u8bf4\uff0cMozilla\u5df2\u7ecf\u53d1\u5e03\u4e86\u4e00\u6b3e\u57fa\u4e8eApple\u7684ARKit\u7684AR\u5e94\u7528\u7a0b\u5e8f\uff0c\u6e90\u4ee3\u7801\u53ef\u4ee5\u5728GitHub\u4e0a\u67e5\u770b\u3002Mozilla iOS WebXR Viewer\u5e94\u7528\u7a0b\u5e8f\u662fMozilla\u5de5\u7a0b\u5e08\u7528\u6765\u6d4b\u8bd5WebXR\u7684AR\u60f3\u6cd5\u7684\u5730\u65b9\u3002<\/p>\n
\u60f3\u8981\u66f4\u6df1\u5165\u5730\u4e86\u89e3WebXR\uff0c\u4e0d\u8981\u9519\u8fc7\u5f53\u524d\u7684\u8349\u6848\u89c4\u8303\u548cWebXR Device API Explainer\uff0c\u8fd9\u5176\u4e2d\u5305\u62ec\u5f88\u591a\u4ee3\u7801\u7247\u6bb5\u53ef\u4ee5\u6267\u884c\u7b80\u5355\u7684\u64cd\u4f5c\uff0c\u6bd4\u5982\u67e5\u8be2\u8bbe\u5907\u80fd\u529b\uff0c\u5f00\u542fXR\u4f1a\u8bdd\uff0c\u8f93\u51fa\u56fe\u5f62\u5185\u5bb9\u7b49\u7b49\u3002<\/p>\n
\n\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.linuxidc.com\/Linux\/2018-09\/154259.htm<\/a><\/p>\n