{"id":451,"date":"2023-02-01T19:59:58","date_gmt":"2023-02-01T11:59:58","guid":{"rendered":"https:\/\/www.ljcljc.cn\/?p=451"},"modified":"2024-04-08T10:26:42","modified_gmt":"2024-04-08T02:26:42","slug":"three-js%e5%85%a5%e9%97%a8-%e7%89%a9%e4%bd%93%e7%bc%a9%e6%94%be%e4%bb%a5%e5%8f%8a%e6%97%8b%e8%bd%ac","status":"publish","type":"post","link":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/","title":{"rendered":"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u7f29\u653e<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>.scale&nbsp;:&nbsp;Vector3<\/strong><\/p>\n<cite>\u7269\u4f53\u7684\u5c40\u90e8\u7f29\u653e\u3002\u9ed8\u8ba4\u503c\u662fVector3( 1, 1, 1 )\u3002<\/cite><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Vector3\uff08\u4e09\u7ef4\u5411\u91cf\uff09<\/strong><\/p>\n<cite>\u8be5\u7c7b\u8868\u793a\u7684\u662f\u4e00\u4e2a\u4e09\u7ef4\u5411\u91cf\uff083D&nbsp;vector\uff09\u3002 \u4e00\u4e2a\u4e09\u7ef4\u5411\u91cf\u8868\u793a\u7684\u662f\u4e00\u4e2a\u6709\u987a\u5e8f\u7684\u3001\u4e09\u4e2a\u4e3a\u4e00\u7ec4\u7684\u6570\u5b57\u7ec4\u5408\uff08\u6807\u8bb0\u4e3ax\u3001y\u548cz\uff09\uff0c \u53ef\u88ab\u7528\u6765\u8868\u793a\u5f88\u591a\u4e8b\u7269\uff0c\u4f8b\u5982\uff1a<br>1. \u4e00\u4e2a\u4f4d\u4e8e\u4e09\u7ef4\u7a7a\u95f4\u4e2d\u7684\u70b9\u3002<br>2. \u4e00\u4e2a\u5728\u4e09\u7ef4\u7a7a\u95f4\u4e2d\u7684\u65b9\u5411\u4e0e\u957f\u5ea6\u7684\u5b9a\u4e49\u3002\u5728three.js\u4e2d\uff0c\u957f\u5ea6\u603b\u662f\u4ece(0, 0, 0)\u5230(x, y, z)\u7684&nbsp;Euclidean distance\uff08\u6b27\u51e0\u91cc\u5fb7\u8ddd\u79bb\uff0c\u5373\u76f4\u7ebf\u8ddd\u79bb\uff09\uff0c \u65b9\u5411\u4e5f\u662f\u4ece(0, 0, 0)\u5230(x, y, z)\u7684\u65b9\u5411\u3002<br>3. \u4efb\u610f\u7684\u3001\u6709\u987a\u5e8f\u7684\u3001\u4e09\u4e2a\u4e3a\u4e00\u7ec4\u7684\u6570\u5b57\u7ec4\u5408\u3002<br>4. \u5176\u4ed6\u7684\u4e00\u4e9b\u4e8b\u7269\u4e5f\u53ef\u4ee5\u4f7f\u7528\u4e8c\u7ef4\u5411\u91cf\u8fdb\u884c\u8868\u793a\uff0c\u6bd4\u5982\u8bf4\u52a8\u91cf\u77e2\u91cf\u7b49\u7b49\uff1b \u4f46\u4ee5\u4e0a\u8fd9\u4e9b\u662f\u5b83\u5728three.js\u4e2d\u7684\u5e38\u7528\u7528\u9014\u3002<br><strong>\u5bf9 Vector3 \u5b9e\u4f8b\u8fdb\u884c\u904d\u5386\u5c06\u6309\u76f8\u5e94\u7684\u987a\u5e8f\u751f\u6210\u5b83\u7684\u5206\u91cf (x, y, z)\u3002<\/strong><\/cite><\/blockquote>\n\n\n\n<pre class=\"wp-block-code\"><code>cube.scale.set(3, 2, 1);<\/code><\/pre>\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-3-1024x571.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"571\" data-original=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-3-1024x571.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-456\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><figcaption class=\"wp-element-caption\">\u6548\u679c\u56fe<\/figcaption><\/figure><\/div>\n\n\n<p>\u6216<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cube.scale.x = 5<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-4-1024x534.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"534\" data-original=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-4-1024x534.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-457\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><figcaption class=\"wp-element-caption\">\u6548\u679c\u56fe<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u65cb\u8f6c<\/h2>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>.rotation&nbsp;:&nbsp;Euler<\/strong><\/p>\n<cite>\u7269\u4f53\u7684\u5c40\u90e8\u65cb\u8f6c\uff0c\u4ee5<strong>\u5f27\u5ea6<\/strong>\u6765\u8868\u793a\u3002\uff08\u8bf7\u53c2\u9605Euler angles-\u6b27\u62c9\u89d2\uff09<\/cite><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Euler\uff08\u6b27\u62c9\u89d2\uff09<\/strong><\/p>\n<cite>\u6b27\u62c9\u89d2\u63cf\u8ff0\u4e00\u4e2a\u65cb\u8f6c\u53d8\u6362\uff0c\u901a\u8fc7\u6307\u5b9a\u8f74\u987a\u5e8f\u548c\u5176\u5404\u4e2a\u8f74\u5411\u4e0a\u7684\u6307\u5b9a\u65cb\u8f6c\u89d2\u5ea6\u6765\u65cb\u8f6c\u4e00\u4e2a\u7269\u4f53\u3002<br>\u5bf9 Euler \u5b9e\u4f8b\u8fdb\u884c\u904d\u5386\u5c06\u6309\u76f8\u5e94\u7684\u987a\u5e8f\u751f\u6210\u5b83\u7684\u5206\u91cf (x, y, z, order)\u3002<\/cite><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"has-medium-font-size\"><strong>Euler Constructor \uff08\u6b27\u62c9\u89d2\u6784\u9020\u5668\uff09<\/strong><\/p>\n\n\n\n<p><strong>Euler( x :&nbsp;Float, y :&nbsp;Float, z :&nbsp;Float, order :&nbsp;String&nbsp;)<\/strong><\/p>\n<cite>x&nbsp;&#8211; (optional) \u7528\u5f27\u5ea6\u8868\u793ax\u8f74\u65cb\u8f6c\u91cf\u3002 \u9ed8\u8ba4\u503c\u662f&nbsp;0\u3002<br>y&nbsp;&#8211; (optional) \u7528\u5f27\u5ea6\u8868\u793ay\u8f74\u65cb\u8f6c\u91cf\u3002 \u9ed8\u8ba4\u503c\u662f&nbsp;0\u3002<br>z&nbsp;&#8211; (optional) \u7528\u5f27\u5ea6\u8868\u793az\u8f74\u65cb\u8f6c\u91cf\u3002 \u9ed8\u8ba4\u503c\u662f&nbsp;0\u3002<br>order&nbsp;&#8211; (optional) \u8868\u793a\u65cb\u8f6c\u987a\u5e8f\u7684\u5b57\u7b26\u4e32\uff0c\u9ed8\u8ba4\u4e3a&#8217;XYZ&#8217;\uff08\u5fc5\u987b\u662f\u5927\u5199\uff09\u3002<\/cite><\/blockquote>\n\n\n\n<p>1. \u4ee5X\u8f74\u4e3a\u8f74\u65cb\u8f6c45\u00b0<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cube.rotation.set(Math.PI \/ 4, 0, 0);<\/code><\/pre>\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-2-1024x644.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"644\" data-original=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-2-1024x644.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-455\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/div><figcaption class=\"wp-element-caption\">\u4ee5X\u8f74\u4e3a\u8f74\u65cb\u8f6c45\u00b0\u6548\u679c\u56fe<\/figcaption><\/figure><\/div>\n\n\n<p>2. \u8fb9\u79fb\u52a8\u8fb9\u65cb\u8f6c<\/p>\n\n\n\n<p>\u8981\u5b9e\u73b0\u8fd9\u4e2a\u6548\u679c\uff0c\u8fd8\u662f\u5728render\u51fd\u6570\u4e2d\u64cd\u4f5c<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>const render = () =&gt; {\n    cube.position.x += 0.01; \/\/ \u6bcf\u5e27\u4ee5x\u4e3a\u8f74\u5411\u524d\u79fb\u52a80.01\n    cube.rotation.x += 0.01; \/\/ \u6bcf\u5e27\u65cb\u8f6c0.01\u5f27\u5ea6\n    if(cube.position.x &gt; 5) {\n        cube.position.x =0;\n    }\n    renderer.render(scene, camera);\n    \/\/ \u6e32\u67d3\u4e0b\u4e00\u5e27\u7684\u65f6\u5019\u5c31\u4f1a\u8c03\u7528render\u51fd\u6570\n    requestAnimationFrame(render);\n}<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/\u8fb9\u79fb\u52a8\u8fb9\u65cb\u8f6c\u6848\u4f8b.webp'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" decoding=\"async\" width=\"1349\" height=\"726\" data-original=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/\u8fb9\u79fb\u52a8\u8fb9\u65cb\u8f6c\u6848\u4f8b.webp\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" class=\"wp-image-460\"\/><\/div><figcaption class=\"wp-element-caption\"> \u8fb9\u79fb\u52a8\u8fb9\u65cb\u8f6c\u6848\u4f8b<\/figcaption><\/figure>\n\n\n\n<p><strong>\u9644\uff1a\u5b8c\u6574\u4ee3\u7801<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/** \n * Learning4\n * threejs\u63a7\u52363d\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c\n * Author: Li Jincheng\n * Time: 2023\/02\/01\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: 'Learning4',\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            \/\/\u4fee\u6539\u7269\u4f53\u7684\u4e3a\u4f4d\u7f6e\n            \/\/ cube.position.set(5, 0, 0);\n            \/\/ cube.position.x = 3;\n            \/\/ \u7f29\u653e\n            \/\/ cube.scale.set(3, 2, 1);\n            \/\/ cube.scale.x = 5\n            \/\/ \u65cb\u8f6c\n            \/\/ cube.rotation.set(Math.PI \/ 4, 0, 0);\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                cube.position.x += 0.01;\n                cube.rotation.x += 0.01;\n                if(cube.position.x &gt; 5) {\n                    cube.position.x =0;\n                }\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\u7f29\u653e .scale&nbsp;:&nbsp;Vector3 \u7269\u4f53\u7684\u5c40\u90e8\u7f29\u653e\u3002\u9ed8\u8ba4\u503c\u662fVector3( 1, [&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-451","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-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog<\/title>\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\/451\/\" \/>\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-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u7f29\u653e .scale&nbsp;:&nbsp;Vector3 \u7269\u4f53\u7684\u5c40\u90e8\u7f29\u653e\u3002\u9ed8\u8ba4\u503c\u662fVector3( 1, [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/\" \/>\n<meta property=\"og:site_name\" content=\"LJC&#039;s blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-01T11:59:58+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-08T02:26:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-3-1024x571.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=\"3 \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\/451\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/\"},\"author\":{\"name\":\"\u674e \u9526\u6210\",\"@id\":\"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46\"},\"headline\":\"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c\",\"datePublished\":\"2023-02-01T11:59:58+00:00\",\"dateModified\":\"2024-04-08T02:26:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/\"},\"wordCount\":86,\"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\/451\/\",\"url\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/\",\"name\":\"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog\",\"isPartOf\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/#website\"},\"datePublished\":\"2023-02-01T11:59:58+00:00\",\"dateModified\":\"2024-04-08T02:26:42+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/blog.ljcljc.cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c\"}]},{\"@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-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog","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\/451\/","og_locale":"zh_CN","og_type":"article","og_title":"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog","og_description":"\u4e00\u3001\u7f29\u653e .scale&nbsp;:&nbsp;Vector3 \u7269\u4f53\u7684\u5c40\u90e8\u7f29\u653e\u3002\u9ed8\u8ba4\u503c\u662fVector3( 1, [&hellip;]","og_url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/","og_site_name":"LJC&#039;s blog","article_published_time":"2023-02-01T11:59:58+00:00","article_modified_time":"2024-04-08T02:26:42+00:00","og_image":[{"url":"https:\/\/www.ljcljc.cn\/wp-content\/uploads\/2023\/02\/image-3-1024x571.png"}],"author":"\u674e \u9526\u6210","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u674e \u9526\u6210","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/#article","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/"},"author":{"name":"\u674e \u9526\u6210","@id":"https:\/\/blog.ljcljc.cn\/#\/schema\/person\/2e095138311f9c813747d20a8f911a46"},"headline":"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c","datePublished":"2023-02-01T11:59:58+00:00","dateModified":"2024-04-08T02:26:42+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/"},"wordCount":86,"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\/451\/","url":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/","name":"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c - LJC&#039;s blog","isPartOf":{"@id":"https:\/\/blog.ljcljc.cn\/#website"},"datePublished":"2023-02-01T11:59:58+00:00","dateModified":"2024-04-08T02:26:42+00:00","breadcrumb":{"@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ljcljc.cn\/index.php\/2023\/02\/01\/451\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/blog.ljcljc.cn\/"},{"@type":"ListItem","position":2,"name":"Three.js\u5165\u95e8-\u7269\u4f53\u7f29\u653e\u4ee5\u53ca\u65cb\u8f6c"}]},{"@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\/451","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=451"}],"version-history":[{"count":8,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":464,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/posts\/451\/revisions\/464"}],"wp:attachment":[{"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/media?parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/categories?post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ljcljc.cn\/index.php\/wp-json\/wp\/v2\/tags?post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}