{"id":428,"date":"2023-02-01T17:11:30","date_gmt":"2023-02-01T09:11:30","guid":{"rendered":"https:\/\/www.ljcljc.cn\/?p=428"},"modified":"2024-04-08T10:26:48","modified_gmt":"2024-04-08T02:26:48","slug":"three-js%e5%85%a5%e9%97%a8-%e8%bd%a8%e9%81%93%e6%8e%a7%e5%88%b6%e5%99%a8","status":"publish","type":"post","link":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/","title":{"rendered":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u8f68\u9053\u63a7\u5236\u5668\u4ecb\u7ecd<\/h2>\n\n\n\n<p>Orbit controls\uff08\u8f68\u9053\u63a7\u5236\u5668\uff09\u53ef\u4ee5\u4f7f\u5f97\u76f8\u673a\u56f4\u7ed5\u76ee\u6807\u8fdb\u884c\u8f68\u9053\u8fd0\u52a8\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u5728\u9879\u76ee\u4e2d\u4f7f\u7528<\/h2>\n\n\n\n<p>1. \u5bfc\u5165\u8f68\u9053\u63a7\u5236\u5668<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { OrbitControls } from 'three\/examples\/jsm\/controls\/OrbitControls'<\/code><\/pre>\n\n\n\n<p>2. \u521b\u5efa\u573a\u666f\u3001\u76f8\u673a\u548c\u7269\u4f53\uff0c\u5e76\u5c06\u76f8\u673a\u548c\u7269\u4f53\u6dfb\u52a0\u5230\u573a\u666f\u4e2d\uff0c\u521b\u5efa\u6e32\u67d3\u5668\u5e76\u5c06webgl\u6e32\u67d3\u7684canvas\u5185\u5bb9\u6dfb\u52a0\u5230body<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ \u521b\u5efa\u573a\u666f\nconst scene = new THREE.Scene();\n\n\/\/ \u521b\u5efa\uff08\u900f\u89c6\u6295\u5f71\uff09\u76f8\u673a\nconst camera = new THREE.PerspectiveCamera(75, window.innerWidth \/ window.innerHeight, 0.1, 1000);\n\n\/\/ \u8bbe\u7f6e\u76f8\u673a\u4f4d\u7f6e\ncamera.position.set(0, 0, 10);\nscene.add(camera);\n\n\/\/ \u6dfb\u52a0\u7269\u4f53\n\/\/ \u521b\u5efa\u51e0\u4f55\u4f53\nconst cubeGeometry = new THREE.BoxGeometry();\nconst cubeMaterial = new THREE.MeshBasicMaterial({ color: 0xffff00 });\n\n\/\/ \u6839\u636e\u51e0\u4f55\u4f53\u548c\u6750\u8d28\u521b\u5efa\u7269\u4f53\nconst cube = new THREE.Mesh(cubeGeometry, cubeMaterial);\n\n\/\/ \u5c06\u51e0\u4f55\u4f53\u6dfb\u52a0\u5230\u573a\u666f\u4e2d\nscene.add(cube);\n\n\/\/ \u521d\u59cb\u5316\u6e32\u67d3\u5668\nconst renderer = new THREE.WebGLRenderer();\n\n\/\/ \u8bbe\u7f6e\u6e32\u67d3\u7684\u5c3a\u5bf8\u5927\u5c0f\nrenderer.setSize(window.innerWidth, window.innerHeight);\n\/\/ console.log(renderer)\n\n\/\/ \u5c06webgl\u6e32\u67d3\u7684canvas\u5185\u5bb9\u6dfb\u52a0\u5230body\ndocument.body.appendChild(renderer.domElement);<\/code><\/pre>\n\n\n\n<p>3. \u5728\u4f7f\u7528\u6e32\u67d3\u5668\uff0c\u901a\u8fc7\u76f8\u673a\u5c06\u573a\u666f\u6e32\u67d3\u8fdb\u6765\u4e4b\u524d\uff0c\u521b\u5efa\u8f68\u9053\u63a7\u5236\u5668<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>OrbitControls( object :&nbsp;Camera, domElement :&nbsp;HTMLDOMElement&nbsp;)<\/strong><\/p>\n<cite>object\uff1a\uff08\u5fc5\u987b\uff09\u5c06\u8981\u88ab\u63a7\u5236\u7684\u76f8\u673a\u3002\u8be5\u76f8\u673a\u4e0d\u5141\u8bb8\u662f\u5176\u4ed6\u4efb\u4f55\u5bf9\u8c61\u7684\u5b50\u7ea7\uff0c\u9664\u975e\u8be5\u5bf9\u8c61\u662f\u573a\u666f\u81ea\u8eab\u3002<br>domElement\uff1a\u7528\u4e8e\u4e8b\u4ef6\u76d1\u542c\u7684HTML\u5143\u7d20\u3002<\/cite><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>const controls = new OrbitControls(camera, renderer.domElement);<\/code><\/pre>\n\n\n\n<p>4. \u63a5\u7740\u4e3a\u4e86\u8ba9\u6d4f\u89c8\u5668\u6bcf\u91cd\u7ed8\u4e00\u5e27\u90fd\u91cd\u65b0\u8c03\u7528\u4e00\u6b21\u8fd9\u4e2a\u6e32\u67d3\u5668\uff0c\u91cd\u65b0\u6e32\u67d3\u4e00\u4e0b\u753b\u9762\uff0c\u8fd9\u6837\uff0c\u5f53\u5185\u5bb9\u53d1\u751f\u53d8\u5316\uff0c\u753b\u9762\u624d\u4f1a\u8ddf\u7740\u6e32\u67d3\u51fa\u6765<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>window.requestAnimationFrame<\/strong><\/p>\n<cite><strong><code>window.requestAnimationFrame(callback)<\/code><\/strong>&nbsp;\u544a\u8bc9\u6d4f\u89c8\u5668\u2014\u2014\u4f60\u5e0c\u671b\u6267\u884c\u4e00\u4e2a\u52a8\u753b\uff0c\u5e76\u4e14\u8981\u6c42\u6d4f\u89c8\u5668\u5728\u4e0b\u6b21\u91cd\u7ed8\u4e4b\u524d\u8c03\u7528\u6307\u5b9a\u7684\u56de\u8c03\u51fd\u6570\u66f4\u65b0\u52a8\u753b\u3002\u8be5\u65b9\u6cd5\u9700\u8981\u4f20\u5165\u4e00\u4e2a\u56de\u8c03\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\uff0c\u8be5\u56de\u8c03\u51fd\u6570\u4f1a\u5728\u6d4f\u89c8\u5668\u4e0b\u4e00\u6b21\u91cd\u7ed8\u4e4b\u524d\u6267\u884c<\/cite><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>const render = () =&gt; {\n    renderer.render(scene, camera);\n\n    \/\/ \u6e32\u67d3\u4e0b\u4e00\u5e27\u7684\u65f6\u5019\u5c31\u4f1a\u8c03\u7528render\u51fd\u6570\n    requestAnimationFrame(render);\n}\n\nrender();<\/code><\/pre>\n\n\n\n<p>5. \u4e3a\u4e86\u8ba9\u7269\u4f53\u59ff\u6001\u66f4\u52a0\u76f4\u89c2\uff0c\u53ef\u4ee5\u6dfb\u52a0\u5750\u6807\u8f74\u8f85\u52a9\u5668<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>AxesHelper( size :&nbsp;Number&nbsp;)<\/strong><\/p>\n<cite>size&nbsp;&#8212; \uff08\u53ef\u9009\u7684\uff09\u8868\u793a\u4ee3\u8868\u8f74\u7684\u7ebf\u6bb5\u957f\u5ea6. \u9ed8\u8ba4\u4e3a&nbsp;1.<br>\u7ea2\u8272\u4ee3\u8868 X \u8f74. \u7eff\u8272\u4ee3\u8868 Y \u8f74. \u84dd\u8272\u4ee3\u8868 Z \u8f74.<\/cite><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>const axesHelper = new THREE.AxesHelper(5);\nscene.add(axesHelper);<\/code><\/pre>\n\n\n\n<p>\u6b64\u65f6\uff0c\u5c31\u5b8c\u6210\u4e86\u8f68\u9053\u63a7\u5236\u5668\u7684\u6dfb\u52a0<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-1-1024x526.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"526\" data-original=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-1-1024x526.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-437\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><figcaption class=\"wp-element-caption\">\u6548\u679c\u56fe<\/figcaption><\/figure><\/div>\n\n\n<p><strong>\u9644\uff1a\u5b8c\u6574\u4ee3\u7801<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/** \n * Learning2\n * threejs\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668\n * Author: Li Jincheng\n * Time: 2023\/01\/31\n*\/\n\n&lt;template&gt;\n    &lt;div&gt;&lt;\/div&gt;\n&lt;\/template&gt;\n\n\n&lt;script&gt;\nimport * as THREE from 'three'\n\/\/ \u5bfc\u5165\u8f68\u9053\u63a7\u5236\u5668\nimport { OrbitControls } from 'three\/examples\/jsm\/controls\/OrbitControls'\n\n\n\nexport default {\n    name: 'Learning2',\n    methods: {\n        init() {\n            \/\/ \u521b\u5efa\u573a\u666f\n            const scene = new THREE.Scene();\n\n            \/\/ \u521b\u5efa\uff08\u900f\u89c6\u6295\u5f71\uff09\u76f8\u673a\n            const camera = new THREE.PerspectiveCamera(75, window.innerWidth \/ window.innerHeight, 0.1, 1000);\n\n            \/\/ \u8bbe\u7f6e\u76f8\u673a\u4f4d\u7f6e\n            camera.position.set(0, 0, 10);\n            scene.add(camera);\n\n            \/\/ \u6dfb\u52a0\u7269\u4f53\n            \/\/ \u521b\u5efa\u51e0\u4f55\u4f53\n            const cubeGeometry = new THREE.BoxGeometry();\n            const cubeMaterial = new THREE.MeshBasicMaterial({ color: 0xffff00 });\n\n            \/\/ \u6839\u636e\u51e0\u4f55\u4f53\u548c\u6750\u8d28\u521b\u5efa\u7269\u4f53\n            const cube = new THREE.Mesh(cubeGeometry, cubeMaterial);\n\n            \/\/ \u5c06\u51e0\u4f55\u4f53\u6dfb\u52a0\u5230\u573a\u666f\u4e2d\n            scene.add(cube);\n\n            \/\/ \u521d\u59cb\u5316\u6e32\u67d3\u5668\n            const renderer = new THREE.WebGLRenderer();\n\n            \/\/ \u8bbe\u7f6e\u6e32\u67d3\u7684\u5c3a\u5bf8\u5927\u5c0f\n            renderer.setSize(window.innerWidth, window.innerHeight);\n            \/\/ console.log(renderer)\n\n            \/\/ \u5c06webgl\u6e32\u67d3\u7684canvas\u5185\u5bb9\u6dfb\u52a0\u5230body\n            document.body.appendChild(renderer.domElement);\n\n            \/\/ \/\/ \u4f7f\u7528\u6e32\u67d3\u5668\uff0c\u901a\u8fc7\u76f8\u673a\u5c06\u573a\u666f\u6e32\u67d3\u8fdb\u6765\n            \/\/ renderer.render(scene, camera);\n\n            \/\/\u521b\u5efa\u8f68\u9053\u63a7\u5236\u5668\n            const controls = new OrbitControls(camera, renderer.domElement);\n\n            \/\/ \u6dfb\u52a0\u5750\u6807\u8f74\u8f85\u52a9\u5668\n            const axesHelper = new THREE.AxesHelper(5);\n            scene.add(axesHelper);\n\n            const render = () =&gt; {\n                renderer.render(scene, camera);\n                \/\/ \u6e32\u67d3\u4e0b\u4e00\u5e27\u7684\u65f6\u5019\u5c31\u4f1a\u8c03\u7528render\u51fd\u6570\n                requestAnimationFrame(render);\n            }\n\n            render();\n        }\n    },\n    mounted() {\n        this.init()\n    }\n\n}\n&lt;\/script&gt;\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u8f68\u9053\u63a7\u5236\u5668\u4ecb\u7ecd Orbit controls\uff08\u8f68\u9053\u63a7\u5236\u5668\uff09\u53ef\u4ee5\u4f7f\u5f97\u76f8\u673a\u56f4\u7ed5\u76ee\u6807\u8fdb\u884c\u8f68\u9053\u8fd0\u52a8\u3002 \u4e8c\u3001\u5728\u9879\u76ee\u4e2d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22],"tags":[],"class_list":["post-428","post","type-post","status-publish","format-standard","hentry","category-three-js"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog<\/title>\n<meta name=\"description\" content=\"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog\" \/>\n<meta property=\"og:description\" content=\"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\" \/>\n<meta property=\"og:site_name\" content=\"LJC&#039;s blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-01T09:11:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T02:26:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-1-1024x526.png\" \/>\n<meta name=\"author\" content=\"\u674e \u9526\u6210\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u674e \u9526\u6210\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\"},\"author\":{\"name\":\"\u674e \u9526\u6210\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"headline\":\"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668\",\"datePublished\":\"2023-02-01T09:11:30+00:00\",\"dateModified\":\"2024-04-08T02:26:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\"},\"wordCount\":34,\"publisher\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"articleSection\":[\"three.js\u5b66\u4e60\"],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\",\"url\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\",\"name\":\"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#website\"},\"datePublished\":\"2023-02-01T09:11:30+00:00\",\"dateModified\":\"2024-04-08T02:26:48+00:00\",\"description\":\"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.ljcljc.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#website\",\"url\":\"https:\/\/blog.ljcljc.cn\/\",\"name\":\"LJC&#039;s blog\",\"description\":\"\u5c0f\u6210\u77e5\u8bc6\u5e93\",\"publisher\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.ljcljc.cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\",\"name\":\"\u674e \u9526\u6210\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg\",\"contentUrl\":\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg\",\"width\":500,\"height\":500,\"caption\":\"\u674e \u9526\u6210\"},\"logo\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/blog.ljcljc.cn\/index.php\/author\/ljc\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog","description":"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/","og_locale":"zh_CN","og_type":"article","og_title":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog","og_description":"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002","og_url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/","og_site_name":"LJC&#039;s blog","article_published_time":"2023-02-01T09:11:30+00:00","article_modified_time":"2024-04-08T02:26:48+00:00","og_image":[{"url":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-1-1024x526.png"}],"author":"\u674e \u9526\u6210","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u674e \u9526\u6210","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#article","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/"},"author":{"name":"\u674e \u9526\u6210","@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"headline":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668","datePublished":"2023-02-01T09:11:30+00:00","dateModified":"2024-04-08T02:26:48+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/"},"wordCount":34,"publisher":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"articleSection":["three.js\u5b66\u4e60"],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/","url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/","name":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668 - LJC&#039;s blog","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/#website"},"datePublished":"2023-02-01T09:11:30+00:00","dateModified":"2024-04-08T02:26:48+00:00","description":"\u901a\u8fc7\u7bc7\u6587\u7ae0\uff0c\u5c06\u4ece\u8f68\u9053\u63a7\u5236\u5668\u7684\u4ecb\u7ecd\u548c\u9879\u76ee\u4e2d\u7684\u5b9e\u9645\u4f7f\u7528\u4e24\u4e2a\u65b9\u9762\uff0c\u8be6\u89e3\u771f\u5b9e\u4ee3\u7801\uff0c\u5feb\u901f\u5165\u95e8Three.js\u4e2d\u7684\u8f68\u9053\u63a7\u5236\u5668\u7684\u4f7f\u7528\u3002","breadcrumb":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/428\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.ljcljc.cn\/"},{"@type":"ListItem","position":2,"name":"Three.js\u5165\u95e8-\u4f7f\u7528\u8f68\u9053\u63a7\u5236\u5668"}]},{"@type":"WebSite","@id":"https:\/\/blog.ljcljc.cn\/#website","url":"https:\/\/blog.ljcljc.cn\/","name":"LJC&#039;s blog","description":"\u5c0f\u6210\u77e5\u8bc6\u5e93","publisher":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.ljcljc.cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46","name":"\u674e \u9526\u6210","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/","url":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg","contentUrl":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/g.jpg","width":500,"height":500,"caption":"\u674e \u9526\u6210"},"logo":{"@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/image\/"},"url":"https:\/\/blog.ljcljc.cn\/index.php\/author\/ljc\/"}]}},"_links":{"self":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":11,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":445,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/428\/revisions\/445"}],"wp:attachment":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}