hujiulong

Results 123 comments of hujiulong

你可以通过`lights`属性来指定光照的类型和位置。 [smoothing的实现](https://github.com/hujiulong/vue-3d-model/blob/1379595865ca985f1d4d3feb6382428ea79efb5b/src/model-obj.vue#L64)

看这个 https://stackoverflow.com/a/32799706

没办法直接做到,不过你可以做一些hack,获取内部相机的位置,然后更新光源的位置

Nice! But I hope to clearly give the url of each image of the cube map by passing a string array, and this can also be distinguished from giving a...

> I'm not sure have anyone want to load a wide view png picture to be a background This is very common, such images can be taken using a 360°...

Ok, I'm a bit busy during this time, when I'm free I will see where the problem is.

我试了下是没问题的,提供一下复现问题的代码?

Can you provide a repository to reproduce it?

我猜测是模型尺寸太小,精度不够去渲染这个尺寸的模型。你能把模型上传上来吗,我复现一下。

obj文件是没有色彩信息的,如果导出obj的话你需要同时导出包含材质信息的mtl文件。或者选择别的格式。