CPC G06T 11/60 (2013.01) [G06F 3/011 (2013.01); G06T 7/246 (2017.01); G06T 7/292 (2017.01)] | 17 Claims |
1. An electronic device, comprising:
one or more cameras;
a memory;
one or more processors operatively coupled to the memory; and
computer-executable instructions stored in the memory and configured to be executed by the one or more processors, the computer-executable instructions including instructions for:
displaying a virtual reality environment;
determining a distance between the electronic device and a first physical object;
determining a first type of the first physical object;
determining whether the distance between the electronic device and the first physical object is within a first threshold distance, wherein the first threshold distance is based on the determined first type of the first physical object;
in accordance with a determination that the distance is within the first threshold distance, displaying a visual effect in the virtual reality environment,
determining whether the distance between the electronic device and the first physical object is within a second threshold distance;
in accordance with a determination that the distance is within the second threshold distance, displaying a visual representation of at least part of a physical environment, the visual representation provided using the one or more cameras;
determining a second distance between the electronic device and a second physical object;
determining a second type of the second physical object, wherein the first type of the first physical object is different from the second type of the second physical object;
determining whether the second distance between the electronic device and the second physical object is within a third threshold distance, wherein the third threshold distance is based on the determined second type of the second physical object, and wherein first threshold distance is different from the third threshold distance;
in accordance with a determination that the second distance is within the third threshold distance, displaying the visual effect in the virtual reality environment;
determining whether the second distance between the electronic device and the second physical object is within a fourth threshold distance; and
in accordance with a determination that the second distance is within the fourth threshold distance, displaying a second visual representation of at least part of the physical environment, the second visual representation provided using the one or more cameras.
|