Also major influences on D&D: sci-fi and superhero comics, with that 'everything and the kitchen sink can pop up in the setting'. Later, anime.
I think the original roots were sword and sorcery (kill things and take their stuff) with a dash of Lord of the Rings (mixed groups of characters)...