three.js - 从 Blender 到三个 js 的 3d 模型遇到问题
问题描述
我正在经历的 GiF 当我使用 dat.gui 时,x 和 z 坐标都在做同样的事情,我也改变了 3 模型的颜色并导入它,我的模型仍然是黑色的?
[import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader';
const gltfLoader = new GLTFLoader()
gltfLoader.load('./CellPhone_IP6.gltf', (gltf) => {
gltf.scene.scale.set(0.3, 0.3, 0.3)
gltf.scene.rotation.set(0, 5, 0);
scene.add(gltf.scene)
gui.add(gltf.scene.rotation,'x').min(-10).max(9)
gui.add(gltf.scene.rotation,'y').min(-10).max(9)
gui.add(gltf.scene.rotation,'z').min(-10).max(9)
});
我试过重新启动我的开发环境
寻找完成的项目代码进行故障排除
从头开始重新启动教程 [教程][1]
解决方案
推荐阅读
- debugging - 调试器如何跟踪 C 代码和汇编指令之间的映射?
- python - 当我在 python 中编写文本文件时,会自动添加空格
- spring-boot - spring boot 版本升级后如何使用 Converter 修复异常
- java - CheckBox.setChecked() 导致崩溃;CheckBox 变量未初始化,始终为空?
- python - 如何解析 JSON 文件并收集数据并保存到数据框中?
- postgresql - 使用 postgresql 和 jpa 更改数据类型时服务器挂起
- r - 根据向量中的特定条件进行过滤
- opencv - 如何在较新版本的 OpenCV-Python 中导入 cv.StereoRectify()
- sql - 显示详细 MRR 细分的 SQL 查询
- maven - Maven 正在跳过测试