随笔分类 -  three.js

摘要:// 引入three.js import * as THREE from 'three'; import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; // export const threeDimen 阅读全文
posted @ 2023-12-28 10:40 雨落风 阅读(16) 评论(0) 推荐(0) 编辑
摘要:x 左右 y 上下 z 前后 const model = new THREE.Group(); // 创建边界框可视化辅助对象,颜色为黄色 const box = new THREE.Box3().setFromObject(模型); const helper = new THREE.Box3Hel 阅读全文
posted @ 2023-11-28 16:14 雨落风 阅读(74) 评论(0) 推荐(0) 编辑
摘要:1.需要创建场景 // 创建场景 const scene = new THREE.Scene(); 2.创建相机 // 创建相机 const camera = new THREE.PerspectiveCamera() // 相机的位置 camera.position.z = 18 camera.p 阅读全文
posted @ 2023-11-28 14:45 雨落风 阅读(25) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示