VIRTUAL CONTENT SCALING WITH A HARDWARE CONTROLLER
A head-mounted viewing device determines a first spatial location of a hardware controller relative to a spatial location of the head-mounted viewing device in a local environment, and a second spatial location of the hardware controller relative to the position of the head-mounted viewing device in the local environment, the second spatial location being different than the first spatial location. The head-mounted viewing device determines, based on at least the first spatial location and the second spatial location, a spatial boundary within the local environment relative to the spatial location of the head-mounted viewing device, and causes presentation of the virtual content on a transparent display of the head-mounted viewing device based on the spatial boundary such that the virtual content appears to be present within the spatial boundary of the local environment to a user wearing the head-mounted viewing device.
1 . A method comprising:
determining, by a head-mounted viewing device, a first spatial location of a hardware controller relative to a spatial location of the head-mounted viewing device in a local environment;
determining, by the head-mounted viewing device, a second spatial location of the hardware controller relative to the position of the head-mounted viewing device in the local environment, the second spatial location being different than the first spatial location;
determining, based on at least the first spatial location and the second spatial location, a spatial boundary within the local environment relative to the spatial location of the head-mounted viewing device; and
causing presentation of a virtual content on a transparent display of the head-mounted viewing device based on the spatial boundary such that the virtual content appears to be present within the spatial boundary of the local environment to a user wearing the head-mounted viewing device.
2 . The method of claim 1 , wherein causing presentation of the virtual content on a transparent display of the head-mounted viewing device comprises:
determining, based on the spatial boundary, a presentation size of the virtual content;
determining based on the spatial boundary, a presentation position of the virtual content on display of the head-mounted viewing device;
generating the virtual content according to the presentation size; and
presenting the virtual content on the display of the head-mounted viewing device according to the presentation position.
3 . The method of claim 1 , further comprising:
detecting that the spatial location of the head-mounted viewing device has changed; and
updating presentation of the virtual content on the transparent display of the head-mounted viewing device such that the virtual content appears to remain present within the spatial boundary of the local environment to the user wearing the head-mounted viewing device.
4 . The method of claim 3 , wherein updating presentation of the virtual content comprises:
modifying one or more of a presentation size of the virtual content or a presentation position of the virtual content on the display of the head-mounted viewing device.
5 . The method of claim 1 , wherein determining the first spatial location of the hardware controller comprises:
receiving, from the hardware controller, location data gathered by sensors of the hardware controller;
determining the first spatial location of the hardware controller based on the location data received from the hardware controller.
6 . The method of claim 1 , wherein determining the first spatial location of the hardware controller comprises:
receiving an infrared signal transmitted by an infrared light-emitting diode (IR LED) located on the hardware controller; and
determining the first spatial location of the hardware controller based on the infrared signal.
7 . The method of claim 1 , further comprising:
after causing presentation of the virtual content on the transparent display of the head-mounted viewing device, receiving an input from the hardware controller indicating a direction in which to adjust presentation of the virtual content; and
updating presentation of the virtual content on the transparent display based on the received input.
8 . A head-mounted viewing device comprising:
one or more computer processors; and
one or more computer-readable mediums storing instructions that, when executed by the one or more computer processors, cause the head-mounted viewing device to perform operations comprising:
determining a first spatial location of a hardware controller relative to a spatial location of the head-mounted viewing device in a local environment;
determining a second spatial location of the hardware controller relative to the position of the head-mounted viewing device in the local environment, the second spatial location being different than the first spatial location;
determining, based on at least the first spatial location and the second spatial location, a spatial boundary within the local environment relative to the spatial location of the head-mounted viewing device; and
causing presentation of a virtual content on a transparent display of the head-mounted viewing device based on the spatial boundary such that the virtual content appears to be present within the spatial boundary of the local environment to a user wearing the head-mounted viewing device.
9 . The head-mounted viewing device of claim 8 , wherein causing presentation of the virtual content on a transparent display of the head-mounted viewing device comprises:
determining, based on the spatial boundary, a presentation size of the virtual content;
determining based on the spatial boundary, a presentation position of the virtual content on display of the head-mounted viewing device;
generating the virtual content according to the presentation size; and
presenting the virtual content on the display of the head-mounted viewing device according to the presentation position.
10 . The head-mounted viewing device of claim 8 , the operations further comprising:
detecting that the spatial location of the head-mounted viewing device has changed; and
updating presentation of the virtual content on the transparent display of the head-mounted viewing device such that the virtual content appears to remain present within the spatial boundary of the local environment to the user wearing the head-mounted viewing device.
11 . The head-mounted viewing device of claim 10 , wherein updating presentation of the virtual content comprises:
modifying one or more of a presentation size of the virtual content or a presentation position of the virtual content on the display of the head-mounted viewing device.
12 . The head-mounted viewing device of claim 8 , wherein determining the first spatial location of the hardware controller comprises:
receiving, from the hardware controller, location data gathered by sensors of the hardware controller;
determining the first spatial location of the hardware controller based on the location data received from the hardware controller.
13 . The head-mounted viewing device of claim 8 , wherein determining the first spatial location of the hardware controller comprises:
receiving an infrared signal transmitted by an infrared light-emitting diode (IR LED) located on the hardware controller; and
determining the first spatial location of the hardware controller based on the infrared signal.
14 . The head-mounted viewing device of claim 8 , the operations further comprising:
after causing presentation of the virtual content on the transparent display of the head-mounted viewing device, receiving an input from the hardware controller indicating a direction in which to adjust presentation of the virtual content; and
updating presentation of the virtual content on the transparent display based on the received input.
15 . A non-transitory computer-readable medium storing instructions that, when executed by one or more computer processors of a head-mounted viewing device, cause the head-mounted viewing device to perform operations comprising:
determining a first spatial location of a hardware controller relative to a spatial location of the head-mounted viewing device in a local environment;
determining a second spatial location of the hardware controller relative to the position of the head-mounted viewing device in the local environment, the second spatial location being different than the first spatial location;
determining, based on at least the first spatial location and the second spatial location, a spatial boundary within the local environment relative to the spatial location of the head-mounted viewing device; and
causing presentation of a virtual content on a transparent display of the head-mounted viewing device based on the spatial boundary such that the virtual content appears to be present within the spatial boundary of the local environment to a user wearing the head-mounted viewing device.
16 . The non-transitory computer-readable medium of claim 15 , wherein causing presentation of the virtual content on a transparent display of the head-mounted viewing device comprises:
determining, based on the spatial boundary, a presentation size of the virtual content;
determining based on the spatial boundary, a presentation position of the virtual content on display of the head-mounted viewing device;
generating the virtual content according to the presentation size; and
presenting the virtual content on the display of the head-mounted viewing device according to the presentation position.
17 . The non-transitory computer-readable medium of claim 15 , the operations further comprising:
detecting that the spatial location of the head-mounted viewing device has changed; and
updating presentation of the virtual content on the transparent display of the head-mounted viewing device such that the virtual content appears to remain present within the spatial boundary of the local environment to the user wearing the head-mounted viewing device.
18 . The non-transitory computer-readable medium of claim 17 , wherein updating presentation of the virtual content comprises:
modifying one or more of a presentation size of the virtual content or a presentation position of the virtual content on the display of the head-mounted viewing device.
19 . The non-transitory computer-readable medium of claim 15 , wherein determining the first spatial location of the hardware controller comprises:
receiving, from the hardware controller, location data gathered by sensors of the hardware controller;
determining the first spatial location of the hardware controller based on the location data received from the hardware controller.
20 . The non-transitory computer-readable medium of claim 15 , wherein determining the first spatial location of the hardware controller comprises:
receiving an infrared signal transmitted by an infrared light-emitting diode (IR LED) located on the hardware controller; and
determining the first spatial location of the hardware controller based on the infrared signal.