1. 首页
  2. three.js

three.js放大摄影机会使某些网格不可见

three.jsn我正在使用轨道控制,当我放大或移动相机时,一些网格会消失。这是我现在的相机配置:nI tried to decrease the near plane but it doesnt work, i also add to the meshes materials that are disappearing THREE.DoubleSide and nothing seems to work. They are also animated via new way to animate>nDon\”t know if that has anything relationship with the issue.nThis a project test to check what i\”m saying:ntest.zip 4 (800.7 KB)nThanks!nYou might want to set object.frustumCulled 174 to false以防止视图截锥体剔除。n我这样做了,但似乎不起作用。n网格只有在设置动画时才会消失吗?n可能我只检查了动画…可能会因此出现问题吗?nArrows.zip4(196.8 KB)n这里的实际模型@turkoz14在GH问题上有问题。n我编辑这个,因为我知道你在说什么。n我已经检查了你的代码。您必须禁用所有对象的视图截头体剔除功能,不仅是对最顶端的对象:nflechasObject.traverse( function( object )>nAfter applying this code in your onLoad()回调,一切正常。turkoz14:n可能我只检查它们的动画…会因此出现问题吗?n是。边界体积(如边界球体)不考虑通过顶点变形或混合在GPU上执行的顶点变换。由于您的FBX资源包含蒙皮网格,因此最好禁用视锥剔除以避免报告的问题。n谢谢,现在它工作得很好!nMugen87:nFlecasObject.traverse(函数(对象){>n是!这对我来说很有用。谢谢,jbn Zooming in camera make some meshes not visiblen

three.js放大摄影机会使某些网格不可见 为WP2原创文章,链接:https://www.wp2.cn/three-js/three-js%e6%94%be%e5%a4%a7%e6%91%84%e5%bd%b1%e6%9c%ba%e4%bc%9a%e4%bd%bf%e6%9f%90%e4%ba%9b%e7%bd%91%e6%a0%bc%e4%b8%8d%e5%8f%af%e8%a7%81/