An eccentric counter-culture novel is now a $140m blockbuster from the director of Magnolia and the star of Titanic. Will the risk pay off?