yannliao / threejs-example-for-miniprogram

这是一个 three.js 在微信小程序里的使用示例
MIT License
271 stars 87 forks source link

obj格式的文件如何加载mlt格式的材质 #7

Open yiwuxing opened 4 years ago

yiwuxing commented 4 years ago

如题,threejs展示obj格式文件时,例子中给了贴图的形式,但是想展示材质文件,想问下如何能将mlt格式的材质文件和obj结合展示

yannliao commented 4 years ago

用MTLLoader 加载好mtl文件后 在OBJLoader中 OBJLoader().setMaterials(materials)

yannliao commented 4 years ago

https://yannliao.github.io/threejs.miniprogram/examples/webgl_loader_obj_mtl.html

yiwuxing commented 4 years ago

我按照这个例子做了,不行

------------------ 原始邮件 ------------------ 发件人: "Yann Liao"<notifications@github.com>; 发送时间: 2019年11月13日(星期三) 中午11:53 收件人: "yannliao/threejs-example-for-miniprogram"<threejs-example-for-miniprogram@noreply.github.com>; 抄送: "。"<744092492@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [yannliao/threejs-example-for-miniprogram] obj格式的文件如何加载mlt格式的材质 (#7)

https://yannliao.github.io/threejs.miniprogram/examples/webgl_loader_obj_mtl.html

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

yannliao commented 4 years ago

加qq吧 建了个群 858741591

yannliao commented 4 years ago

例子里面应该是贴图太大了 显示不出来

Kane-LAU commented 4 years ago

@yannliao 华哥,我觉得你把qq群号,放到read me里吧。

yiwuxing commented 4 years ago

加了,麻烦同意一下

------------------ 原始邮件 ------------------ 发件人: "Yann Liao"<notifications@github.com>; 发送时间: 2019年11月13日(星期三) 中午12:33 收件人: "yannliao/threejs-example-for-miniprogram"<threejs-example-for-miniprogram@noreply.github.com>; 抄送: "。"<744092492@qq.com>; "Author"<author@noreply.github.com>; 主题: Re: [yannliao/threejs-example-for-miniprogram] obj格式的文件如何加载mlt格式的材质 (#7)

例子里面应该是贴图太大了 显示不出来

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.