Why do two faces appear invisible in ThreeJs?

99封情书 提交于 2019-12-02 01:28:02

When I see something like this, the first thing I usually do is to set the material to side: THREE.DoubleSide. If that helps, the problem has to do with the normal-directions (so the face is actually there but isn't rendered because it is facing away from you).

To fix this, you should try the following:

  • In blender you can enable displaying of normal-directions in the right-hand menu (select "Face normals in section "Mesh Display").
  • You should now see if any of the normals are pointing inwards/in the wrong direction.
  • There is an automatic fix that works well for properly constructed meshes:
    • select object and switch into edit-mode (<Tab>)
    • select all vertices (shortcut &ltA>)
    • via menu "Mesh" > "Normals" > "Recalculate Outside" (shortcut <Ctrl>+<N>).
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!