Dinosaurs first appeared about 230 million years ago, and were all very similar.
By 160 million years ago, they had developed into 40 different genera, or groups of species.
Peter Sheehan, from a museum which took part in the survey, said the way the dinosaurs differed from each other by the Cretaceous period was "absolutely breathtaking".