![[FIX] C++ Culling Tolerance - Mesaj 1 - Imagine 1 [FIX] C++ Culling Tolerance - Mesaj 1 - Imagine 1](https://fummelhummel.cc/5/1.gif)
after:
![[FIX] C++ Culling Tolerance - Mesaj 1 - Imagine 2 [FIX] C++ Culling Tolerance - Mesaj 1 - Imagine 2](https://fummelhummel.cc/5/2.gif)
Eterlib\CullingManager.cpp in void CCullingManager::VisibilityCallback, change code like this:
Code:
#ifdef CULLING_TOLERANCE
void CCullingManager::VisibilityCallback(const Frustum&f, SpherePack* sphere, ViewState state)
{
#ifdef SPHERELIB_STRICT
if (sphere->IS_SPHERE)
puts("CCullingManager::VisibilityCallback");
#endif
CGraphicObjectInstance* pInstance = (CGraphicObjectInstance*)sphere->GetUserData();
if (state == VS_PARTIAL || state == VS_OUTSIDE)
{
Vector3d v;
float r;
pInstance->GetBoundingSphere(v, r);
r += 250.0f; // tolerance culling float
state = f.ViewVolumeTest(v, r);
}
#else
void CCullingManager::VisibilityCallback(const Frustum &/*f*/,SpherePack *sphere,ViewState state)
{
#ifdef SPHERELIB_STRICT
if (sphere->IS_SPHERE)
puts("CCullingManager::VisibilityCallback");
#endif
CGraphicObjectInstance * pInstance = (CGraphicObjectInstance*)sphere->GetUserData();
/*if (state == VS_PARTIAL)
{
Vector3d v;
float r;
pInstance->GetBoundingSphere(v,r);
state = f.ViewVolumeTest(v,r);
}*/
#endif

