A computer implemented method of rendering an image of a virtual reality or augmented reality head mounted display (HMD) system that includes an image source configured to display an image for viewing by a user of the HMD system and an optical element having an optical geometry, wherein the optical element is positioned relative to the image source to reflect light projected from the image source of the HMD system to an eye of a user the HMD system, the method comprising:
- receive, by a processing device, data corresponding to the image for display by the HMD system;
- mapping, by the processing device, the image data to pixels of the image source to create an image having a distortion;
- rendering the mapped image data to the image source to project the image having the distortion, wherein the user of the HMD system perceives a virtual image corresponding to the distorted image that is substantially free of optical distortion.