Morphogenesis of matter