1. A computer-implemented method for generating stereoscopic content from a three-dimensional (3D) representation of a light field representing virtual or actual light rays from a scene, wherein the 3D representation is readable in electronic form, the method comprising: receiving a 3D representation of the light field; obtaining a reference image that is included in the 3D representation of the light field; receiving a goal disparity image that indicates a goal binocular disparity for one or more pixels of the reference image; generating a dual reference image by shifting the reference image using the goal disparity image; for each pixel of an output image corresponding to the reference image: determining a point within the light field that is a closest match for the goal binocular disparity of a corresponding pixel of the goal disparity image by optimizing an energy function that compares the dual reference image and the 3D representation of the light field wherein the energy function comprises a sum of a data term and a smoothness term, wherein the data term calculates a normed difference of the dual reference image and the light field; and generating, using the computer, a stereoscopic image pair comprising the reference image and the output image.