# Patent

## Title
Stabilization plane determination based on gaze location

## Abstract

Embodiments are described herein for determining a stabilization plane to reduce errors that occur when a homographic transformation is applied to a scene including 3D geometry and/or multiple non-coplanar planes. Such embodiments can be used, e.g., when displaying an image on a head mounted display (HMD) device, but are not limited thereto. In an embodiment, a rendered image is generated, a gaze location of a user is determined, and a stabilization plane, associated with a homographic transformation, is determined based on the determined gaze location. This can involve determining, based on the user's gaze location, variables of the homographic transformation that define the stabilization plane. The homographic transformation is applied to the rendered image to thereby generate an updated image, and at least a portion of the updated image is then displayed.

## Background
BACKGROUND
Augmented reality (AR) relates to providing an augmented real-world environment where the perception of a real-world environment (or data representing a real-world environment) is augmented or modified with computer-generated virtual data. For example, data representing a real-world environment may be captured in real-time using sensory input devices such as a camera or microphone and augmented with computer-generated virtual data including virtual images and virtual sounds. The virtual data may also include information related to the real-world environment such as a text description associated with a real-world object in the real-world environment. The objects within an AR environment may include real objects (i.e., objects that exist within a particular real-world environment) and virtual objects (i.e., objects that do not exist within the particular real-world environment).
In order to realistically integrate virtual objects into an AR environment, an AR system typically performs several tasks including mapping and localization. Mapping relates to the process of generating a map of a real-world environment. Localization relates to the process of locating a particular point of view or pose relative to the map of the real-world environment. In some cases, an AR system may localize the pose of a mobile device moving within a real-world environment in real-time in order to determine the particular pose associated with the mobile device that needs to be augmented as the mobile device moves within the real-world environment.
An AR environment may be provided to an end user (also referred to more generally as a user) of a mobile device using an electronic display (e.g., an LED display integrated with a head-mounted display device). The electronic display may display images of virtual objects to the end user by modulating light provided to the electronic display (e.g., a liquid crystal on silicon display) or by generating light within the electronic display (e.g., an OLED display).
In order to generate a realistic AR environment it is important to achieve low latency, which in part can be achieved by increasing a frame rate. For example, for an end user wearing a head mounted display (HMD) device, if too much time lapses between the time the end user's head turns away from a particular pose and the time an image of a virtual object is displayed based on the particular pose, then the virtual object will appear to drift away from its intended location within the AR environment. For example, the image may not appear to be aligned with an intended real-world location or object, which is undesirable.
SUMMARY
One way to increase the frame rate of an AR system beyond the frame rate for a core rendering pipeline of the AR system, as well as reduce latency, is to apply late stage graphical adjustments to rendered images in order to generate updated images for display. Such late stage graphical adjustments, which are described herein, can be performed using a homographic transformation that has an associated stabilization plane. Certain embodiments of the present technology relate to techniques for determining the stabilization plane to reduce and preferably minimize errors that occur when a homographic transformation is applied to a scene including 3D geometry and/or multiple non-coplanar planes (e.g., a close plane and a far plane).
More generally, technology is described for displaying an image on a display of a display device, such as a display of a head mounted display (HMD) device or some other see-through display device, but is not limited thereto. In an embodiment, a rendered image is generated. Additionally, a gaze location of a user is determined, and a stabilization plane, associated with a homographic transformation, is determined based on the determined gaze location. The homographic transformation is applied to the rendered image to thereby generate an updated image, and at least a portion of the updated image is then displayed on the display. In an embodiment, determining the stabilization plane can involve determining, based on the gaze location, variables of the homographic transformation that define the stabilization plane. For example, a variable specifying a depth of the stabilization plane can be made equal to the depth of the gaze location. For another example, a virtual object that is at or within a range of the gaze location can be identified, and the stabilization plane can be determined based on the identified virtual object. This can include determining a stabilization plane depth and a stabilization plane orientation based on a depth and an orientation of the identified virtual object.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 is a block diagram of one embodiment of a networked computing environment in which the disclosed technology may be practiced.
FIG. 2A depicts one embodiment of a mobile device in communication with a second mobile device.
FIG. 2B depicts one embodiment of a portion of an HMD.
FIG. 3A depicts one embodiment of a system for generating and displaying images associated with a virtual object at a frame rate that is greater than a rendering frame rate for a core rendering pipeline.
FIG. 3B depicts one embodiment of a display.
FIG. 3C depicts an alternative embodiment of a display.
FIG. 4A depicts one embodiment of a portion of a pre-rendered image and an updated image based on the pre-rendered image.
FIG. 4B depicts one embodiment of a pre-rendered image and sampling regions used for generating updated images (or target images).
FIG. 4C depicts one embodiment of the a pre-rendered image and the application of a rolling buffer to the pre-rendered image.
FIG. 5A depicts one embodiment of applying late stage graphical adjustments to a rendered image in order to generate updated images.
FIG. 5B depicts one embodiment of a display sequence associated with a display.
FIG. 5C depicts an alternative embodiment of a display sequence associated with a display.
FIG. 6A is a flowchart describing one embodiment of a method for generating and displaying images associated with virtual objects at a frame rate that is greater than a rendering frame rate.
FIG. 6B is a flowchart describing one embodiment of a method for making graphical adjustments to rendered images provided to a display using circuitry integrated with the display.
FIG. 7A is a flowchart describing an alternative embodiment of a method for generating and displaying images associated with virtual objects at a frame rate that is greater than a rendering frame rate.
FIG. 7B is a flowchart describing one embodiment of a process for generating a rendered image.
FIG. 8 is a flowchart describing an embodiment of a method for determining a stabilization plane based on a gaze location, and using the stabilization plane when generated an updated image to be displayed.
FIG. 9 depicts one embodiment for determining a stabilization plane based on a gaze location.
FIG. 10 depicts another embodiment for determining a stabilization plane based on a gaze location.
FIG. 11 is a block diagram of one embodiment of a mobile device, such as, but not limited to, an HMD device.



