随笔分类 -  three

摘要:原因:在three.js 0.13X版本后,上面dom的onclick 不会触发,原因是控制器Controls,可以尝试一下去掉控制器,看看dom上的点击事件是否ok let obtControls = new OrbitControls(camera, container); // OrbitCo 阅读全文
posted @ 2023-10-11 09:05 一江春水向东刘小姐 阅读(920) 评论(0) 推荐(0)
摘要:安装three.js 0.128.0版本 ,build报错 解决: 在webpack.base.config.js中规则rules下配置 { test: /\.js$/, loader: 'happypack/loader?id=happybabel', // exclude: /node_modu 阅读全文
posted @ 2023-08-23 19:08 一江春水向东刘小姐 阅读(44) 评论(0) 推荐(0)
摘要:1、安装three.js npm i three@0.128.0 2、在vue中引用(可以测试一下,是否ok,下面测试) 1)、新建index.js import * as THREE from 'three'; // 引入Three.js扩展库 import { OrbitControls } f 阅读全文
posted @ 2023-07-26 15:56 一江春水向东刘小姐 阅读(1084) 评论(0) 推荐(0)
摘要:vue版本 "devDependencies":{ "webpack": "^3.6.0", "webpack-bundle-analyzer": "^2.9.0", "webpack-dev-server": "^2.9.1", "webpack-merge": "^4.1.0" } "depen 阅读全文
posted @ 2023-07-26 15:50 一江春水向东刘小姐 阅读(1092) 评论(0) 推荐(0)