A method for transforming an image frame based on a position of pupils of a viewer, the method comprising: obtaining, by a computing device, a first image frame, wherein the first image frame corresponds to a first view perspective associated with a first position of the pupils of the viewer; determining, by the computing device, a second position of the pupils of the viewer, wherein the first position of the pupils and the second position of the pupils are determined with respect to a head position of the viewer, wherein the first position of the pupils is determined at a first point in time where a first set of pixels are to be displayed on a near-eye display device, wherein the second position of the pupils is determined at a second point in time where a second set of pixels (1203, 1204, 1205, 1206, 1207) are to be displayed on the near-eye display device; generating, by the computing device and based on the first image frame, a second image frame corresponding to a second view perspective associated with the second position of the pupils of the viewer, the generating comprising: shifting the first set of pixels of the second image frame by a first shift value calculated based on at least the second position of the pupils of the viewer, and shifting the second set of pixels of the second image frame by a second shift value calculated based on at least the second position of the pupils of the viewer, wherein the first set of pixels are provided on a first row of the near-eye display device and the second set of pixels are provided on a second row of the near-eye display device; and transmitting, by the computing device, the second image frame to the near-eye display device to be displayed on the near-eye display device. obtaining, by a computing device, a first image frame, wherein the first image frame corresponds to a first view perspective associated with a first position of the pupils of the viewer; determining, by the computing device, a second position of the pupils of the viewer, wherein the first position of the pupils and the second position of the pupils are determined with respect to a head position of the viewer, wherein the first position of the pupils is determined at a first point in time where a first set of pixels are to be displayed on a near-eye display device, wherein the second position of the pupils is determined at a second point in time where a second set of pixels (1203, 1204, 1205, 1206, 1207) are to be displayed on the near-eye display device; generating, by the computing device and based on the first image frame, a second image frame corresponding to a second view perspective associated with the second position of the pupils of the viewer, the generating comprising: shifting the first set of pixels of the second image frame by a first shift value calculated based on at least the second position of the pupils of the viewer, and shifting the second set of pixels of the second image frame by a second shift value calculated based on at least the second position of the pupils of the viewer, wherein the first set of pixels are provided on a first row of the near-eye display device and the second set of pixels are provided on a second row of the near-eye display device; and shifting the first set of pixels of the second image frame by a first shift value calculated based on at least the second position of the pupils of the viewer, and shifting the second set of pixels of the second image frame by a second shift value calculated based on at least the second position of the pupils of the viewer, wherein the first set of pixels are provided on a first row of the near-eye display device and the second set of pixels are provided on a second row of the near-eye display device; and transmitting, by the computing device, the second image frame to the near-eye display device to be displayed on the near-eye display device.