Difference in meaning between 'the' and 'that'

If there is only one house over there, then they are equivalent. If there are several, "that house" would go with an indication of which house, eg by pointing. "The house" assumes there is only one possibility.