1. A computer-implemented method for generating stereoscopic images, the method comprising: obtaining image data comprising directions and depth values associated with pixels in an image; generating a first vertex based on the directions and depth values associated with the pixels of the image, wherein a direction and a depth value are associated with the first vertex, generating a second vertex based on the directions and depth values associated with the pixels of the image, wherein a direction and a depth value are associated with the second vertex, wherein the directions and depth values associated with the first vertex and the second vertex are relative to an origin, and wherein the origin is common to both the first vertex and the second vertex; generating a mesh, wherein generating the mesh comprises: displacing the first vertex from the origin in a direction associated with the first vertex by a distance representative of the depth value associated with the first vertex; and displacing the second vertex from the origin in a direction associated with the second vertex by a distance representative of the depth value associated with the second vertex; generating a first image of the mesh from a first perspective; and generating a second image of the mesh from a second perspective.