1
Vote

Item scale ranges between 1.0 and 0.0 rather than 1.0 and 0.1

description

Replacing the following code in WorldView.OnAttitudeChanged() method :
 
double scale = (FarClippingPlane - Math.Abs(arItem.WorldLocation.Z)) / FarClippingPlane;
 
with this one, should fix the problem:
 
double scale = (double)(MathHelper.Lerp(0.1f, 1.0f, (FarClippingPlane - Math.Abs(arItem.WorldLocation.Z)) / FarClippingPlane));
 
Alternatively, scale range could be set by class properties.

comments