DETAILED DESCRIPTION
Technology is described for generating and displaying images associated with one or more virtual objects within an augmented reality (AR) environment at a frame rate that is greater than a rendering frame rate and for improving virtual object stability. The displayed images may include late stage graphical adjustments of pre-rendered scenes (i.e., forward predicted scenes that are rendered at the rendering frame rate) in order to incorporate higher frequency pose estimates. The rendering frame rate may correspond with the minimum time to render images associated with a pose of a head-mounted display device (HMD). In some embodiments, the HMD may determine a predicted pose associated with a future position and orientation of the HMD (e.g., a predicted pose of the HMD 10 ms or 20 ms in the future), generate a pre-rendered image based on the predicted pose, determine an updated pose associated with the HMD subsequent to generating the pre-rendered image or concurrent with the pre-rendered image being generated, generate an updated image based on the updated pose and the pre-rendered image, and display the updated image on the HMD. The updated image may be generated via a homographic transformation and/or a pixel offset adjustment of the pre-rendered image. In some cases, the updated image may be generated by circuitry within the display.
In some embodiments, the predicted pose may be determined based on a current position and orientation of the HMD and an acceleration and a velocity of the HMD immediately prior to determining the predicted pose (e.g., by extrapolating the predicted pose based on movement of the HMD 5 ms or 10 ms prior to determining the predicted pose). The updated pose may be determined based on updated pose information that is provided to a pose tracker at a higher frequency than the rendering frame rate. In one example, the updated pose information may be generated using a low-latency inertial measurement unit (IMU) or combination of IMU and camera-based pose tracking. The updated image may comprise an image rotation, translation, resizing (e.g., stretching or shrinking), shifting, or tilting of at least a portion of the pre-rendered image in order to correct for differences between the predicted pose and the updated pose (e.g., to compensate for an incorrect pose prediction when generating the pre-rendered image). The updated image may be generated via a homographic transformation of the pre-rendered image. In some cases, the homographic transformation may comprise an affine transformation. The updated image may be generated using a pixel offset adjustment or a combination of homographic transformations and pixel offset adjustments. In some cases, the homographic transformations and/or pixel offset adjustments may be generated downstream from the core rendering pipeline (e.g., using a controller or processor integrated with the display). In one embodiment, the pixel offset adjustments may be performed using a display that incorporates shift registers or other circuitry for allowing the shifting of pixel values within a pixel array of the display (e.g., similar to the operation of a charge-coupled device).
In some embodiments, the updated images comprising late stage graphical adjustments of forward predicted rendered images may be generated using various image reprojection techniques of varying computational complexity. The image reprojection techniques may include per pixel reprojection (e.g., where each pixel of a rendered image is reprojected based on an updated pose), multi-plane homography (e.g., where multiple rendered images associated with multiple planes within a 3D scene are used to generate the composite updated image), single plane homography (e.g., where a single rendered image associated with a single plane within a 3D scene is used to generate the updated image), affine homography, and pixel offset based adjustments. The 2D plane (or a set of one or more 2D planes) within a 3D scene may be determined based on which virtual objects the end user of an HMD has been focusing on within a particular period of time. In one example, eye tracking may be used to determine the most frequently viewed virtual objects within the particular period of time (e.g., within the previous 50 ms or 500 ms). In the case of a single plane, the single plane may be selected based on a depth of the most frequently viewed virtual object within the particular period of time (i.e., the single plane may be set based on the location of the most frequently viewed virtual object within the augmented reality environment). In the case of multiple planes, virtual objects within an augmented reality environment may be segmented into a plurality of groups based on proximity to the multiple planes; for example, a first virtual object may be mapped to a near plane if the near plane is the closest plane to the first virtual object and a second virtual object may be mapped to a far plane if the far plane is the closest plane to the second virtual object. A first rendered image may then be generated including the first virtual object based on the near plane and a second rendered image may be generated including the second virtual object based on the far plane.
In some embodiments, different graphical adjustments may be performed on different portions of a pre-rendered image in order to incorporate higher frequency pose estimates. In one example, a first homographic transformation associated with a first pose of an HMD at a first point in time may be applied to a first portion of the pre-rendered image (e.g., a top portion of the pre-rendered image) and a second homographic transformation associated with a second pose of the HMD at a second point in time subsequent to the first point in time may be applied to a second portion of the pre-rendered image different from the first portion (e.g., a bottom portion of the pre-rendered image). In the case of a scanning display or a progressive scanning display, the first homographic transformation may be applied to pixels associated with a first set of scan lines and the second homographic transformation may be applied to pixels associated with a second set of scan lines different from the first set of scan lines. In one embodiment, the first homographic transformation may be applied to a single first scan line and the second homographic transformation may be applied to a single second scan line (i.e., homographic transformations may be applied on a per scan line basis).
Some embodiments described below relate to determining a stabilization plane to reduce errors that occur when a homographic transformation is applied to a scene including 3D geometry and/or multiple non-coplanar planes. In some such embodiments, a rendered image is generated, a gaze location of a user is determined, and a stabilization plane, associated with a homographic transformation, is determined based on the determined gaze location. This can involve determining, based on the user's gaze location, variables of the homographic transformation that define the stabilization plane. The homographic transformation is applied to the rendered image to thereby generate an updated image, and at least a portion of the updated image is then displayed.
One issue with generating a realistic augmented reality environment relates to the latency or amount of time in which images of world-locked virtual objects corresponding with a particular pose of an HMD are displayed to an end user of the HMD. For example, if too much time lapses between the time the end user's head turns away from the particular pose and the time an image of a virtual object is displayed based on the particular pose, then the virtual object will appear to drift away from or jitter around its intended location within the augmented reality environment (i.e., the image may not appear to be aligned with an intended real-world location or object). Thus, there is a need to display correctly aligned images of virtual objects to an end user in order to improve virtual object stability and to improve the augmented reality experience.
FIG. 1 is a block diagram of one embodiment of a networked computing environment 100 in which the disclosed technology may be practiced. Networked computing environment 100 includes a plurality of computing devices interconnected through one or more networks 180. The one or more networks 180 allow a particular computing device to connect to and communicate with another computing device. The depicted computing devices include mobile device 11, mobile device 12, mobile device 19, and server 15. In some embodiments, the plurality of computing devices may include other computing devices not shown. In some embodiments, the plurality of computing devices may include more than or less than the number of computing devices shown in FIG. 1. The one or more networks 180 may include a secure network such as an enterprise private network, an unsecure network such as a wireless open network, a local area network (LAN), a wide area network (WAN), and the Internet. Each network of the one or more networks 180 may include hubs, bridges, routers, switches, and wired transmission media such as a wired network or direct-wired connection.
Server 15, which may comprise a supplemental information server or an application server, may allow a client to download information (e.g., text, audio, image, and video files) from the server or to perform a search query related to particular information stored on the server. In general, a “server” may include a hardware device that acts as the host in a client-server relationship or a software process that shares a resource with or performs work for one or more clients. Communication between computing devices in a client-server relationship may be initiated by a client sending a request to the server asking for access to a particular resource or for particular work to be performed. The server may subsequently perform the actions requested and send a response back to the client.
One embodiment of server 15 includes a network interface 155, processor 156, memory 157, and translator 158, all in communication with each other. Network interface 155 allows server 15 to connect to one or more networks 180. Network interface 155 may include a wireless network interface, a modem, and/or a wired network interface. Processor 156 allows server 15 to execute computer readable instructions stored in memory 157 in order to perform processes discussed herein. Translator 158 may include mapping logic for translating a first file of a first file format into a corresponding second file of a second file format (i.e., the second file may be a translated version of the first file). Translator 158 may be configured using file mapping instructions that provide instructions for mapping files of a first file format (or portions thereof) into corresponding files of a second file format.
One embodiment of mobile device 19 includes a network interface 145, processor 146, memory 147, camera 148, sensors 149, and display 150, all in communication with each other. Network interface 145 allows mobile device 19 to connect to one or more networks 180. Network interface 145 may include a wireless network interface, a modem, and/or a wired network interface. Processor 146 allows mobile device 19 to execute computer readable instructions stored in memory 147 in order to perform processes discussed herein. Camera 148 may capture color images and/or depth images of an environment. The mobile device 19 may include outward facing cameras that capture images of the environment and inward facing cameras that capture images of the end user of the mobile device. Sensors 149 may generate motion and/or orientation information associated with mobile device 19. In some cases, sensors 149 may comprise an inertial measurement unit (IMU). Display 150 may display digital images and/or videos. Display 150 may comprise a see-through display. Display 150 may comprise an LED or OLED display.
In some embodiments, various components of mobile device 19 including the network interface 145, processor 146, memory 147, camera 148, and sensors 149 may be integrated on a single chip substrate. In one example, the network interface 145, processor 146, memory 147, camera 148, and sensors 149 may be integrated as a system on a chip (SOC). In other embodiments, the network interface 145, processor 146, memory 147, camera 148, and sensors 149 may be integrated within a single package.
In some embodiments, mobile device 19 may provide a natural user interface (NUI) by employing camera 148, sensors 149, and gesture recognition software running on processor 146. With a natural user interface, a person's body parts and movements may be detected, interpreted, and used to control various aspects of a computing application. In one example, a computing device utilizing a natural user interface may infer the intent of a person interacting with the computing device (e.g., that the end user has performed a particular gesture in order to control the computing device).
Networked computing environment 100 may provide a cloud computing environment for one or more computing devices. Cloud computing refers to Internet-based computing, wherein shared resources, software, and/or information are provided to one or more computing devices on-demand via the Internet (or other global network). The term “cloud” is used as a metaphor for the Internet, based on the cloud drawings used in computer networking diagrams to depict the Internet as an abstraction of the underlying infrastructure it represents.
In one example, mobile device 19 comprises a head-mounted display (HMD) device that provides an augmented reality environment or a mixed reality environment to an end user of the HMD. An HMD device, which also be referred to herein simply as an HMD, may comprise a video see-through and/or an optical see-through system. An optical see-through HMD worn by an end user may allow actual direct viewing of a real-world environment (e.g., via transparent lenses) and may, at the same time, project images of a virtual object into the visual field of the end user thereby augmenting the real-world environment perceived by the end user with the virtual object.
Utilizing an HMD, an end user may move around a real-world environment (e.g., a living room) wearing the HMD and perceive views of the real-world overlaid with images of virtual objects. The virtual objects may appear to maintain coherent spatial relationship with the real-world environment (i.e., as the end user turns their head or moves within the real-world environment, the images displayed to the end user will change such that the virtual objects appear to exist within the real-world environment as perceived by the end user). The virtual objects may also appear fixed with respect to the end user's point of view (e.g., a virtual menu that always appears in the top right corner of the end user's point of view regardless of how the end user turns their head or moves within the real-world environment). In one embodiment, environmental mapping of the real-world environment may be performed by server 15 (i.e., on the server side) while camera localization may be performed on mobile device 19 (i.e., on the client side). The virtual objects may include a text description associated with a real-world object.
In some embodiments, a mobile device, such as mobile device 19, may be in communication with a server in the cloud, such as server 15, and may provide to the server location information (e.g., the location of the mobile device via GPS coordinates) and/or image information (e.g., information regarding objects detected within a field of view of the mobile device) associated with the mobile device. In response, the server may transmit to the mobile device one or more virtual objects based upon the location information and/or image information provided to the server. In one embodiment, the mobile device 19 may specify a particular file format for receiving the one or more virtual objects and server 15 may transmit to the mobile device 19 the one or more virtual objects embodied within a file of the particular file format.
In some embodiments, an HMD, such as mobile device 19, may use images of an environment captured from an outward facing camera in order to determine a six degree of freedom (6DOF) pose corresponding with the images relative to a 3D map of the environment. The 6DOF pose may comprise information associated with the position and orientation of the HMD within the environment. The 6DOF pose may be used for localizing the HMD and for generating images of virtual objects such that the virtual objects appear to exist at appropriate locations within the environment. More information regarding determining a 6DOF pose can be found, e.g., in U.S. patent application Ser. No. 13/152,220, “Distributed Asynchronous Localization and Mapping for Augmented Reality.” More information regarding performing pose estimation and/or localization for a mobile device can be found, e.g., in U.S. patent application Ser. No. 13/017,474, “Mobile Camera Localization Using Depth Maps.”
In some embodiments, an HMD, such as mobile device 19, may display images of virtual objects within an augmented reality (AR) environment at a frame rate that is greater than a rendering frame rate for the core rendering pipeline or rendering GPU. The HMD may modify pre-rendered images or forward predicted images that are rendered at the rendering frame rate based on updated pose estimates that are provided at a higher frequency than the rendering frame rate. In some embodiments, the HMD may generate the pre-rendered image based on a predicted pose at the rendering frame rate (e.g., every 16 ms), determine one or more updated poses associated with the HMD subsequent to generating the pre-rendered image (e.g., every 2 ms), generate one or more updated images based on the one or more updated poses and the pre-rendered image, and display the one or more updated images on the HMD. In some cases, the one or more updated images may be generated via homographic transformations and/or a pixel offset adjustments using circuitry within the display, such as display 150.
FIG. 2A depicts one embodiment of a mobile device 19 in communication with a second mobile device 5. Mobile device 19 may comprise a see-through HMD. As depicted, mobile device 19 communicates with mobile device 5 via a wired connection 6. However, the mobile device 19 may also communicate with mobile device 5 via a wireless connection. Mobile device 5 may be used by mobile device 19 in order to offload compute intensive processing tasks (e.g., the rendering of virtual objects) and to store virtual object information and other data that may be used to provide an augmented reality environment on mobile device 19. Mobile device 5 may also provide motion and/or orientation information associated with mobile device 5 to mobile device 19. In one example, the motion information may include a velocity or acceleration associated with the mobile device 5 and the orientation information may include Euler angles, which provide rotational information around a particular coordinate system or frame of reference. In some cases, mobile device 5 may include a motion and orientation sensor, such as an inertial measurement unit (IMU), in order to acquire motion and/or orientation information associated with mobile device 5.
FIG. 2B depicts one embodiment of a portion of an HMD, such as mobile device 19 in FIG. 1. Only the right side of an HMD 200 is depicted. HMD 200 includes right temple 202, nose bridge 204, eye glass 216, and eye glass frame 214. Right temple 202 includes a capture device 213 (e.g., a front facing camera and/or microphone) in communication with processing unit 236. The capture device 213 may include one or more cameras for recording digital images and/or videos and may transmit the visual recordings to processing unit 236. The one or more cameras may capture color information, IR information, and/or depth information. The capture device 213 may also include one or more microphones for recording sounds and may transmit the audio recordings to processing unit 236.
Right temple 202 also includes biometric sensor 220, eye tracking system 221, ear phones 230, motion and orientation sensor 238, GPS receiver 232, power supply 239, and wireless interface 237, all in communication with processing unit 236. Biometric sensor 220 may include one or more electrodes for determining a pulse or heart rate associated with an end user of HMD 200 and a temperature sensor for determining a body temperature associated with the end user of HMD 200. In one embodiment, biometric sensor 220 includes a pulse rate measuring sensor which presses against the temple of the end user. Motion and orientation sensor 238 may include a three axis magnetometer, a three axis gyro, and/or a three axis accelerometer. In one embodiment, the motion and orientation sensor 238 may comprise an inertial measurement unit (IMU). The GPS receiver may determine a GPS location associated with HMD 200. Processing unit 236 may include one or more processors and a memory for storing computer readable instructions to be executed on the one or more processors. The memory may also store other types of data to be executed on the one or more processors.
In one embodiment, the eye tracking system 221 may include one or more inward facing cameras. In another embodiment, the eye tracking system 221 may comprise an eye tracking illumination source and an associated eye tracking image sensor. In one embodiment, the eye tracking illumination source may include one or more infrared (IR) emitters such as an infrared light emitting diode (LED) or a laser (e.g. VCSEL) emitting about a predetermined IR wavelength or a range of wavelengths. In some embodiments, the eye tracking sensor may include an IR camera or an IR position sensitive detector (PSD) for tracking glint positions. More information about eye tracking systems can be found in U.S. Pat. No. 7,401,920, entitled “Head Mounted Eye Tracking and Display System”, issued Jul. 22, 2008, and U.S. patent application Ser. No. 13/245,700, entitled “Integrated Eye Tracking and Display System,” filed Sep. 26, 2011.
In one embodiment, eye glass 216 may comprise a see-through display, whereby images generated by processing unit 236 may be projected and/or displayed on the see-through display. The see-through display may display images of virtual objects by modulating light provided to the display, such as a liquid crystal on silicon (LCOS) display, or by generating light within the display, such as an OLED display. The capture device 213 may be calibrated such that a field of view captured by the capture device 213 corresponds with the field of view as seen by an end user of HMD 200. The ear phones 230 may be used to output sounds associated with the projected images of virtual objects. In some embodiments, HMD 200 may include two or more front facing cameras (e.g., one on each temple) in order to obtain depth from stereo information associated with the field of view captured by the front facing cameras. The two or more front facing cameras may also comprise 3D, IR, and/or RGB cameras. Depth information may also be acquired from a single camera utilizing depth from motion techniques. For example, two images may be acquired from the single camera associated with two different points in space at different points in time. Parallax calculations may then be performed given position information regarding the two different points in space.
In some embodiments, HMD 200 may perform gaze detection for each eye of an end user's eyes using gaze detection elements and a three-dimensional coordinate system in relation to one or more human eye elements such as a cornea center, a center of eyeball rotation, or a pupil center. Gaze detection may be used to identify where the end user is focusing within a field of view, and more specifically, to determine the gaze location of the end user. Examples of gaze detection elements may include glint generating illuminators and sensors for capturing data representing the generated glints. In some cases, the center of the cornea can be determined based on two glints using planar geometry. The center of the cornea links the pupil center and the center of rotation of the eyeball, which may be treated as a fixed location for determining an optical axis of the end user's eye at a certain gaze or viewing angle. Gaze detection may be performed, e.g., by the eye tracking system 221 described above with reference to FIG. 2B, but is not limited thereto. For example, it is also possible to estimate a gaze location based on a head position as determined by an IMU or other orientation sensor(s).
In one embodiment, the processing unit 236 may include a core rendering pipeline (e.g., comprising one or more graphical processing units) for generating pre-rendered images and a display associated with eye glass 216 may perform late stage graphical adjustments to the pre-rendered images based on later stage pose information associated with the HMD 200. As updated pose information may be provided at a higher frequency than a maximum rendering frame rate for the core rendering pipeline, the late stage graphical adjustments may be applied to the pre-rendered images at a frequency that is greater than the maximum rendering frame rate.
FIG. 3A depicts one embodiment of a system for generating and displaying images associated with a virtual object (or more than one virtual object) at a frame rate that is greater than a rendering frame rate for a core rendering pipeline. As depicted, rendering module 302 may generate a pre-rendered image corresponding with a particular pose of an HMD. The particular pose may be provided to the rendering module 302 by pose estimation module 312. The pose estimation module 312 may predict a future pose of the HMD based on movement history of the HMD. In some embodiments, the pose estimation module 312 may predict more than one future pose of the HMD (e.g., three possible future poses for the HMD) and the rendering module 302 may generate a plurality of pre-rendered images corresponding with the more than one future poses. When updated pose information becomes available, the closest pose (i.e., the best predicted pose) of the more than one future poses and the corresponding pre-rendered images for the closest pose may be used for generating updated images by applying late stage graphical adjustments to the corresponding pre-rendered images for the closest pose. In one embodiment, when updated pose information becomes available, instead of a pre-rendered image associated with the closest pose of the more than one future poses being selected, the updated images may be generated using images that are extrapolated and/or interpolated from the plurality of pre-rendered images corresponding with the more than one future poses.
In some cases, the pose estimation module 312 may determine a current pose of the HMD based on camera-based pose tracking information and/or a combination of camera-based pose tracking information and low-latency IMU motion information. The pose estimation module 312 may predict a future pose of the HMD by extrapolating previous movement of the HMD (e.g., the movement of the HMD 5 ms or 10 ms prior to determining the current pose).
A late stage reprojection (LSR) module 308 may perform late stage graphical adjustments to pre-rendered images generated by the rendering module 302 based on updated pose estimation information provided by the pose estimation module 312. In one embodiment, the rendering module 302 may generate pre-rendered images every 16 ms or every 32 ms and the LSR module 308 may generate adjusted images every 2 ms or every 4 ms (i.e., the LSR module 308 may provide images to the display 310 at a frame rate that is greater than the maximum rendering frame rate of the rendering module 302). As depicted, the LSR module 308 includes an image adjustment module 304 and a pixel adjustment module 306. The image adjustment module 304 may generate adjusted images by applying homographic transformations to the pre-rendered images (e.g., applying a single plane homography or a multi-plane homography). In one example, the image adjustment module 304 may apply an affine transformation to a pre-rendered image. The pixel adjustment module 306 may perform a two-dimensional pixel shifting of an image. The image that is pixel shifted by the pixel adjustment module 306 may comprise a portion of a pre-rendered image or a portion of an image generated by the image adjustment module 304. In some cases, the LSR module 308 may generate an adjusted image by applying a homographic transformation to a pre-rendered image and then applying a pixel offset adjustment to the image generated via the homographic transformation. The adjusted images generated by the LSR module 308 may be displayed on display 310. In one embodiment, the display 310 may comprise an OLED display.
In some embodiments, portions of the LSR module 308 may be integrated with the display 310. In one example, the pixel adjustment module 306 may be performed using shift registers or other circuitry within the display 310 for allowing the shifting of pixel values within a pixel array of the display 310. In another example, both the image adjustment module 304 and the pixel adjustment module 306 may be performed by a controller or processor integrated with the display 310.
FIG. 3B depicts one embodiment of display 310 in FIG. 3A. As depicted, the display includes a pixel array 320 driven by row drivers 322 and data line drivers 224. The pixel array 320 comprises a plurality of pixels 321. In one embodiment, each pixel 321 may comprise an OLED pixel. Each OLED pixel may comprise an OLED and a group of circuits for controlling the OLED. The row drivers 322 may drive row lines (or scan lines) for selecting a particular row of pixels within the pixel array 320 and for connecting data lines corresponding with the data line drivers 324 to pixels in the particular row of pixels. Each row line associated with the row drivers 322 may connect to latching TFTs within each pixel of the particular row of pixels. A latching TFT may isolate a storage capacitor from a particular data line of the data lines (e.g., a particular column data line connected to each pixel in a column of the pixel array). The storage capacitor may be used to store a voltage for biasing a gate of a second TFT that drives an OLED. The controller 326 may load pixel values into the pixel array 320 by controlling the row drivers 322 and the data line drivers 324. The controller 326 may access buffered images stored in buffer 328 and perform image adjustments prior to loading pixel values into the pixel array 320.
In one embodiment, controller 326 may perform a particular homographic transformation to an image (or a portion of an image) stored in buffer 328 and then load the adjusted image into the pixel array 320 for display. The controller 326 may also perform a pixel offset adjustment to an image stored in buffer 328 (e.g., by shifting the pixel values of the image by a first pixel offset in the X-direction and a second pixel offset in the Y-direction).
FIG. 3C depicts an alternative embodiment of display 310 in FIG. 3A. As depicted, the display includes a pixel array 330 driven by row drivers 322 and data line drivers 224. The pixel array 330 comprises a plurality of pixels 331. In one embodiment, each pixel 331 may comprise an OLED pixel. Each OLED pixel may comprise an OLED, a first group of circuits for controlling the OLED, and a second group of circuits for performing pixel shifting within the pixel array 330. The pixel array 330 may include pixel interconnections 333 between adjacent pixels for facilitating the shifting of pixel values within the pixel array. In one embodiment, latched data values may be shifted vertically (i.e., in the column direction) and/or horizontally (i.e., in the row direction) between adjacent pixels. In another embodiment, data values stored on a storage capacitor for a particular pixel may be used to drive one of a plurality OLEDs within the pixel array 330 (i.e., rather than physically shifting the latched data value, a multiplexor within each pixel may be used to select the correct latched data value to apply to its corresponding OLED).
The row drivers 322 may drive row lines (or scan lines) for selecting a particular row of pixels within the pixel array 330 and for connecting data lines corresponding with the data line drivers 324 to pixels in the particular row of pixels. Each row line associated with the row drivers 322 may connect to latching TFTs within each pixel of the particular row of pixels. A latching TFT may isolate a storage capacitor from a particular data line of the data lines (e.g., a particular column data line connected to pixels in a column of the pixel array). The storage capacitor may be used to store a voltage for biasing a second TFT that drives an OLED (e.g., for controlling the gate of the second TFT). In one embodiment, each pixel 331 may include a multiplexor for selecting one of a plurality of latched data values (each stored on a storage capacitor within the pixel array) for driving a TFT that drives the OLED for the pixel. In some cases, the multiplexor may allow for the shifting of displayed pixel values within the pixel array 330 by a first pixel offset in the X-direction and a second pixel offset in the Y-direction. The controller 332 may load pixel values into the pixel array 330 by controlling the row drivers 322 and the data line drivers 324. The controller 332 may perform image adjustments prior to loading pixel values into the pixel array 330. The controller 332 may include a memory buffer for buffering image information provided to the display 310.
In one embodiment, controller 332 may perform a particular homographic transformation to an image then load pixel values associated with the image into the pixel array 330. The controller may subsequently perform a pixel offset adjustment by shifting the pixel values within the pixel array 331. In one example, latched data values within each pixel may be physically shifted vertically (i.e., in the column direction) and/or horizontally (i.e., in the row direction) within the pixel array via pixel interconnections 333. In another example, latched data values may be used to drive one of a plurality OLEDs within the pixel array 330 by incorporating a multiplexor within each pixel 331 of the pixel array 330. In some cases, the pixel array 330 may utilize a CMOS backplane. In other cases, the pixel array 330 may utilize a CCD backplane.
FIG. 4A depicts one embodiment of a portion of a pre-rendered image 412 and an updated image 414 based on the pre-rendered image 412. As depicted, the pre-rendered image 412 may be rendered based on an initial pose estimate for an HMD (e.g., a predicted pose of the HMD 8 ms or 16 ms into the future). The initial pose estimate may be determined based on a current position and orientation of the HMD and an acceleration and a velocity of the HMD immediately prior to determining the initial pose estimate. The pre-rendered image 412 may comprise a rendered image based on the initial pose estimate and may be rendered using a GPU or other rendering system that has the ability to render a three-dimensional scene into a two-dimensional image given a particular pose. The updated pose estimate may be determined based on updated pose information that is acquired at a point in time subsequent to the determination of the initial pose estimate. In one example, the updated pose information may be generated based on camera-based pose tracking information and/or a combination of camera-based pose tracking information and low-latency IMU motion information corresponding with the HMD.
In some embodiments, the updated image 414 may be generated by applying an image transformation to the pre-rendered image 412 based on a pose difference between the updated pose estimate and the initial pose estimate. In one example, the image transformation may comprise an image rotation, translation, resizing (e.g., stretching or shrinking), shifting, or tilting of at least a portion of the pre-rendered image 412. The updated image 414 may be generated via a homographic transformation of the pre-rendered image 412. In some cases, the homographic transformation may comprise a multi-plane homography, a single plane homography, and/or an affine homography.
In some embodiments, the updated image 414 may be generated by applying a pixel offset adjustment to the pre-rendered image 402. The degree of the pixel offset adjustment may depend on a difference between the updated pose estimate and the initial pose estimate. As depicted, an image 413 of a virtual object (i.e., a virtual cylinder) has been pixel shifted in both the X-dimension and the Y-dimension (e.g., by 4 pixels to the left and by 3 pixels up). In one embodiment, the updated image 414 may be generated using a pixel offset adjustment or a combination of homographic transformations and pixel offset adjustments. The homographic transformations and/or pixel offset adjustments may be generated using a controller or processor integrated with a display. In some cases, the pixel offset adjustments may be performed using a display that incorporates shift registers or other circuitry for allowing the shifting of pixel values within a pixel array of the display.
FIG. 4B depicts one embodiment of a pre-rendered image 422 and sampling regions 424 and 426 used for generating updated images (or target images) based on portions of the pre-rendered image 422. As depicted, pre-rendered image 422 includes an image of a virtual object 421 (i.e., a virtual cylinder). In one embodiment, the sampling region 424 may correspond with a first homographic transformation for generating a first updated image and the sampling region 426 may correspond with a second homographic transformation for generating a second updated image. A homographic transformation may comprise a weighted mapping between pixels (or points) within the pre-rendered image (i.e., the source image or source frame) and points within an updated image (i.e., the target image or target frame). The four corners of a sampling region may correspond with the four corners of a corresponding updated image. In one embodiment, the quadrilateral region associated with sampling region 424 (i.e., a first subset of points within the source image) may be mapped to a second quadrilateral region associated with an updated image (i.e., a second subset of points within the target image). In some cases, the sampling region 424 may derive from a portion of an image within a frame buffer of a core rendering pipeline or rendering GPU. In the case of affine homography, points within a first parallelogram region within a source image may be mapped to points within a second parallelogram region within a target image (or to the entire target image comprising a rectangular region).
As depicted, a source image may be larger than a corresponding target image. The source image may be over-rendered to account for potential head movements beyond a current point of view or pose. In one example, the source image may comprise an image that is 1920 pixels by 1080 pixels and the target image may comprise an image that is 1366 pixels by 768 pixels. Assuming a one to one mapping, the sampling regions 424 and 426 may both comprise images that are 1366 pixels by 768 pixels. In some embodiments, each pixel within the target image may correspond with a weighted mapping of four or more pixels within the source image. The mapping of source pixels from a sampling region of the source image into target pixels of a target image may include bilinear filtering (or other texture filtering) of the source pixels. In some cases, a distortion correction mapping may be applied to the source image prior to applying a homographic transformation.
In one embodiment, the sampling region 424 (and first homographic transformation) may be associated with a first pose (or a first predicted pose) of an HMD at a first point in time and the sampling region 426 (and second homographic transformation) may be associated with a second pose (or a second predicted pose) of the HMD at a second point in time subsequent to the first point in time (e.g., 2 ms or 4 ms after the first point in time). In one example, the first predicted pose may correspond with a predicted pose that is 4 ms into the future and the second predicted pose may correspond with a predicted pose that is 8 ms into the future. A first updated image corresponding with the first homographic transformation may be displayed prior to a second updated image corresponding with the second homographic transformation being display. The first updated image may be displayed while the second updated image is being generated.
In one embodiment, the sampling region 424 in FIG. 4B may correspond with a first homographic transformation for generating a first portion of a target image (e.g., a top portion of the target image) and the sampling region 426 in FIG. 4B may correspond with a second homographic transformation for generating a second portion of the target image (e.g., a bottom portion of the target image).
FIG. 4C depicts one embodiment of the pre-rendered image 422 of FIG. 4B wherein a rolling buffer 432 (e.g., spanning a particular number of rows or scan lines) is applied to the pre-rendered image 422. In some cases, the pre-rendered image 422 may comprise a plurality of segments (e.g., each spanning 10 rows) and the rolling buffer 432 may correspond with one of the plurality of segments at a particular point in time (e.g., the rolling buffer 432 may move between each of the plurality of segments in a top to bottom sequence). The rolling buffer 432 may determine the source pixels within the pre-rendered image 422 that may be operated on at a particular point in time. In some cases, a homographic transformation may apply to a subset of the source pixels within the rolling buffer 432 (e.g., corresponding with the overlap of the sampling region 424 of FIG. 4B and the source image rows pointed to by the rolling buffer 432).
The concept of applying a rolling buffer to a source image may also be applied to the target image. In some embodiments, a homographic transformation may correspond with a subset of target pixels within the target image. For example, a rolling buffer may be applied to the target image such that a homography (or other image transformation) is applied to the subset of target pixels. The subset of target pixels may correspond with a set of scan lines within the target image (e.g., the subset of target pixels comprises pixels spanning 20 rows of the target image). In this case of a scanning display, image reprojection techniques may be applied to pixels that will be updated within a particular time period (e.g., a homographic transformation need only apply to those pixels within the target image that will be displayed or updated within the next 2 ms).
FIG. 5A depicts one embodiment of applying late stage graphical adjustments to a rendered image in order to generate updated images. The updated image may be displayed using an HMD. As depicted, a rendered image (Image X) is available by time T2. The overall time for rendering the rendered image may be, for example, 16 ms, 30 ms, or 60 ms depending on the core rendering pipeline for generated the rendered image. Prior to the rendered image becoming available at time T2, a pose estimate (P1) may be initiated at time T1 and used to generate an updated image (Image A) by time T2 based on the rendered image. The updated image (Image A) may be displayed between times T2 and T6 using a display of the HMD. In one embodiment, the pose estimate (P1) may correspond with a predicted pose of an HMD at time T4 (or another point in time during which an image is projected using the HMD). In some embodiments, the time for the predicted pose may correspond with a middle display time for the display of the updated image (Image A) derived from the rendered image (Image X). The middle display time for the display of the updated image may correspond with the center photon of the projection or the midpoint of the projection time. At time T5, a second pose estimate (P2) may be initiated and used to generate a second updated image (Image B) by time T6. The second updated image (Image B) may be displayed beginning at time T6.
In one example, a display may display updated images every 4 ms (i.e., the time between T2 and T6 may be 4 ms). Prior to the rendered image (Image X) becoming available, a predicted pose corresponding with a middle display time for an updated image may be determined. As the predicted pose is initiated at time T1 and the updated image will be displayed for 4 ms, the predicted pose may correspond with a predicted pose 3 ms into the future from time T1. One reason for forward predicting to the middle display time is that error due to display latency may be minimized or centered around the middle display time.
In one embodiment, a display may comprise a field-sequential color display and the updated image (Image A) may correspond with a first color field (e.g., a red image) and the second updated image (Image B) may correspond with a second color field (e.g., a green image). In this case, the pose estimate (P1) may be used for generating the updated image (Image A) associated with the first color field and the second pose estimate (P2) may be used for generating the second updated image (Image B) associated with the second color field. In some cases, the updated image (Image A) may be generated using a pixel offset adjustment of the rendered image (Image X) and the second updated image (Image B) may be generated using a homographic transformation of the rendered image (Image X) and/or a second pixel offset adjustment of the rendered image (Image X). The field-sequential color display may comprise, for example, an OLED display or an LCOS display.
In one embodiment, a display may comprise a LCOS display that is driven in a unipolar fashion, wherein a driving voltage may be reversed during image projection to prevent liquid crystal degradation. As each color field projection may correspond with both a positive projection (e.g., the first 2 ms of an image projection) and a negative projection (e.g., the last 2 ms of the image projection), a first updated image may be projected during the positive projection and a second updated image may be projected during the negative projection, thereby effectively doubling the display frame rate. In some cases, the first updated image may be generated via a first pixel offset adjustment by circuitry integrated with the LCOS display and the second updated image may be generated via a second pixel offset adjustment by circuitry integrated with the LCOS display.
FIG. 5B depicts one embodiment of a display sequence associated with a display. The display sequence may correspond with a field-sequential color display or a non-field-sequential color display. In one embodiment, images associated with each color field of the red, green, and blue color fields may be loaded into the display at different points in time. For example, a first image (Load R) associated with the red color field may be loaded into the display between times T0 and T1, a second image (Load G) associated with the green color field may be loaded into the display between times T1 and T2, and a third image (Load B) associated with the blue color field may be loaded into the display between times T2 and T3. As the second image (Load G) is being loaded into the display, a red-homographic image (R-H) corresponding with a homographic transformation of the first image and a blue-pixel-adjusted image (B-P2) corresponding with a second pixel offset adjustment of a previously loaded blue image may be displayed on the display. As the third image (Load B) is being loaded into the display, a green-homographic image (G-H) corresponding with a homographic transformation of the second image and a red-pixel-adjusted image (R-P1) corresponding with a first pixel offset adjustment of the red-homographic image (R-H) may be displayed on the display. Between times T3 and T4, a blue-homographic image (B-H) corresponding with a homographic transformation of the third image may be displayed while a red-pixel-adjusted image (R-P2) corresponding with a second pixel offset adjustment of the red-homographic image (R-H) and a green-pixel-adjusted image (G-P1) corresponding with a first pixel offset adjustment of the green-homographic image (G-H) are displayed. Between times T4 and T5, as the next red color field image is being loaded into the display, a green-pixel-adjusted image (G-P2) corresponding with a second pixel offset adjustment of the green-homographic image (G-H) and a blue-pixel-adjusted image (B-P1) corresponding with a first pixel offset adjustment of the blue-homographic image (B-H) are displayed. In some cases, the display may comprise an OLED display and the time between times T1 and T5 may comprise roughly 8 ms. This embodiment advantageously reduces color separation artifacts when a field-sequential color display is used.
In one embodiment, the homographic transformations to the loaded color images and any pixel offset adjustments to displayed images may be performed by circuitry within the display. In another embodiment, the homographic transformations to the color images and any pixel offset adjustments to displayed images may be performed by a host device and transmitted to the display.
FIG. 5C depicts an alternative embodiment of a display sequence associated with a display. The display sequence may correspond with a field-sequential color display or a non-field-sequential color display. In one embodiment, images associated with each color field of the red, green, and blue color fields may be loaded into the display at different points in time. For example, a first image (R-L) associated with the red color field may be loaded into the display between times T0 and T1, a second image (G-L) associated with the green color field may be loaded into the display between times T1 and T2, and a third image (B-L) associated with the blue color field may be loaded into the display between times T2 and T3. As the second image (G-L) is being loaded into the display, a red-homographic image (R-H) corresponding with a homographic transformation of the first image, a blue-pixel-adjusted image (B-P2) corresponding with a second pixel offset adjustment of a previously loaded blue image, and a green-pixel-adjusted image (G-P3) corresponding with a third pixel offset adjustment of a previously loaded green image may be displayed on the display (i.e., the G-P3 image may be displayed while the G-L image is loaded into the display). As the third image (B-L) is being loaded into the display, a green-homographic image (G-H) corresponding with a homographic transformation of the second image, a red-pixel-adjusted image (R-P1) corresponding with a first pixel offset adjustment of the red-homographic image (R-H), and a blue-pixel-adjusted image (B-P3) corresponding with a third pixel offset adjustment of a previously loaded blue image may be displayed on the display (i.e., the B-P3 image may be displayed while the B-L image is loaded into the display). Between times T3 and T4, a blue-homographic image (B-H) corresponding with a homographic transformation of the third image may be displayed while a red-pixel-adjusted image (R-P2) corresponding with a second pixel offset adjustment of the red-homographic image (R-H) and a green-pixel-adjusted image (G-P1) corresponding with a first pixel offset adjustment of the green-homographic image (G-H) are displayed. Between times T4 and T5, as the next red color field image is being loaded into the display, a green-pixel-adjusted image (G-P2) corresponding with a second pixel offset adjustment of the green-homographic image (G-H), a blue-pixel-adjusted image (B-P1) corresponding with a first pixel offset adjustment of the blue-homographic image (B-H), and a red-pixel-adjusted image (R-P3) corresponding with a third pixel offset adjustment of a previously loaded red image may be displayed on the display (i.e., the R-P3 image may be displayed while the next red image is loaded into the display). In some cases, the display may comprise an OLED display with an image buffer for allowing new images to be loaded while displaying other images and the time between times T1 and T5 may comprise roughly 8 ms.
In one embodiment, the homographic transformations to the loaded color images and any pixel offset adjustments to displayed images may be performed by circuitry within the display. In another embodiment, the homographic transformations to the color images and any pixel offset adjustments to displayed images may be performed by a host device and transmitted to the display.
FIG. 6A is a flowchart describing one embodiment of a method for generating and displaying images associated with virtual objects at a frame rate that is greater than a rendering frame rate. In one embodiment, the process of FIG. 6A may be performed by an HMD, such as mobile device 19 in FIG. 1.
In step 602, a pose history associated with an HMD is acquired. The pose history may comprise positions, orientations, and movements of the HMD overtime. In step 604, a current pose of the HMD is determined. The current pose may be determined using camera-based pose tracking. In step 606, a predicted pose of the HMD is determined based on the current pose and the pose history. The predicted pose may correspond with a first point in time (e.g., 8 ms or 16 ms in the future from when the current pose was determined).
In step 608, a rendered image is generated based on the predicted pose. The rendered image may be rendered using a GPU or other rendering system that has the ability to render a three-dimensional scene into a two-dimensional image given the predicted pose. In step 610, an updated pose of the HMD is determined corresponding with the first point in time. The updated pose may be determined using camera-based pose tracking information and/or a combination of camera-based pose tracking information and low-latency IMU motion information.
In step 612, a pose difference between the predicted pose and the updated pose is determined. The pose difference may determine a degree of graphical adjustment to be applied to a portion of the rendered image in order to compensate for an incorrect pose prediction when generating the rendered image.
In step 614, an updated image is generated based on the pose difference. The updated image may be generated via a homographic transformation of a portion of the rendered image. In some cases, the homographic transformation may comprise an affine transformation. The updated image may also be generated using a pixel offset adjustment or a combination of homographic transformations and pixel offset adjustments. In some cases, the homographic transformations and/or pixel offset adjustments may be generated using a controller or processor integrated with a display of the HMD. In one embodiment, the pixel offset adjustments may be performed using a display of the HMD that incorporates shift registers or other circuitry for allowing the shifting of pixel values within a pixel array of the display. In step 616, the updated image is displayed on the HMD. The updated image may be displayed using an OLED display integrated with the HMD.
FIG. 6B is a flowchart describing one embodiment of a method for making graphical adjustments to rendered images provided to a display using circuitry integrated with the display. In one embodiment, the process of FIG. 6B may be performed by a display, such as display 150 in FIG. 1.
In step 632, an image is acquired from a host. The host may comprise a core rendering pipeline for generating images of virtual objects. In step 634, a first updated image is generated by applying a homographic transformation to the image. The homographic transformation may comprise an affine transformation. In step 636, the first updated image is loaded into a pixel array of a display. The display may comprise an OLED display. In step 638, the first updated image may be displayed using the display.
In step 640, a second updated image may be generated by shifting the first updated image within the pixel array. In one embodiment, latched data values within the pixel array may be shifted vertically (i.e., in the column direction) and/or horizontally (i.e., in the row direction) between adjacent pixels. In another embodiment, data values stored within the pixel array may drive one of a plurality LEDs within the pixel array (i.e., rather than physically shifting the latched data value, a multiplexor within each pixel may be used to select the correct latched data value to apply to its corresponding LED). In step 642, the second updated image is displayed on the display.
FIG. 7A is a flowchart describing an alternative embodiment of a method for generating and displaying images associated with virtual objects at a frame rate that is greater than a rendering frame rate. In one embodiment, the process of FIG. 7A may be performed by an HMD, such as mobile device 19 in FIG. 1.
In step 702, a first predicted pose associated with an HMD is determined. The first predicted pose of the HMD may be determined based on a pose history of the HMD and may correspond with a future point in time during which an image based on the first predicted pose may be displayed or projected using a display of the HMD. In step 704, a rendered image is generated based on the first predicted pose. The rendered image may be rendered using a GPU or other rendering system that has the ability to render a three-dimensional scene into a two-dimensional image given the first predicted pose. In some cases, the rendering system may take 30 ms or 60 ms to render the rendered image. Each rendered image generated by the rendering system may be associated with metadata identifying a particular pose from which the rendered image was generated. One embodiment of a process for generating a rendered image is described later in reference to FIG. 7B.
In step 706, a second predicted pose of the HMD is determined. The second predicted pose may comprise an updated pose (e.g., an updated pose estimate based on updated position and motion information of the HMD not available prior to determining the first predicted pose). In some cases, the second predicted pose may be determined by extrapolating camera-based pose tracking information and/or a combination of camera-based pose tracking information and low-latency IMU motion information.
In some embodiments, the second predicted pose may correspond with a middle display time for the display of an updated image derived from the rendered image. The middle display time of an updated image may correspond with the center photon of the projection of the updated image or the midpoint of the projection time of the updated image.
In step 708, a pose difference between the first predicted pose and the second predicted pose is determined. The pose difference may determine a degree of graphical adjustment to be applied to a portion of the rendered image in order to compensate for an incorrect pose prediction when generating the rendered image. In some embodiments, if the pose difference is below a difference threshold, then a subsequent graphical adjustment may comprise a pixel offset adjustment. If the pose difference is greater than or equal to the difference threshold, then the subsequent graphical adjustment may comprise a homography.
In step 710, an updated image is generated based on the pose difference and at least a portion of the rendered image. The updated image may be generated via a homographic transformation of a portion of the rendered image. In some cases, the homographic transformation may comprise a multi-plane homography, a single plane homography, and/or an affine homography. The updated image may also be generated using a pixel offset adjustment or a combination of homographic transformations and pixel offset adjustments. In some cases, the homographic transformations and/or pixel offset adjustments may be generated using a controller or processor integrated with a display of the HMD or using custom circuitry integrated within the display. In one embodiment, the pixel offset adjustments may be performed using a display of the HMD that incorporates shift registers or other circuitry for allowing the shifting of pixel values within a pixel array of the display. In step 712, the updated image is displayed on the HMD. The updated image may be displayed using an OLED display or an LCOS display integrated with the HMD.
FIG. 7B is a flowchart describing one embodiment of a process for generating a rendered image. The process described in FIG. 7B is one example of a process for implementing step 704 in FIG. 7A. In one embodiment, the process of FIG. 7B may be performed by an HMD, such as mobile device 19 in FIG. 1.
In step 722, a predicted pose of an HMD is acquired. The predicted pose may be acquired by querying a pose estimation module, such as pose estimation module 312 in FIG. 3A. In step 724, a virtual object being focused on by an end user of the HMD is identified. In one embodiment, eye tracking may be used to determine a set of viewed virtual objects focused on by the end user within a particular period of time. The virtual object may be identified as the most frequently viewed virtual object of the sets of viewed virtual objects. The virtual object may be associated with a depth or distance from the HMD.
In step 726, a stabilization plane is determined based on a location of the virtual object within an augmented reality environment. The stabilization plane may coincide with the location of the virtual object within the augmented reality environment. In this case, stabilization planes (and corresponding rendered images) may be determined on-the-fly as the end user shifts their focus among virtual objects within the augmented reality environment over time (i.e., the location of the stabilization plane within the augmented reality environment may shift based on the location of the most frequently viewed virtual object within the augmented reality environment during a particular period of time). In step 728, a rendered image is generated based on the predicted pose and the stabilization plane. The rendered image may comprise a two-dimensional image within the stabilization plane. In step 730, the rendered image is outputted.
Additional details of how to determine a stabilization plane, and alternative techniques for determining a stabilization plane, are described below. However, before beginning this description, it is first useful to further explain the term stabilization plane, as well as further describe how a stabilization plane can be used when a performing homographic transformation.
A homographic transformation is performed using a homographic transform, which is also known as a homography. A homographic transform is a projective transform that describes how points in a planar image created from one viewpoint appear when viewed from another viewpoint, wherein each viewpoint includes an orientation and a position. If the scene being rendered is a single plane (including only one or more flat 2D objects in the single plane), then a homographic transform works without error. However, when applied to a scene including 3D geometry, or to a scene including multiple non-coplanar planes (e.g., a close plane and a far plane), there will be at least some errors resulting from the transform. For example, when a homographic transform is applied to a rendered bitmap of a scene including 3D geometry (instead of to the original 3D geometry used to render the bitmap of the scene including 3D geometry), there will only be a single plane in the rendered bitmap of the scene that will be transformed correctly, i.e., without errors. This single plane, which will be transformed correctly, is referred to herein as the stabilization plane. In other words, the stabilization plane is defined as the single plane in a scene including 3D geometry that is correctly transformed (with no error) when applying a projective transform to a rendered bitmap of the scene including 3D geometry, instead of to the original scene geometry.
As mentioned above, a stabilization plane can be determined based on a location of a virtual object within an augmented reality environment, and more specifically, based on a location of the virtual object on which the ender user is focusing, which is especially useful where a scene include multiple different virtual object upon which the end user may choose to focus. Some additional details of how to do this, as well as alternative techniques for determining a stabilization plane, shall now be described.
A stabilization plane can include both a depth and an orientation, wherein the orientation need not be parallel to a view plane (wherein the view plane is always parallel to the plane of the display). Accordingly, a stabilization plane can be defined by a distance from a camera position to the stabilization plane (which is indicative of the depth) and a normal vector to the stabilization plane (which is indicative of the orientation). For example, the following equation is an example of a homography (H) that uses a stabilization plane:

