THREE.js:使用 JSONLoader 加载模型仅加载一半的纹理 [英] THREE.js: Loading model with JSONLoader loads only half of textures
问题描述
在 Blender 中制作房屋模型后,我将其作为单个对象导出为 Three.js json 格式,但是将其添加到场景中时,我显示了一半纹理,另一半只是灰色网格.
JSON URL(带有绝对纹理图像链接):http://pobegushki.meetroll.net/inn1.js我在搅拌机中获得的内容以及我在生产中获得的内容的屏幕截图:
此外,还有两个桶模型实例,它们都具有完美贴图的材质.我尝试将桶图像设置为地板的材质(简单的缩放框网格),但没有任何改变,它仍然保持灰色.
有什么想法吗?
TATATATAAAM!我已经解决了这个问题(愚蠢的方法 tbh,但我得到了完全纹理化的模型).
看哪:http://touhou.ru/upload/56e75518ab580497358741a> 花了很多时间,我想我应该提交一个错误报告:( 更新:这就是这些材料在导出时为空的原因: 在第一张图片中,我选择了一个在生产中具有纹理的网格,而在第二张图片中则没有. 感谢您的关注! After making a house model in blender I've exported it to three.js json format as a single object, but when adding it to scene I got half textures displayed and another half are just grey meshes. JSON URL (with absolute texture images links): http://pobegushki.meetroll.net/inn1.js
Screenshot of what I get in blender and what I get in production: Also there are two instances of a barrel model which both has a perfectly mapped material. I tried setting barrel image as a material to floor (simple scaled box mesh), but nothing changed, it still remained grey. Any ideas? TATATATAAAM! I've solved the problem ( Behold: http://touhou.ru/upload/56e75518ab580497358741bec62491ff.png It took pretty much time, I think I should submit a bugreport :( UPDATE: Here's why those materials were empty on export: On the first picture I've selected a mesh which had texture in production and on the second is one which didn't. Thanks for your attention! 这篇关于THREE.js:使用 JSONLoader 加载模型仅加载一半的纹理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!Blenderthree.js 导出为我得到的所有无纹理网格创建空纹理,我尝试将非空材料复制粘贴到空.经过数千次页面刷新后,我为正确的网格分配了正确的材质.the stupid way tbh, but I got fully textured model).Blender three.js export was creating empty textures for all untextured meshes I got, and I tried copy-pasting non-empty materials to empties. After thousands of page refreshes I got right materials assigned to right meshes.