A given environment will give a certain kind of pressure and demand a certain kind of solution. Bring the ancestors of mantis shrimps to the treetops and neothlithic apes to the ocean floors and they would both die... If you fix that and let them somehow compete on vision they would likely converge on eyes like the those currently living in the environment have.