A team of physicists and mathematicians at the Institute for Basic Science's Center for Soft and Living Matter, in South Korea, working with a colleague from the University of Geneva, has developed an algorithm that can be used to find the shape of an object to cause it to roll down a ramp following a desired path.
Ah, you got me, yes that counts as written. Let me revise that to “fully automatic classical algorithm that generates photorealistic images”. Blender requires a lot of human input to work that well.