H=K2*R2*(I*((c2−c1)*n′)/d1)*R1′*inv(K1)

where:

    
    
        K is a camera calibration matrix (converts from image to camera coordinates);
        R is the rotation associate with the camera position;
        c is the camera position in world coordinates;
        n is the normal vector to the stabilization plane;
        d is the distance from the camera position to the stabilization plane;
        I (i.e., capital “i”) is the identity matrix;
        the single quote indicates matrix transposition;
        inv( ) denotes an inverter matrix; and
        numerical suffixes denote initial viewpoint vs. final viewpoint, e.g., c1 and c2.
    
    


In the above exemplary homography equation, the variables “n” and “d” are dependent on the stabilization plane that is selected, or more generally, determined. More specifically, for the above exemplary homography equation, the variables “n” and “d” correspond to the stabilization plane, with the variable “d” specifying the depth of the stabilization plane, and the variable “n” specifying a vector that is normal (i.e., perpendicular) to the stabilization plane. Other homographic transforms may similarly have variables that depend on a stabilization plane. Accordingly, the above homography equation is just one example, which is not meant to be limiting.
The flowchart of FIG. 8 will now be used to further describe methods for determining a stabilization plane and using the stabilization plane when generating an updated image for display that is based on and a pre-rendered image. Referring to FIG. 8, at step 802, an image is rendered. The image rendered at step 802 can be, e.g., a forward predicted rendered image, but is not limited thereto. At step 804, a gaze location of a user is determined. Step 804 can be achieved by using an eye tracker (e.g., the eye tracker 221) to perform eye tracking to determine the gaze location of the user. It is also possible that step 804 be performed without an eye tracker 221, and more generally, without performing eye tracking. In an embodiment, step 804 can be accomplished by performing head tracking, e.g., using an inertial measurement unit (IMU) or other orientation sensor(s), to determine a head position of the user. The gaze location can then be estimated based on the user's head position. For a more specific example, based on a user's head position, there can be a determination that a user is focused on a particular virtual object being displayed, and the gaze location can be estimated to be at the center of (or some other portion of) the virtual object on which the user is focused.
Still referring to FIG. 8, at step 806, based on the determined gaze location, there is a determination of a stabilization plane associated with a homographic transformation. Additional details of step 806, according to various embodiments, are described below. At step 808, the homographic transformation is applied to the rendered image (that was rendered at step 802) to thereby generate an updated image. The homographic transformation may comprise a multi-plane homography, a single plane homography, and/or an affine homography, but is not limited thereto. At step 810, at least a portion of the updated image is displayed on an HMD device or some other display device that includes a see-through display. It is also possible that the updated image is displayed a non-see-through type of display.
In accordance with an embodiment, step 806 involves determining, based on the determined gaze location, variables of the homographic transformation that define the stabilization plane. For an example, step 806 may involve determining the variables “n” and “d” of the exemplary homography equation discussed above. In certain embodiments, the depth of a stabilization plane can be determined to be equal to the depth of the gaze location. Such a determination need not take in account the virtual object, if any, on which the user is focused. Alternatively, an eye tracker (e.g., 221) and/or head tracker can be used to identifying a virtual object that is at (or within a range) of the user's gaze location, and the stabilization plane can be determined based on the identified virtual object. Examples of how this may be done are discussed below.
When the identified virtual object is a planar two-dimensional virtual object (e.g., a virtual sheet of paper hanging on a virtual wall), then the stabilization plane depth and the stabilization plane orientation can be determined to be to be equal the depth and the orientation, respectively, of the identified planar two-dimensional virtual object. FIG. 9 illustrates an example of a virtual sheet of paper 902 hanging on a virtual wall. Also shown in FIG. 9 is an exemplary stabilization plane 904 that can be determined in response to detecting that the user is gazing at or focuses on the virtual sheet of paper 902.
The identified virtual object, at which the user is gazing or focused, can alternatively be an elongated three-dimensional virtual object, such as the virtual train 1002 shown in FIG. 10. In accordance with an embodiment, when this is the case, the stabilization plane depth and the stabilization plane orientation can be determined to be equal to a depth and an orientation, respectively, of a plane that bisects a center of the identified elongated three-dimensional vertical object along its elongated length. Also shown in FIG. 10 is an exemplary stabilization plane 1004 that can be determined in response to detecting that the user is gazing at or focuses on the virtual train 1002.
The identified virtual object, at which the user is gazing or focused, can alternatively be an object that is substantially non-planar, such as a virtual ball. In accordance with an embodiment, when this is the case, the stabilization plane depth can be determined to be equal to a depth of a center of the virtual object (e.g., the virtual ball), and the stabilization plane orientation can be determined to be parallel to the view plane, and thus, parallel to the display. Explained another way, where the virtual object at which the user is gazing or focused is a substantially non-planar virtual object, then the stabilization plane can be determined to be the plane that bisects the center of the substantially non-planar virtual object and is parallel to the view plane.
It is also within the scope of an embodiment to select the stabilization plane as the plane that bisects the center of a virtual object (at which a user is gazing or focused) and is parallel to the view plane, where the virtual object has one or more planar surfaces. However, this would likely result in more transformation errors than would occur compared if the embodiments described with reference to FIGS. 9 and 10 were performed. Further, it is noted that one of ordinary skill in the art reading this description would appreciate that other techniques for determining a stabilization plane, based on a gaze location, are within the scope of an embodiment of the present technology.
In another embodiment, if the user is gazing at a specific three-dimensional virtual object having a camera-facing surface that is more prominently viewable than any other surface of the virtual object, then the stabilization plane can be determined based on the most prominently viewable surface. For example, the stabilization plane can be determined to be co-planar, or as co-planar as possible, with the most prominently viewable surface. Alternatively, the stabilization plane can be determined based on a plurality (all or some) of the viewable surfaces of the virtual object at which the user is gazing, e.g., by weighting each viewable surface's influence on the stabilization plane based on how viewable the surface is when displayed. For example, the more viewable the surface, the more it is weighted, and vice versa.
If there are multiple virtual objects being displayed at the same time, and the user is gazing at a specific one of the multiple virtual objects, then the stabilization plane can be determined based solely on the virtual object at which the user is gazing, e.g., using one of the embodiments described above. Alternatively, a stabilization plane can be determined based on a plurality (all or some) of the virtual objects being displayed, e.g., using one of the embodiments described above, by weighting each virtual object's influence on the stabilization plane based on how close the virtual object is to the gaze location. For example, the closer a virtual object is to the gaze location, the more it is weighted, and vice versa.
It is also possible that the virtual object being displayed is so large, and/or in such close proximity to the display, that the virtual object takes up all or most of the field of view. In this case, the stabilization plane can be determined based a local subset of geometry of the virtual object. For example, in one embodiment the determined stabilization plane can bisect a center of a subpart (of the virtual object) at which the user is gazing. In another embodiment, the determined stabilization plane can be co-planar, or as co-planar as possible, with the most viewable surface of the sub-part of the virtual object at which the user is gazing. More generally, when the virtual object at which the user is gazing takes up at least at least a specified percentage (e.g., at least 50%, but not limited thereto) of a field of view and includes a plurality of subparts, then the stabilization plane can be determined based on one of the subparts that is closest to the gaze location. It is also possible that a stabilization plane can be determined based on a plurality (all or some) of the sub-parts of the virtual object being displayed, e.g., by weighting each sub-part's influence on the stabilization plane based on how close the sub-part is to the gaze location. For example, the closer a sub-part of a virtual object is to the gaze location, the more it is weighted, and vice versa.
The embodiments described above are especially useful with augmented reality HMDs, as well as other types of see-through displays. Additionally, the embodiments described above can also be used with virtual reality HMDs and other displays that are not see-through type displays.
FIG. 11 is a block diagram of one embodiment of a mobile device 1100, such as mobile device 19 in FIG. 1. Mobile devices may include laptop computers, pocket computers, mobile phones, HMDs, personal digital assistants, and handheld media devices that have been integrated with wireless receiver/transmitter technology.
Mobile device 1100 includes one or more processors 1112 and memory 1110. Memory 1110 includes applications 1130 and non-volatile storage 1140. Memory 1110 can be any variety of memory storage media types, including non-volatile and volatile memory. A mobile device operating system handles the different operations of the mobile device 1100 and may contain user interfaces for operations, such as placing and receiving phone calls, text messaging, checking voicemail, and the like. The applications 1130 can be any assortment of programs, such as a camera application for photos and/or videos, an address book, a calendar application, a media player, an internet browser, games, an alarm application, and other applications. The non-volatile storage component 1140 in memory 1110 may contain data such as music, photos, contact data, scheduling data, and other files.
The one or more processors 1112 are in communication with a see-through display 1109. The see-through display 1109 may display one or more virtual objects associated with a real-world environment. The one or more processors 1112 also communicates with RF transmitter/receiver 1106 which in turn is coupled to an antenna 1102, with infrared transmitter/receiver 1108, with global positioning service (GPS) receiver 1165, and with movement/orientation sensor 1114 which may include an accelerometer and/or magnetometer. RF transmitter/receiver 1108 may enable wireless communication via various wireless technology standards such as Bluetooth® or the IEEE 802.11 standards. Accelerometers have been incorporated into mobile devices to enable applications such as intelligent user interface applications that let users input commands through gestures, and orientation applications which can automatically change the display from portrait to landscape when the mobile device is rotated. An accelerometer can be provided, e.g., by a micro-electromechanical system (MEMS) which is a tiny mechanical device (of micrometer dimensions) built onto a semiconductor chip. Acceleration direction, as well as orientation, vibration, and shock can be sensed. The one or more processors 1112 further communicate with a ringer/vibrator 1116, a user interface keypad/screen 1118, a speaker 1120, a microphone 1122, a camera 1124, a light sensor 1126, and a temperature sensor 1128. The user interface keypad/screen may include a touch-sensitive screen display.
The one or more processors 1112 controls transmission and reception of wireless signals. During a transmission mode, the one or more processors 1112 provide voice signals from microphone 1122, or other data signals, to the RF transmitter/receiver 1106. The transmitter/receiver 1106 transmits the signals through the antenna 1102. The ringer/vibrator 1116 is used to signal an incoming call, text message, calendar reminder, alarm clock reminder, or other notification to the user. During a receiving mode, the RF transmitter/receiver 1106 receives a voice signal or data signal from a remote station through the antenna 1102. A received voice signal is provided to the speaker 1120 while other received data signals are processed appropriately.
Additionally, a physical connector 1188 may be used to connect the mobile device 1100 to an external power source, such as an AC adapter or powered docking station, in order to recharge battery 1104. The physical connector 1188 may also be used as a data connection to an external computing device. The data connection allows for operations such as synchronizing mobile device data with the computing data on another device.
The disclosed technology is operational with numerous other general purpose or special purpose computing system environments or configurations. Examples of well-known computing systems, environments, and/or configurations that may be suitable for use with the technology include, but are not limited to, personal computers, server computers, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The disclosed technology may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, software and program modules as described herein include routines, programs, objects, components, data structures, and other types of structures that perform particular tasks or implement particular abstract data types. Hardware or combinations of hardware and software may be substituted for software modules as described herein.
The disclosed technology may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
For purposes of this document, each process associated with the disclosed technology may be performed continuously and by one or more computing devices. Each step in a process may be performed by the same or different computing devices as those used in other steps, and each step need not necessarily be performed by a single computing device.
For purposes of this document, reference in the specification to “an embodiment,” “one embodiment,” “some embodiments,” or “another embodiment” may be used to described different embodiments and do not necessarily refer to the same embodiment.
For purposes of this document, a connection can be a direct connection or an indirect connection (e.g., via another part).
For purposes of this document, the term “set” of objects, refers to a “set” of one or more of the objects.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

