上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: <!-- 基础最终代码 --> <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE fro 阅读全文
posted @ 2022-08-02 09:46 yulingjia 阅读(24) 评论(0) 推荐(0) 编辑
摘要: // 双击控制全屏他和退出全屏 window.addEventListener("dblclick", () => { const fullScreenElement = document.fullscreenElement if (!fullScreenElement) { // 用画布对象进入全 阅读全文
posted @ 2022-08-01 17:51 yulingjia 阅读(97) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE from 'three' import 阅读全文
posted @ 2022-08-01 17:25 yulingjia 阅读(134) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE from 'three' import 阅读全文
posted @ 2022-08-01 17:11 yulingjia 阅读(221) 评论(0) 推荐(0) 编辑
摘要: // init方法最后面 // 设置时钟 this.clock = new THREE.Clock() this.render() // 渲染函数 render () { // 物体会沿着x轴一直循环运动 // this.cube.position.x += 0.01 // this.cube.ro 阅读全文
posted @ 2022-08-01 16:26 yulingjia 阅读(120) 评论(0) 推荐(0) 编辑
摘要: // 渲染函数 render (time) { // 物体会沿着x轴一直循环运动 // this.cube.position.x += 0.01 // this.cube.rotation.x += 0.1 let t = (time / 1000) % 5 this.cube.position.x 阅读全文
posted @ 2022-08-01 16:15 yulingjia 阅读(81) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE from 'three' import 阅读全文
posted @ 2022-08-01 15:49 yulingjia 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 我就不贴的代码了 前面有基础代码 // 添加坐标轴辅助器 const axesHelper = new THREE.AxesHelper( 5 ) this.scene.add( axesHelper ) 阅读全文
posted @ 2022-08-01 15:31 yulingjia 阅读(39) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE from 'three' import 阅读全文
posted @ 2022-08-01 15:23 yulingjia 阅读(61) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="home"> <div id="threeContainer" class="threeContainer"></div> </div> </template> <script> import * as THREE from 'three' export 阅读全文
posted @ 2022-08-01 14:45 yulingjia 阅读(112) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页