{"id":2217,"date":"2017-10-24T15:43:46","date_gmt":"2017-10-24T07:43:46","guid":{"rendered":"http:\/\/www.xttblog.com\/?p=2217"},"modified":"2017-10-24T15:43:46","modified_gmt":"2017-10-24T07:43:46","slug":"three-js-%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=2217","title":{"rendered":"Three.js \u7b80\u4ecb"},"content":{"rendered":"<p>\n\t\u8fd1\u5e74\u6765web\u5f97\u5230\u4e86\u5feb\u901f\u7684\u53d1\u5c55\u3002\u968f\u7740HTML5\u7684\u666e\u53ca\uff0c\u7f51\u9875\u7684\u8868\u73b0\u80fd\u529b\u8d8a\u6765\u8d8a\u5f3a\u5927\u3002\u7f51\u9875\u4e0a\u5df2\u7ecf\u53ef\u4ee5\u505a\u51fa\u5f88\u591a\u590d\u6742\u7684\u52a8\u753b\uff0c\u7cbe\u7f8e\u7684\u6548\u679c\u3002&nbsp;\n<\/p>\n<p>\n\t\u4f46\u662f\uff0c\u4eba\u603b\u662f\u8d2a\u7684\u3002\u90a3\u4e48\uff0c\u5728\u6b64\u4e4b\u4e0a\u8fd8\u80fd\u505a\u4ec0\u4e48\u5462\uff1f\u5176\u4e2d\u4e00\u79cd\u5c31\u662f\u901a\u8fc7WebGL\u5728\u7f51\u9875\u4e2d\u7ed8\u5236\u9ad8\u6027\u80fd\u76843D\u56fe\u5f62\u3002\n<\/p>\n<p>\n\t\u4f46\u662f\u73b0\u5728\uff0c\u6709\u4e86WebGL\u89c4\u8303\uff0c\u4e00\u5207\u90fd\u6210\u4e3a\u53ef\u80fd\u3002\u8d8a\u6765\u8d8a\u591a\u7684\u6d4f\u89c8\u5668\u5f00\u59cb\u5168\u65b9\u4f4d\u7684\u652f\u6301WebGL\u4e86\u3002\u4f7f\u7528Chrome\u6d4f\u89c8\u5668\u6253\u5f00\u8fd9\u4e2a<a href=\"http:\/\/aleksandarrodic.com\/p\/jellyfish\/\" name=\"WebGL\u4f8b\u5b50\" target=\"_blank\" title=\"WebGL\u4f8b\u5b50\">\u4f8b\u5b50<\/a>\u770b\u4e00\u770b\uff0c\u4f60\u5c31\u77e5\u9053WebGL\u6709\u591a\u5f3a\u5927\u3002\n<\/p>\n<h2>\n\t\u4ec0\u4e48\u662fOpenGL\uff1f<br \/>\n<\/h2>\n<p>\n\tOpenGL\u5927\u6982\u8bb8\u591a\u4eba\u90fd\u6709\u6240\u8033\u95fb\uff0c\u5b83\u662f\u6700\u5e38\u7528\u7684\u8de8\u5e73\u53f0\u56fe\u5f62\u5e93\u3002&nbsp;\n<\/p>\n<h2>\n\t\u4ec0\u4e48\u662fWebGL\uff1f<br \/>\n<\/h2>\n<p>\n\tWebGL\u662f\u5728\u6d4f\u89c8\u5668\u4e2d\u5b9e\u73b0\u4e09\u7ef4\u6548\u679c\u7684\u4e00\u5957\u89c4\u8303\u3002\n<\/p>\n<p>\n\tWebGL\u662f\u57fa\u4e8eOpenGL\u8bbe\u8ba1\u7684\u9762\u5411web\u7684\u56fe\u5f62\u6807\u51c6\uff0c\u63d0\u4f9b\u4e86\u4e00\u7cfb\u5217<a href=\"https:\/\/www.xttblog.com\/?tag=javascript\" name=\"javascript\" target=\"_blank\" title=\"javascript\">JavaScript<\/a> API\uff0c\u901a\u8fc7\u8fd9\u4e9bAPI\u8fdb\u884c\u56fe\u5f62\u6e32\u67d3\u5c06\u5f97\u4ee5\u5229\u7528\u56fe\u5f62\u786c\u4ef6\u4ece\u800c\u83b7\u5f97\u8f83\u9ad8\u6027\u80fd\u3002\n<\/p>\n<p>\n\t\u4f7f\u7528WebGL\u539f\u751f\u7684API\u6765\u51993D\u7a0b\u5e8f\u662f\u4e00\u4ef6\u975e\u5e38\u75db\u82e6\u7684\u4e8b\u60c5\uff0c\u5e78\u597d\uff0c\u6709\u5f88\u591a\u540c\u884c\u82b1\u4e1a\u4f59\u65f6\u95f4\u5199\u4e86\u4e00\u4e9bWebGL\u5f00\u6e90\u6846\u67b6\uff0c\u5176\u4e2d<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u5c31\u662f\u975e\u5e38\u4f18\u79c0\u7684\u4e00\u4e2a\uff0c\u5b83\u63a9 \u76d6\u4e86\u5f88\u591a\u9ebb\u70e6\u7684\u7ec6\u8282\uff0c\u90a3\u4e48\uff0c\u5c31\u8ba9\u6211\u4eec\u4e00\u8d77\u6765\u770b\u770b\uff0c\u4ec0\u4e48\u662fthree.js\u5427\u3002\n<\/p>\n<h2>\n\t\u4ec0\u4e48\u662fThree.js\uff1f<br \/>\n<\/h2>\n<p>\n\t\u4ec0\u4e48\u662fthreejs\uff0c\u5f88\u7b80\u5355\uff0c\u4f60\u5c06\u5b83\u7406\u89e3\u6210three + js\u5c31\u53ef\u4ee5\u4e86\u3002three\u8868\u793a3D\u7684\u610f\u601d\uff0cjs\u8868\u793a<a href=\"https:\/\/www.xttblog.com\/?tag=javascript\" name=\"javascript\" target=\"_blank\" title=\"javascript\">JavaScript<\/a>\u7684\u610f\u601d\u3002\u90a3\u4e48\u5408\u8d77\u6765\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u5c31\u662f\u4f7f\u7528javascript \u6765\u51993D\u7a0b\u5e8f\u7684\u610f\u601d\u3002\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=javascript\" name=\"javascript\" target=\"_blank\" title=\"javascript\">JavaScript<\/a>\u662f\u8fd0\u884c\u5728\u7f51\u9875\u7aef\u7684\u811a\u672c\u8bed\u8a00\uff0c\u90a3\u4e48\u6beb\u65e0\u7591\u95eeThree.js\u4e5f\u662f\u8fd0\u884c\u5728\u6d4f\u89c8\u5668\u4e0a\u7684\u3002\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u662f\u901a\u8fc7\u5bf9WebGL\u63a5\u53e3\u7684\u5c01\u88c5\u4e0e\u7b80\u5316\u800c\u5f62\u6210\u7684\u4e00\u4e2a\u6613\u7528\u7684\u56fe\u5f62\u5e93\u3002\n<\/p>\n<p>\n\t\u7b80\u5355\u70b9\u7684\u8bf4\u6cd5\uff1aWebGL\u53ef\u4ee5\u770b\u6210\u662f\u6d4f\u89c8\u5668\u7ed9\u6211\u4eec\u63d0\u4f9b\u7684\u63a5\u53e3\uff0c\u5728javascript\u4e2d\u53ef\u4ee5\u76f4\u63a5\u7528\u8fd9\u4e9bAPI\u8fdb\u884c3D\u56fe\u5f62\u7684\u7ed8\u5236\uff1b\u800c<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u5c31\u662f\u5728\u8fd9\u4e9b\u63a5\u53e3\u4e0a\u53c8\u5e2e\u6211\u4eec\u5c01\u88c5\u5f97\u66f4\u597d\u7528\u4e00\u4e9b\u3002\n<\/p>\n<h2>\n\tThreejs\u80fd\u505a\u4ec0\u4e48\uff1f<br \/>\n<\/h2>\n<p>\n\t\u4e00\u8a00\u4ee5\u853d\u4e4b\uff0c\u5b83\u80fd\u5199\u51fa\u5728\u6d4f\u89c8\u5668\u4e0a\u6d41\u7545\u8fd0\u884c\u76843D\u7a0b\u5e8f\u3002\n<\/p>\n<p>\n\t\u770b\u4e0b\u9762\u7684\u56fe\uff0c\u6765\u9886\u4f1a\u4e00\u4e0b\uff0c<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u80fd\u505a\u4ec0\u4e48\uff1f\n<\/p>\n<p>\n\t<img decoding=\"async\" alt=\"three.js \u6559\u7a0b\" src=\"http:\/\/img.bbs.csdn.net\/upload\/201710\/24\/1508830647_383278.png\" style=\"width: 929px;height: 422px\" \/>\n<\/p>\n<p>\n\t\u8fd9\u4e9b\u5c31\u662f<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a>\u80fd\u505a\u7684\u4e8b\u60c5\uff0c\u6211\u5411\u4f60\u4fdd\u8bc1\uff0c\u5b8c\u6210\u8fd9\u4e9b\u4e8b\u60c5\uff0c\u4f1a\u6bd4c++\u7528\u66f4\u5c11\u7684\u4ee3\u7801\u3002\u800c\u4e14\u66f4\u5bb9\u6613\uff0c\u66f4\u9177\u3002\n<\/p>\n<p>\n\t<a href=\"https:\/\/www.xttblog.com\/?tag=three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">three.js<\/a> \u6e90\u81eagithub\u7684\u4e00\u4e2a\u5f00\u6e90\u9879\u76ee\u3002\u5b98\u65b9\u5730\u5740\uff1a <a href=\"https:\/\/github.com\/mrdoob\/three.js\" name=\"three.js\" target=\"_blank\" title=\"three.js\">https:\/\/github.com\/mrdoob\/three.js<\/a>\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=2217\">Three.js \u7b80\u4ecb<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u5e74\u6765web\u5f97\u5230\u4e86\u5feb\u901f\u7684\u53d1\u5c55\u3002\u968f\u7740HTML5\u7684\u666e\u53ca\uff0c\u7f51\u9875\u7684\u8868\u73b0\u80fd\u529b\u8d8a\u6765\u8d8a\u5f3a\u5927\u3002\u7f51\u9875\u4e0a\u5df2\u7ecf\u53ef\u4ee5\u505a\u51fa\u5f88\u591a\u590d\u6742\u7684\u52a8\u753b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[1106,1475,1552],"class_list":["post-2217","post","type-post","status-publish","format-standard","hentry","category-html5","tag-javascript","tag-three-js","tag-webgl"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2217","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=2217"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2217\/revisions"}],"predecessor-version":[{"id":2218,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/2217\/revisions\/2218"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2217"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2217"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2217"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}