## Claims

1. A method for displaying an image on a display, the method comprising:
generating a rendered image of a scene including 3D geometry and/or multiple non-coplanar planes;
determining a gaze location of a user;
determining a stabilization plane, associated with a homographic transformation, based on the determined gaze location, wherein the stabilization plane is a single plane that is correctly transformed, without error, when the homographic transform is applied to the rendered image of the scene including 3D geometry and/or multiple non-coplanar planes;
applying the homographic transformation to the rendered image to thereby generate an updated image of the scene including 3D geometry and/or multiple non-coplanar planes; and
displaying at least a portion of the updated image of the scene including 3D geometry and/or multiple non-coplanar planes on the display.

2. The method of claim 1, wherein the determined the stabilization plane comprises determining, based on the determined gaze location, variables of the homographic transformation that define the stabilization plane.

3. The method of claim 1, wherein the determining the stabilization plane comprises:
determining a depth of the gaze location; and
determining a depth of the stabilization plane as being equal to the depth of the gaze location.

4. The method of claim 1, wherein the determining the stabilization plane based on the determined gaze location of the user comprises:
identifying a virtual object that is at or within a range of the gaze location; and
determining the stabilization plane based on the identified virtual object.

5. The method of claim 4, wherein the determining the stabilization plane based on the identified virtual object comprises determining a stabilization plane depth and a stabilization plane orientation based on a depth and an orientation of the identified virtual object.

