Collada 模型面在three.js 中无法正确显示 [英] Collada model faces not displaying correctly in three.js

查看:50
本文介绍了Collada 模型面在three.js 中无法正确显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将 collada 模型导入到three.js 后,部分模型的人脸只能从模型内部看到,而不能从外部看到.

After importing a collada model into three.js, some of the model's faces are only visible from the inside of the model and not from the outside.

如何解决相关人脸的问题?

How can I fix the problem with the faces in question?

是否可以从两侧都可以看到模特的脸?

Is it possible to have the model's faces visible from both sides?

推荐答案

它不能正常工作的原因是因为你的文件设置了这个 double_side 标志:

The reason it doesn't work properly is because your file has this double_sided flag set:

<effect id="material_3_4_0-effect" name="material_3_4_0-effect">
   <profile_COMMON>
      ...
      <extra>
         <technique profile="GOOGLEEARTH">
            <double_sided>1</double_sided>
         </technique>
      </extra>
   </profile_COMMON>
</effect>

three.js ColladaLoader 不会寻找这个标志并像它应该的那样在材料上设置 doubleSided.我已经针对该问题提交了错误.

The three.js ColladaLoader doesn't look for this flag and set doubleSided on the material like it should. I've filed a bug for the issue.

这篇关于Collada 模型面在three.js 中无法正确显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