随笔分类 - three.js
摘要:// 引入three.js import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; // export const threeDimen
阅读全文
摘要:x 左右 y 上下 z 前后 const model = new THREE.Group(); // 创建边界框可视化辅助对象,颜色为黄色 const box = new THREE.Box3().setFromObject(模型); const helper = new THREE.Box3Hel
阅读全文
摘要:1.需要创建场景 // 创建场景 const scene = new THREE.Scene(); 2.创建相机 // 创建相机 const camera = new THREE.PerspectiveCamera() // 相机的位置 camera.position.z = 18 camera.p
阅读全文