Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎样才能阻止这种情况发生?我一直在研究地平线剔除,但我不确定我是否走在正确的轨道上?是否有几行简单的代码可以阻止应用程序显示地球下方的形状部分?
CentralBody有财产depthTestAgainstTerrain。将其设置为 true 将使您更接近您所追求的。
CentralBody
depthTestAgainstTerrain
viewer.getPrimitives().getCentralBody().depthTestAgainstTerrain = true;
这是默认关闭的,因为它可能导致工件。特别是,由于有限的深度缓冲精度以及不同细节级别的表面形状变化,有时会认为靠近地球表面的对象部分或完全位于表面之下。我们最终会有一个解决方案,但这是一个非常困难的问题。