In Avengers: Age of Ultron Tony Stark and Bruce Banner use what seems to be some kind of artificial intelligence bound in the Infinity Stone from Loki's scepter to refine a global peace A.I. that Tony delevoped, who then turns into the evil (or misguided?) Ultron who ultimately wants to eradicate humans from earth and strives for a new cybernetic population on earth.
But in fact during the course of the movie, Tony loads his other existing A.I, JARVIS, into the Vibranium-enhanced cybernetic body that Ultron devised for himself and enhances it with the Mind Stone from the scepter. Yet this time it turns indeed into the perfect being Vision that Ultron should have been all along, devoid of the inhuman attitudes of Ultron.
But I wonder what it is that makes Vision different from Ultron. What is it that gives Ultron his misguided character? Is it just a matter of JARVIS' longer and more humble experience as Tony's assistant? Or is it his lower complexity, does Ultron's larger power drive him mad or does Vision maybe not have as much free will and creativity as Ultron does? Or is it actually the Infinity Stone from the scepter that gives him an utterly evil spirit right away, as we have seen its disruptive effects on the mind in the first Avengers movie (but then again, Vision does employ that stone, too)? Or is it the partly organic body that gives Vision a human facet (yet, I'd doubt Ultron would suddenly have turned sane when put in there)? Why is it that Ultron is a spoiled kid trying to eradicate his creators while Vision seems to be the perfect mind in a perfect body (who's afterall worthy to rule Asgard)?