6. The method of claim 5, wherein when the identified virtual object is a planar two-dimensional virtual object, then determining the stabilization plane depth and the stabilization plane orientation as being equal, respectively, to the depth and the orientation of the identified planar two-dimensional virtual object.

7. The method of claim 5, wherein when the identified virtual object is an elongated three-dimensional virtual object, then determining the stabilization plane depth and the stabilization plane orientation as being equal, respectively, to a depth and an orientation of a plane that bisects a center of the identified elongated three-dimensional vertical object along its elongated length.

8. The method of claim 4, wherein when the identified virtual object takes up at least a specified percentage of a field of view and includes a plurality of subparts, then the determining the stabilization plane based on the identified virtual object comprises:
determining the stabilization plane based on one of the subparts that is closest to the gaze location.

9. The method of claim 4, wherein when the identified virtual object includes a plurality of subparts, then the determining the stabilization plane based on the identified virtual object comprises:
determined the stabilization plane based on two or more of the subparts by weighting each of the two or more subparts' influence on the stabilization plane in dependence on how close the subpart is to the gaze location.

10. The method of claim 1, wherein when a plurality of virtual objects are being displayed, the determining the stabilization plane based on the determined gaze location of the user comprises:
determining the stabilization plane based on two or more of the virtual objects by weighting each of the two or more virtual objects' influence on the stabilization plane in dependence on how close the virtual object is to the gaze location.

