A computer-implemented method for displaying content on an autostereoscopic display including lenticular lenses and/or parallax barriers, the method comprising: determining a tracked position of a user associated with viewing an emitting interface of a display device; generating, using the tracked position, a first mask representing a first set of values associated with the emitting interface of the display device; generating, using the tracked position, a second mask representing a second set of values associated with the emitting interface of the display device; and generating an output image using the first mask and the second mask, the generating of the output image including: obtaining a left image with a first set of pixels and a right image with a second set of pixels, assigning the first set of values to the first set of pixels in the left image and multiplying the first set of pixels in the left image by the assigned first set of values, assigning the second set of values to the second set of pixels in the right image and multiplying the second set of pixels in the right image by the assigned second set of values, and interleaving the left image with the right image according to the assigned first set of values and the assigned second set of values, wherein the interleaving comprises adding the results of the multiplying of the first set of pixels in the left image by the assigned first set of values and the multiplying of the second set of pixels in the right image by the assigned second set of values; the method being characterized in that generating the first mask and the second mask further comprises: determining positions in a plane, which is parallel to the emitting interface and located between the emitting interface and the user at a known distance from a plane of the emitting interface, based on the tracked position of the user and locations in the plane of the emitting interface, wherein the determined positions in the plane parallel to the emitting interface are interceptions of straight lines with that plane, the straight lines passing through the tracked position of the user and the locations in the plane of the emitting interface; and generating the first and the second set of values based on whether pixels at the locations of the emitting interface are visible from the determined positions. determining a tracked position of a user associated with viewing an emitting interface of a display device; generating, using the tracked position, a first mask representing a first set of values associated with the emitting interface of the display device; generating, using the tracked position, a second mask representing a second set of values associated with the emitting interface of the display device; and generating an output image using the first mask and the second mask, the generating of the output image including: obtaining a left image with a first set of pixels and a right image with a second set of pixels, assigning the first set of values to the first set of pixels in the left image and multiplying the first set of pixels in the left image by the assigned first set of values, assigning the second set of values to the second set of pixels in the right image and multiplying the second set of pixels in the right image by the assigned second set of values, and interleaving the left image with the right image according to the assigned first set of values and the assigned second set of values, wherein the interleaving comprises adding the results of the multiplying of the first set of pixels in the left image by the assigned first set of values and the multiplying of the second set of pixels in the right image by the assigned second set of values; obtaining a left image with a first set of pixels and a right image with a second set of pixels, assigning the first set of values to the first set of pixels in the left image and multiplying the first set of pixels in the left image by the assigned first set of values, assigning the second set of values to the second set of pixels in the right image and multiplying the second set of pixels in the right image by the assigned second set of values, and interleaving the left image with the right image according to the assigned first set of values and the assigned second set of values, wherein the interleaving comprises adding the results of the multiplying of the first set of pixels in the left image by the assigned first set of values and the multiplying of the second set of pixels in the right image by the assigned second set of values; determining positions in a plane, which is parallel to the emitting interface and located between the emitting interface and the user at a known distance from a plane of the emitting interface, based on the tracked position of the user and locations in the plane of the emitting interface, wherein the determined positions in the plane parallel to the emitting interface are interceptions of straight lines with that plane, the straight lines passing through the tracked position of the user and the locations in the plane of the emitting interface; and generating the first and the second set of values based on whether pixels at the locations of the emitting interface are visible from the determined positions.