Mechanisms of droplet formation