Start a new topic

Determine if object is removed by culling distance

Determine if object is removed by culling distance


Hi Wikitude Team,

I am wondering if it is possible to determine if a GeoObject has been removed from view based on the current culling distance setting . I am using the Android SDK.

The api has methods for determining if the GeoObject is in view but I would need to know it it will ever be in view based on the current settings.

 

Thanks in advance,

Harry

Hello Harry,

Unfortunatly there is no such feature. As a workaround you could go through all your GeoObjects on a location-update and check if the distance-value is smaller than the value you set in the SDK as a culling-distance.

Hope that helps,
Chris

Hi Chris,

Thank you for you help. Does the culling distance calculation factor in the altitude of the current location and the altitude of the GeoObjects?

Thanks,

Harry

 

Yes it does. The culling distance factors in all GeoObjects wherever they are located in the 3d-space as long as they are positioned within that range.

Chris 
Login or Signup to post a comment