A-Frame / THREE.js, no textures simplified gltf[glb] models

我只是一个虾纸丫 提交于 2019-12-25 03:55:31

问题


After simplifying glb successfully with the answer in this post.

The textures in are not being applied to the model any more (it appears completely black and unreflective(no material)

How would I programmatically get the textures to work with this new simplified geometry?

I think its something to do with the uv's but im not to sure how to have it work according to simplified geometry, if even possible.


回答1:


THREE.SimplifyModifier currently does not preserve UVs in the geometry, which you'll need for textures to work. See: https://github.com/mrdoob/three.js/issues/14058. There is a workaround suggested in that issue (via changes to SimplifyModifier) but as discussed there, some artifacts will likely be visible in the result. If you can do the simplification in Blender or another modeling tool, you may have more control over the process and can get better results.



来源:https://stackoverflow.com/questions/52102935/a-frame-three-js-no-textures-simplified-gltfglb-models

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!