As far as the kemetic pantheon I can't say for sure the whereabouts of its origins but as for the norse, celtic, hellenic, roman, slavic, Baltic and hindic pantheons there is the proto-Indo-European theory. I think over time each culture developed the gods and goddesses to fit their local set...