更新记录

1.0.1(2022-10-18) 下载此版本

性能优化

1.0.0(2022-10-18) 下载此版本

muyu-modelDisplay发布

v1.0.0(2022-10-17) 下载此版本

muyu-modelDisplay发布

查看更多

平台兼容性

uni-app

Vue2 Vue3 Chrome Safari app-vue app-nvue Android iOS 鸿蒙
× - - - - - - -
微信小程序 支付宝小程序 抖音小程序 百度小程序 快手小程序 京东小程序 鸿蒙元服务 QQ小程序 飞书小程序 快应用-华为 快应用-联盟
- - - - - - - - - - -

其他

多语言 暗黑模式 宽屏模式
× ×

muyu-modelDisplay


简介

一个简单、好用的3D模型加载器,使用了threejs引擎,仅支持gltf和obj格式模型


使用准备

在index.html引入

<script src="/uni_modules/muyu-modelDisplay/static/muyu-modelDisplay/threejs/three.js"></script>
<script src="/uni_modules/muyu-modelDisplay/static/muyu-modelDisplay/threejs/OrbitControls.js"></script>
<script src="/uni_modules/muyu-modelDisplay/static/muyu-modelDisplay/threejs/GLTFLoader.js"></script>
<script src="/uni_modules/muyu-modelDisplay/static/muyu-modelDisplay/threejs/OBJLoader.js"></script>
<script src="/uni_modules/muyu-modelDisplay/static/muyu-modelDisplay/threejs/MTLLoader.js"></script>

API

参数
属性名 类型 默认值 说明
fileType String GLTF 模型类型(可选值:GLTF或OBJ)
file String - 模型文件(文件格式:.gltf或.obj)
fileMTL String - OBJ类型可选,材质文件(文件格式:.mtl)
size String 10 可选,模型尺寸
bgC String #808080 可选,默认背景色

错误

如果报错请尝试重启IDE

隐私、权限声明

1. 本插件需要申请的系统权限列表:

2. 本插件采集的数据、发送的服务器地址、以及数据用途说明:

插件不采集任何数据

3. 本插件是否包含广告,如包含需详细说明广告表达方式、展示频率:

许可协议

MIT协议

使用中有什么不明白的地方,就向插件作者提问吧~ 我要提问