Interaction interface display following method, electronic device, medium, and chip
View Patent ↗The present disclosure discloses an interaction interface display following method, an electronic device, a readable storage medium, and a chip, which relate to the field of interface following technology. The interaction interface display following method includes: acquiring the wearing position information of an extended reality display device; determining the position information of an interaction interface in a virtual interface of the extended reality display device; and adjusting a display position of the interaction interface, so that the wearing position information corresponds to the position information of the interaction interface after being adjusted.
1 . A method, comprising:
acquiring wearing position information of an extended reality display device, wherein the wearing position information comprises information indicating a position of a head of a user wearing the extended reality display device;
determining a display position of an interaction interface in a virtual interface displayed by the extended reality display device;
detecting whether a head turning operation occurs based on the acquired wearing position information;
determining whether the position of the head moves beyond a visual range corresponding to the display position of the interaction interface, wherein the interaction interface is not visible by the user when the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, and wherein the interaction interface is one of a plurality of interfaces included in the virtual interface displayed by the extended reality display device; and
in response to determining that the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, controlling the interaction interface based on the position of the head by adjusting the display position of the interaction interface in the virtual interface, wherein the adjusted display position of the interaction interface corresponds to a direction to which the head has turned.
2 . The method of claim 1 , further comprising:
determining whether the wearing position information at two adjacent detection time points changes; and
determining whether the position of the head of the user has moved beyond the visual range corresponding to the display position of the interaction interface based on determining that the wearing position information at the two adjacent detection time points changes.
3 . The method of claim 1 , wherein the method comprises:
determining an adjustment priority order of the plurality of interfaces in the virtual interface; and
determining a first interface in the adjustment priority order as the interaction interface.
4 . An electronic device, comprising a processor, a memory, and programs or instructions that are stored on the memory and executable on the processor, when the programs or instructions are executed by the processor, cause the processor to:
acquire wearing position information of an extended reality display device, wherein the wearing position information comprises information indicating a position of a head of a user wearing the extended reality display device;
determine a display position of an interaction interface in a virtual interface displayed by the extended reality display device;
detect whether a head turning operation occurs based on the acquired wearing position information;
determine whether the position of the head moves beyond a visual range corresponding to the display position of the interaction interface, wherein the interaction interface is not visible by the user when the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, and wherein the interaction interface is one of a plurality of interfaces included in the virtual interface displayed by the extended reality display device; and
in response to determining that the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, control the interaction interface based on the position of the head by adjusting the display position of the interaction interface in the virtual interface, wherein the adjusted display position of the interaction interface corresponds to a direction to which the head has turned.
5 . The electronic device of claim 4 , wherein the processor is further caused to:
determine whether the wearing position information at two adjacent detection time points changes; and
determine whether the position of the head of the user has moved beyond the visual range corresponding to the display position of the interaction interface based on determining that the wearing position information at the two adjacent detection time points changes.
6 . The electronic device of claim 4 , wherein the processor is further caused to:
determine an adjustment priority order of the plurality of interfaces in the virtual interface; and
determine a first interface in the adjustment priority order as the interaction interface.
7 . A non-transitory computer-readable storage medium, wherein programs or instructions are stored on the readable storage medium, and when the programs or instructions are executed by a processor, cause the processor to:
acquire wearing position information of an extended reality display device, wherein the wearing position information comprises information indicating a position of a head of a user wearing the extended reality display device;
determine a display position of an interaction interface in a virtual interface displayed by the extended reality display device;
detect whether a head turning operation occurs based on the acquired wearing position information;
determine whether a position of the head moves beyond a visual range corresponding to the display position of the interaction interface, wherein the interaction interface is not visible by the user when the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, and wherein the interaction interface is one of a plurality of interfaces included in the virtual interface displayed by the extended reality display device; and
in response to determining that the position of the head moves beyond the visual range corresponding to the display position of the interaction interface, control the interaction interface based on the position of the head by adjusting the display position of the interaction interface in the virtual interface, wherein the adjusted display position of the interaction interface corresponds to a direction to which the head has turned.
8 . A chip, comprising a processor and a communication interface, wherein the communication interface is coupled with the processor, and the processor is configured to execute programs or instructions to implement the method of claim 1 .