You don't need to use distance map on the base object. Only the objects that are driving distance effect should have distance map and not the object that is receiving the effect. Obviously driving objects must be separate in order for this to work. In the attached file you'll find two solutions, one for different materials and one for maps.