11. The method of claim 1, wherein the determining the gaze location of the user comprises performing eye tracking to determine the gaze location of the user.

12. The method of claim 1, wherein the determining the gaze location of the user comprises:
performing head tracking to determine a head position of the user;
estimating the gaze location of the user based the determined head position; and
determining the gaze location as being the estimated gaze location.

13. A device, comprising:
one or more processors that generate a rendered image of a scene including 3D geometry and/or multiple non-coplanar planes, determine a stabilization plane associated with a homographic transformation based on a gaze location of a user, wherein the stabilization plane is a single plane that is correctly transformed, without error, when the homographic transform is applied to the rendered image of the scene including 3D geometry and/or multiple non-coplanar planes, and apply the homographic transformation to the rendered image to thereby generate an updated image of the scene including 3D geometry and/or multiple non-coplanar planes; and
a display that is in communication with the one or more processors and displays at least a portion of the updated image of the scene including 3D geometry and/or multiple non-coplanar planes.

14. The device of claim 13, wherein the one or more processors determine, based on the gaze location, variables of the homographic transformation that define the stabilization plane.

15. The device of claim 13, further comprising:
an eye tracker that determines the gaze location of the user.

16. The device of claim 13, wherein the device comprises a head mounted display (HMD) device.

17. One or more processor readable storage devices having instructions encoded thereon which when executed cause one or more processors associated with a head mounted display (HMD) device to perform a method for displaying an image on a display of the HMD device, the method comprising:
generating a rendered image of a scene including 3D geometry and/or multiple non-coplanar planes;
determining a gaze location of a user;
determining a stabilization plane, associated with a homographic transformation, based on the determined gaze location, wherein the stabilization plane is a single plane that is correctly transformed, without error, when the homographic transform is applied to the rendered image of the scene including 3D geometry and/or multiple non-coplanar planes;
applying the homographic transformation to the rendered image to thereby generate an updated image of the scene including 3D geometry and/or multiple non-coplanar planes; and
displaying at least a portion of the updated image of the scene including 3D geometry and/or multiple non-coplanar planes on the display.

18. The one or more processor readable storage devices of claim 17, wherein the determined the stabilization plane comprises determining, based on the determined gaze location, variables of the homographic transformation that define the stabilization plane.

19. The one or more processor readable storage devices of claim 17, wherein the determining the stabilization plane based on the determined gaze location of the user comprises:
identifying a virtual object that is at or within a range of the gaze location; and
determining the stabilization plane based on the identified virtual object.

20. The one or more processor readable storage devices of claim 19, wherein the determining the stabilization plane based on the identified virtual object comprises determining a stabilization plane depth and a stabilization plane orientation based on a depth and an orientation of the identified virtual object.