CN116627567A - Virtual interface adjusting method and electronic equipment - Google Patents

Virtual interface adjusting method and electronic equipment Download PDF

Info

Publication number
CN116627567A
CN116627567A CN202310597865.XA CN202310597865A CN116627567A CN 116627567 A CN116627567 A CN 116627567A CN 202310597865 A CN202310597865 A CN 202310597865A CN 116627567 A CN116627567 A CN 116627567A
Authority
CN
China
Prior art keywords
input
target component
adjusting
identifier
virtual interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310597865.XA
Other languages
Chinese (zh)
Inventor
袁笑
王强
封雅虹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310597865.XA priority Critical patent/CN116627567A/en
Publication of CN116627567A publication Critical patent/CN116627567A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses a method and a device for adjusting a virtual interface, electronic equipment and a storage medium, and belongs to the field of data processing. The method comprises the following steps: acquiring a first identifier of an input device of virtual reality equipment in a virtual interface; switching the first identifier to a second identifier in case that the first identifier overlaps with a target component, wherein the second identifier is used for indicating that the target component is in an adjustable state; displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted; responsive to a first input of the input device, the target component is in a state to be adjusted; responsive to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input; displaying the adjusted target component.

Description

Virtual interface adjusting method and electronic equipment
Technical Field
The application belongs to the field of data processing, and particularly relates to a method and a device for adjusting a virtual interface of virtual reality, electronic equipment and a storage medium.
Background
With the development of information technology and electronic technology, digital products are increasingly used in various fields of life and work, and the use of Virtual Reality (VR) devices is also becoming popular.
In the prior art, a VR device uses a desktop Launcher (Launcher) as a main portal program for entering a VR scene and performs corresponding desktop UI design, where the Launcher includes components such as an active desktop (deck) and a taskbar (dock). As shown in fig. 1, which is a schematic interface diagram of the counter, a user can enter various VR applications and experience various VR functions through corresponding operations on the deck and dock.
However, the situation of position movement is often involved in the use process of the VR device, meanwhile, different users have different preferences for the distance between the interface and the person, in the current VR device, the user needs to operate the handle to realize the movement of the pick and dock in the host interface, and the adjustment degree can only be perceived by naked eyes, so that the user is inconvenient to adjust the interface, and the use effect of the VR device is affected.
Disclosure of Invention
The embodiment of the application aims to provide a method, a device, electronic equipment and a storage medium for adjusting a virtual interface, which can solve the problem that the use effect of VR equipment is affected because the movement of the deck and dock in the Launcher interface is limited at present and the interface is inconvenient to adjust by a user.
In a first aspect, an embodiment of the present application provides a method for adjusting a virtual interface, where the method includes:
acquiring a first identifier of an input device of virtual reality equipment in a virtual interface;
switching the first identifier to a second identifier in case that the first identifier overlaps with a target component, wherein the second identifier is used for indicating that the target component is in an adjustable state;
displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted;
responsive to a first input of the input device, the target component is in a state to be adjusted;
responsive to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input;
displaying the adjusted target component.
Optionally, the responding to the first input of the input device, the target component is in a state to be adjusted, including:
and responding to the first input of the input equipment, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays a position parameter of the target component, and the position parameter is in a state to be adjusted.
Optionally, the location parameters include a first location parameter and a second location parameter, and the adjusting the location parameter of the target component corresponding to the second input in response to the second input of the input device includes:
in response to a second input from the input device, the first position parameter is locked and the second position parameter is adjusted.
Optionally, the locking the first position parameter and adjusting the second position parameter in response to a second input of the input device includes:
in response to a second input of the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
Optionally, the input device includes a first handle and a second handle, and the first input or the second input includes a combined input of a key of the first handle and a key of the second handle.
Optionally, the second input comprises at least one of:
a distance adjustment input for adjusting a distance between the target component and a user in the virtual interface along any coordinate axis;
an angle adjustment input for adjusting an angle of inclination of the target assembly in the virtual interface;
A curvature adjustment input for adjusting a curvature of the target component in the virtual interface.
Optionally, the adjusting, in response to a second input of the input device, a position parameter of the target component corresponding to the second input includes:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
and adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
In a second aspect, an embodiment of the present application provides an apparatus for adjusting a virtual interface, where the apparatus includes:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first identifier of an input device of virtual reality equipment in a virtual interface;
a switching unit, configured to switch the first identifier to a second identifier, where the second identifier is used to indicate that the target component is in an adjustable state, where the first identifier overlaps with the target component;
The first display unit is used for displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted;
a first response unit for responding to a first input of the input device, wherein the target component is in a state to be regulated;
a second response unit, configured to respond to a second input of the input device, and adjust a position parameter of the target component corresponding to the second input;
and the second display unit is used for displaying the adjusted target assembly.
Optionally, the first response unit is specifically configured to:
and responding to the first input of the input equipment, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays a position parameter of the target component, and the position parameter is in a state to be adjusted.
Optionally, the location parameters include a first location parameter and a second location parameter, and the second response unit is specifically configured to:
in response to a second input from the input device, the first position parameter is locked and the second position parameter is adjusted.
Optionally, the second response unit is specifically configured to:
in response to a second input of the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
Optionally, the input device includes a first handle and a second handle, and the first input or the second input includes a combined input of a key of the first handle and a key of the second handle.
Optionally, the second input comprises at least one of:
a distance adjustment operation for adjusting a distance between the target component and a user in the virtual interface along any coordinate axis;
an angle adjustment operation for adjusting an inclination angle of the target assembly in the virtual interface;
and a curvature adjustment operation for adjusting a curvature of the target component in the virtual interface.
Optionally, the second response unit is specifically configured to:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
And adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
In a third aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, the program product being executable by at least one processor to implement the method according to the first aspect.
In the embodiment of the application, a first identifier of an input device of virtual reality equipment in a virtual interface is acquired; switching the first identifier to a second identifier under the condition that the first identifier is overlapped with the target component, wherein the second identifier is used for indicating that the target component is in an adjustable state; displaying prompt information of the adjusting target component when the second mark display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted; responsive to a first input of the input device, the target component is in a state to be adjusted; responsive to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input; displaying the adjusted target component.
Like this, at first based on input device's first input, make the target subassembly get into to wait to adjust the state, then based on input device's second input, adjust the position parameter of target subassembly, thereby can not break user's immersive condition under the prerequisite, realize adjusting the display position of target subassembly in virtual reality, and, in the prior art relies on the regulation mode of naked eye perception, the mode of adjusting to the position parameter of target subassembly is more accurate, more pertinence, also more convenient, thereby can improve virtual reality equipment's result of use.
Drawings
FIG. 1 is a schematic diagram of a virtual reality interface, shown according to an example embodiment;
FIG. 2 is a flow chart illustrating a method of adjusting a virtual interface according to an exemplary embodiment;
FIG. 3 is a schematic diagram illustrating text provided by an embodiment of the present application;
FIG. 4 is a schematic logic diagram of a method for adjusting a virtual interface according to an embodiment of the present application;
FIG. 5 is a block diagram of an regulator device of a virtual interface, shown in accordance with an exemplary embodiment;
FIG. 6 is a block diagram of a regulator electronic device of a virtual interface, shown in accordance with an exemplary embodiment;
Fig. 7 is a block diagram illustrating an apparatus for an adjustor of a virtual interface, according to an example embodiment.
Detailed Description
The technical solutions of the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which are obtained by a person skilled in the art based on the embodiments of the present application, fall within the scope of protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type, and are not limited to the number of objects, such as the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method for adjusting the virtual interface provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Fig. 2 is a flowchart illustrating a method of adjusting a virtual interface, according to an exemplary embodiment, including the following steps.
In S11, a first identification of an input device of a virtual reality device in a virtual interface is acquired.
The virtual reality is that the virtual and the reality are combined with each other, and the virtual reality technology can utilize a computer to generate a virtual interface, so that a user is immersed in the virtual interface, and interaction between the user and the user or between the user and the virtual interface is realized.
In the application, the virtual reality device can adopt the counther as a desktop starter, and comprises components such as a deck and a dock in a virtual interface based on the counther, wherein the deck can be used for displaying the content of the virtual reality program in an active state, the dock comprises a series of icons of the virtual reality program, and a user can realize starting and switching the virtual reality program displayed in the deck by clicking the icons, so that various virtual reality programs are entered and various virtual reality functions are experienced.
However, the situation of position movement is often involved in the use process of the virtual reality device, meanwhile, different users have different preferences on the distance between the user and each component of the virtual interface, in the current virtual reality device, the user needs to realize the movement of the deck and dock in the virtual reality interface through an operation handle, the adjustment degree can only be perceived by naked eyes, the operation is inconvenient and the precision is poor, and therefore, the adjustment mode of the virtual interface needs to be improved.
In the application, first, a first identifier of an input device of a virtual reality device in a virtual interface needs to be acquired, wherein the first identifier is used for indicating the indicated position of the input device in the virtual interface so as to focus the sight of a user of the input device. As the gesture and position of the input device change, the position of the first mark also changes. The display of the first identifier in the virtual interface may be explicit, i.e. the indication position is marked by any form of identifier, or may be implicit, or the corresponding indication position is shown in a specific scene or in response to a specific input, which is not limited in particular.
The input device may be a handle, a bracelet, or a head-mounted device or other wearable devices, which is not particularly limited. For example, the input device may include a first handle and a second handle, for example, the first handle may be a handle held by a left hand of a user, the second handle may be a handle held by a right hand of the user, and the like, and may be set according to different application scenarios.
In S12, in case the first identifier overlaps the target component, the first identifier is switched to a second identifier, and the second identifier is used to indicate that the target component is in an adjustable state.
In this step, if the first identity overlaps with the target component, it means that the position indicated by the input device in the virtual interface overlaps with the target component, in other words, the user is currently focused on the target component, at which point the first identity may be switched to the second identity.
For example, the first mark overlapping the target component may refer to that the first mark overlaps the frame of the target component, or may refer to that the first mark overlaps a portion of the area on the target component, which is not limited in particular.
The second identifier may be an icon different from the first identifier for prompting the user that the current target component is already in an adjustable state so that the user can adjust the position of the target component by performing a corresponding operation.
The target components may be a dock and a dock in the virtual reality interface, or may be other components, which is not limited specifically.
In S13, when the second identifier display time period is greater than the preset threshold, a prompt message of the adjustment target component is displayed, where the prompt message is used to prompt the adjustment target component to enter a first input corresponding to the to-be-adjusted state.
As can be seen from the foregoing, after the first identifier overlaps the target component, the first identifier is switched to the second identifier, where the first identifier is used to indicate the position indicated by the input device in the virtual interface, that is, if the time period for displaying the second identifier is longer than the preset threshold, it indicates that the time period for overlapping the position indicated by the input device in the virtual interface with the target component is longer than the preset threshold, in this case, it may be considered that the user needs to adjust the position of the target component by default, and further, prompt information for adjusting the target component may be displayed.
The prompting information is used for prompting the target component to enter a first input corresponding to the state to be regulated, so that a user can execute corresponding operation of the first input through the input device according to the prompting information under the condition that the target component is confirmed to be regulated, and further, after the virtual reality device acquires the first input, the target component can be switched to the state to be regulated, subsequent regulation of the target component is facilitated, and the operation difficulty can be reduced, and meanwhile the possibility of misoperation is reduced.
For example, the first identifier may be an arrow icon and the second identifier may be an open hand icon, the arrow icon changing to an open hand icon when the first identifier crosses a dock or dock boundary, the dock or dock being in an adjustable state; when the opened hand-shaped icon stays at the boundary for 3 seconds, prompting information in the form of characters appears in the virtual interface, the character content prompts the user that the target component enters a first input corresponding to the state to be regulated, namely, the interface position can be regulated by displaying a trigger key and a holding key which are pressed simultaneously, namely, the first input is that the user presses the trigger key and the holding key simultaneously. Therefore, the initial prompt information and the display of the prompt information are more vivid and concise, and are also convenient for users to understand, so that the operation difficulty is further reduced.
In S14, in response to a first input of the input device, the target component is in a state to be adjusted.
According to the method, when the second identifier display time is longer than the preset threshold, prompt information of the target component is displayed, so that a user can execute corresponding operation of the first input through the input device, after receiving the first input, the virtual reality device responds to the first input of the input device to set the target component to be in a state to be regulated, and in the state to be regulated, the target component can be correspondingly regulated according to the input of the user.
In one implementation, in response to a first input from an input device, a target component is in a state to be adjusted, comprising: and responding to the first input of the input device, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays the position parameter of the target component, and the position parameter is in a state to be adjusted.
That is, after receiving the first input, in response to the first input of the input device, the position adjustment interface of the target component may be first displayed, where the position adjustment interface displays at least one position parameter of the target component, and each position parameter is in a state to be adjusted.
Therefore, the user can respectively adjust each position parameter of the target assembly, and different position parameters correspond to position changes of different dimensions of the target assembly in the virtual interface, so that the difficulty of adjusting the position of the target assembly is reduced, and the adjusting accuracy is improved.
Wherein upon entering the position adjustment interface, the second identifier may switch to a third identifier, e.g., if the second identifier is an open hand icon, the third identifier may be a grip icon. If the input device is a handle, the first input may be a trigger key and a grip key pressed simultaneously, and the first input may also be other inputs, which is not limited specifically.
In one implementation, after presenting the position adjustment interface of the target component in response to a first input of the input device, the position adjustment interface of the target component may also be exited in response to a third input of the input device. If the input device is a handle, the third input may be a trigger key and a grip key for releasing the handle.
For example, after the user releases the trigger key and the holding key of the handle, the hand grip icon becomes an open hand-shaped icon, and exits the position adjustment interface of the target assembly, and if the open hand-shaped icon leaves the dock or dock boundary, the open hand-shaped icon becomes an arrow icon, so that the entering and exiting of the position adjustment interface can be realized only by pressing or releasing the trigger key and the holding key of the handle, and the operation flow is simple.
In addition, the position adjustment interface may further include a description text for prompting the second input corresponding to each position parameter of the adjustment target component, that is, each position parameter corresponds to a different second input. In this way, the input information required by the target component is split in detail, the adjustment and operation logic is simple, and the operation difficulty of the user is further reduced, wherein the explanation text can be displayed in a text form or in a graphic form, and as shown in fig. 3, the explanation text is shown schematically in an embodiment.
In S15, in response to a second input of the input device, a positional parameter of the target component corresponding to the second input is adjusted.
In the application, the target component can correspond to at least one position parameter, different position parameters correspond to position changes of different dimensions of the target component in the virtual interface, and different position parameters can be adjusted corresponding to different second inputs. Then, after the second input of the input device is obtained, the virtual reality device may adjust a position parameter of the target component corresponding to the obtained second input in response to the second input.
For example, if the location parameters include a first location parameter and a second location parameter, adjusting the location parameter of the target component corresponding to the second input in response to the second input of the input device includes: the first position parameter is locked and the second position parameter is adjusted in response to a second input from the input device.
That is, the second input corresponds to the position parameter one by one, or, according to the obtained second input, only the position parameter uniquely corresponding to the second input is adjusted each time, and other position parameters are locked, so that the accuracy of adjusting the position of the target component is improved, and the possibility of misoperation can be reduced.
Wherein responsive to a second input from the input device, locking the first position parameter, adjusting the second position parameter, comprises: in response to a second input from the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
That is, for the locked currently unadjusted position parameter and the currently required position parameter, different colors may be used for display, so that the visibility of the adjustment process is stronger, the user can be better interacted with, and the user has a more definite indication, thereby reducing the misoperation of the user.
In the present application, if the input device includes a first handle and a second handle, the first input or the second input may include a combined input of a key of the first handle and a key of the second handle. That is, the first input and the second input may be composed of inputs of a plurality of input devices together, so that a plurality of keys of the plurality of input devices may be set to different combined inputs corresponding to different execution effects, and flexibility of adjustment of the target component is improved.
For example, in the present application, the second input may include at least one of the following:
(1) The distance adjustment input is used for adjusting the distance between the target component and the user in the virtual interface along any coordinate axis;
for example, if the input device includes a first handle and a second handle, the distance adjustment input includes pressing a trigger key and a grip key of the first handle and pushing a rocker of the first handle to move the target assembly along either coordinate axis;
taking a left handle as a first handle and a right handle as a second handle as examples, pressing a left trigger key and a holding key by a user, moving dock or deck along X, Y or one axis of Z axes by using a rocker or an indication position of the left handle, wherein parameters of the axes are highlighted to be green, parameters of the other two axes are locked during movement, the locked parameters are displayed to be red, and the distance between dock or deck and the user and the coordinate point change of dock or deck are displayed in real time in a virtual interface;
Wherein, the coordinate system in the virtual environment and the real coordinate system can be overlapped by utilizing the synchronous positioning and map construction (Simultaneous localization and mapping, SLAM) technology, so that the user is positioned in the virtual interface; the positioning of the user in the virtual interface can also be realized by using an outside-in (Inside-out) positioning technology and a head-mounted virtual reality display device; in addition, the displacement parameter of the handle rocker can be detected by matching with the six-degree-of-freedom (6Degrees of Freedom,6DOF) technology of the head-mounted virtual reality display device;
(2) An angle adjustment input for adjusting an inclination angle of the target assembly in the virtual interface;
for example, if the input device includes a first handle and a second handle, the angle adjustment operation includes pressing a trigger key and a grip key of the first handle and pushing a rocker of the second handle;
taking the left handle as a first handle and the right handle as a second handle as an example, on the premise of keeping the trigger key and the holding key of the left handle, a user can adjust the front-back or left-right inclination angle of dock or deck by using a rocker of the right handle, for example, the front-back inclination angle is adjusted by the rocker forwards or backwards, and the left-right inclination angle is fixed in the process; the right handle rocker adjusts the left-right inclination angle to the left or right, and the front-back inclination angle is fixed in the process; the interface presents the change of the inclination angle in real time in the adjustment;
(3) A curvature adjustment input for adjusting a curvature of the target component in the virtual interface;
for example, if the input device includes a first handle and a second handle, the curvature adjustment operation includes pressing a trigger key and a grip key of the first handle and pressing a first target key or a second target key of the second handle;
taking the left handle as a first handle and the right handle as a second handle as an example, on the premise that a trigger key and a holding key of the left handle are still kept pressed, a user can adjust the interface curvature of a dock or a deck column by using an A key and a B key of the right handle, wherein the A key is the curvature increase, and the B key is the curvature decrease.
Therefore, the target component can realize the position adjustment of the target component in the three-dimensional space of the virtual interface, the adjustment process is simpler, and the accuracy is improved.
In the present application, in response to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input includes:
responding to a second input acquired by the input equipment, and acquiring the distance between a target component and a user in the virtual interface; determining an output-input ratio based on the distance; the output-input ratio represents the ratio of the unit displacement of the target component to the unit displacement of the first input, and the output-input ratio and the distance are positively correlated; and adjusting the position parameter of the target component corresponding to the second input based on the output-input ratio.
The output-input ratio represents the ratio of the unit displacement of the target component to the unit displacement of the first input, and the output-input ratio and the distance are positively correlated, that is, the farther the distance between the user and the target component in the virtual interface is, the larger the displacement range regulated by one-time rocker or key operation of the user is, so that coarse regulation and fine regulation of the target component can be realized based on the distance between the user and the target component in the virtual interface, and the user experience is better.
In S16, the adjusted target component is displayed.
In the foregoing step, the adjustment of the position parameter of the target component is achieved in response to the first input and the second input of the input device, and further, the adjusted target component may be displayed in the virtual interface, so as to achieve the update of the position of the target component.
As shown in fig. 4, a logic schematic diagram of a method for adjusting a virtual interface according to an embodiment of the present application is provided, taking an input device as a handle as an example, where a first identifier is used to indicate an indication position of a handle ray, where:
when the handle ray passes through the dock or dock boundary, i.e. the first identifier overlaps the target component, the first identifier can be switched to the second identifier, i.e. the arrow icon is changed into an open hand icon, so that the dock or dock component is indicated to be in an adjustable state; when the opened hand-shaped icon stays at the boundary for 3 seconds, the user is informed of the occurrence of characters in the interface, and the position of the interface can be adjusted by pressing a trigger key and a holding key simultaneously;
The user can change the main handle triggering the adjusting scene of the virtual interface in the setting, taking the main handle as a left handle as an example, when the user simultaneously presses a trigger key and a holding key of the left handle, the second identifier can be switched to a third identifier, namely, an opened hand-shaped icon is changed into a hand-grip icon, the interface position is used for adjusting the scene to trigger, meanwhile, the interface can display an operation course, an initial coordinate and an initial distance between the user and the virtual reality equipment, the operation course is an explanatory text, and the second input corresponding to each position parameter can be prompted and adjusted;
the user presses the left handle trigger key and the holding key, the rocker of the left handle is used for indicating to move dock or deck along X, Y or Z axis, the position parameter corresponding to the currently moving coordinate axis can be highlighted as green, meanwhile, the position parameters of the other two axes are locked, the locked position parameter can be displayed as red, the distance between dock or deck and the user is displayed in real time in the virtual interface, and the coordinate of dock or deck changes;
after the user adjusts the positions of dock or dock on the X axis, the Y axis and the Z axis, on the premise of keeping the trigger key and the holding key of the left handle, the user can adjust the front-back or left-right inclination angle of dock or dock by using the rocker of the right handle, wherein the position parameter corresponding to the currently adjusted inclination angle can be highlighted as green, and the position parameters of other angles are locked, for example, the front-back inclination angle is adjusted forwards or backwards by the rocker of the user, and the left-right inclination angle is fixed in the process; the right handle rocker adjusts the left-right inclination angle to the left or right, and the front-back inclination angle is fixed in the process;
On the premise of still keeping pressing the trigger key and the holding key of the left handle, a user can adjust the curvature of a dock or a dock column by pressing an A key and a B key of the right handle and present curvature change in real time in the virtual interface, wherein if the A key is pressed for increasing the curvature, the B key is pressed for decreasing the curvature, and correspondingly, if the user selects the right handle as a main handle for triggering an adjusting scene of the virtual interface, the X key of the left handle is pressed for increasing the curvature and the Y key of the left handle is pressed for decreasing the curvature;
after the trigger key and the holding key of the left handle are released by the user, the third identifier can be switched to the second identifier, namely the hand-held icon is changed back to the open hand-shaped icon, the movement adjustment operation is completed, the adjustment scene of the virtual interface is closed, and at the moment, if the handle ray leaves the dock or the dock boundary, the second identifier can be switched to the first identifier, namely the open hand-shaped icon is changed back to the arrow icon.
From the above, according to the technical scheme provided by the embodiment of the application, the target component is brought into the state to be adjusted based on the first input of the input device, and then the position parameter of the target component is adjusted based on the second input of the input device, so that the adjustment of the display position of the target component in the virtual reality can be realized on the premise of not interrupting the immersion of the user, and compared with the adjustment mode of relying on naked eye perception in the prior art, the adjustment mode of the position parameter of the target component is more accurate, more targeted and more convenient, and the use effect of the virtual reality device can be improved.
According to the method for adjusting the virtual interface provided by the embodiment of the application, the execution main body can be an adjusting device of the virtual interface. In the embodiment of the present application, a method for executing adjustment of a virtual interface by using an adjustment device for a virtual interface is taken as an example, and an apparatus for implementing the method for adjusting a virtual interface according to the embodiment of the present application is described.
FIG. 5 is a block diagram of an adjustment device for a virtual interface, the device including:
an obtaining unit 201, configured to obtain a first identifier of an input device of a virtual reality device in a virtual interface;
a switching unit 202, configured to switch the first identifier to a second identifier, where the second identifier is used to indicate that the target component is in an adjustable state, where the first identifier overlaps with the target component;
the first display unit 203 is configured to display, when the second identifier display time period is greater than a preset threshold, a prompt message for adjusting the target component, where the prompt message is used to prompt the target component to enter a first input corresponding to a state to be adjusted;
a first response unit 204, configured to respond to a first input of the input device, where the target component is in a state to be adjusted;
A second response unit 205, configured to respond to a second input of the input device, and adjust a position parameter of the target component corresponding to the second input;
a second display unit 206 for displaying the adjusted target component.
Optionally, the first response unit 204 is specifically configured to:
and responding to the first input of the input equipment, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays a position parameter of the target component, and the position parameter is in a state to be adjusted.
Optionally, the location parameters include a first location parameter and a second location parameter, and the second response unit 205 is specifically configured to:
in response to a second input from the input device, the first position parameter is locked and the second position parameter is adjusted.
Optionally, the second response unit 205 is specifically configured to:
in response to a second input of the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
Optionally, the input device includes a first handle and a second handle, and the first input or the second input includes a combined input of a key of the first handle and a key of the second handle.
Optionally, the second input comprises at least one of:
a distance adjustment operation for adjusting a distance between the target component and a user in the virtual interface along any coordinate axis;
an angle adjustment operation for adjusting an inclination angle of the target assembly in the virtual interface;
and a curvature adjustment operation for adjusting a curvature of the target component in the virtual interface.
Optionally, the second response unit 205 is specifically configured to:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
and adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
From the above, according to the technical scheme provided by the embodiment of the application, the target component is brought into the state to be adjusted based on the first input of the input device, and then the position parameter of the target component is adjusted based on the second input of the input device, so that the adjustment of the display position of the target component in the virtual reality can be realized on the premise of not interrupting the immersion of the user, and compared with the adjustment mode of relying on naked eye perception in the prior art, the adjustment mode of the position parameter of the target component is more accurate, more targeted and more convenient, and the use effect of the virtual reality device can be improved.
The adjusting device of the virtual interface in the embodiment of the application can be electronic equipment or a component in the electronic equipment, such as an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented reality (augmented reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-mobile personal computer, UMPC, netbook or personal digital assistant (personal digital assistant, PDA), etc., but may also be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The device for adjusting the virtual interface in the embodiment of the application can be a device with an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, and the embodiment of the present application is not limited specifically.
The adjusting device for the virtual interface provided by the embodiment of the present application can implement each process implemented by the embodiments of the methods of fig. 1 to fig. 4, and in order to avoid repetition, a detailed description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 500, including a processor 501 and a memory 502, where the memory 502 stores a program or an instruction that can be executed on the processor 501, and the program or the instruction implements each step of the above embodiment of the method for adjusting a virtual interface when executed by the processor 501, and the steps can achieve the same technical effect, so that repetition is avoided and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: radio frequency unit 1001, network module 1002, audio output unit 1003, input unit 1004, sensor 1005, first display unit 1006, user input unit 1007, interface unit 1008, memory 1009, and processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 1010 by a power management system to perform functions such as managing charge, discharge, and power consumption by the power management system. The electronic device structure shown in fig. 6 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
Wherein the processor 1010 is configured to:
acquiring a first identifier of an input device of virtual reality equipment in a virtual interface;
switching the first identifier to a second identifier in case that the first identifier overlaps with a target component, wherein the second identifier is used for indicating that the target component is in an adjustable state;
displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted;
responsive to a first input of the input device, the target component is in a state to be adjusted;
responsive to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input;
displaying the adjusted target component.
Optionally, the processor 1010 is further configured to:
and responding to the first input of the input equipment, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays a position parameter of the target component, and the position parameter is in a state to be adjusted.
Optionally, the location parameters include a first location parameter and a second location parameter, and the processor 1010 is further configured to:
In response to a second input from the input device, the first position parameter is locked and the second position parameter is adjusted.
Optionally, the processor 1010 is further configured to:
in response to a second input of the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
Optionally, the input device includes a first handle and a second handle, and the first input or the second input includes a combined input of a key of the first handle and a key of the second handle.
Optionally, the second input comprises at least one of:
a distance adjustment input for adjusting a distance between the target component and a user in the virtual interface along any coordinate axis;
an angle adjustment input for adjusting an angle of inclination of the target assembly in the virtual interface;
a curvature adjustment input for adjusting a curvature of the target component in the virtual interface.
Optionally, the processor 1010 is further configured to:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
And adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
From the above, according to the technical scheme provided by the embodiment of the application, the target component is brought into the state to be adjusted based on the first input of the input device, and then the position parameter of the target component is adjusted based on the second input of the input device, so that the adjustment of the display position of the target component in the virtual reality can be realized on the premise of not interrupting the immersion of the user, and compared with the adjustment mode of relying on naked eye perception in the prior art, the adjustment mode of the position parameter of the target component is more accurate, more targeted and more convenient, and the use effect of the virtual reality device can be improved.
It should be appreciated that in an embodiment of the present application, the input unit 1004 may include a graphics processor (Graphics Processing Unit, GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The first display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 can include two portions, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first memory area storing programs or instructions and a second memory area storing data, wherein the first memory area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 1009 in embodiments of the application includes, but is not limited to, these and any other suitable types of memory.
The processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 1010.
The embodiment of the application also provides a readable storage medium, wherein the readable storage medium stores a program or an instruction, and the program or the instruction realizes each process of the virtual interface adjusting method embodiment when being executed by a processor, and can achieve the same technical effect, so that repetition is avoided and redundant description is omitted.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions, the processes of the embodiment of the method for adjusting the virtual interface can be realized, the same technical effects can be achieved, and the repetition is avoided, and the description is omitted here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
Embodiments of the present application provide a computer program product stored in a storage medium, where the program product is executed by at least one processor to implement the respective processes of the embodiments of the adjustment method of the virtual interface, and achieve the same technical effects, and are not repeated herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those having ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are to be protected by the present application.

Claims (10)

1. A method for adjusting a virtual interface, comprising:
acquiring a first identifier of an input device of virtual reality equipment in a virtual interface;
switching the first identifier to a second identifier in case that the first identifier overlaps with a target component, wherein the second identifier is used for indicating that the target component is in an adjustable state;
displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted;
responsive to a first input of the input device, the target component is in a state to be adjusted;
responsive to a second input of the input device, adjusting a positional parameter of the target component corresponding to the second input;
displaying the adjusted target component.
2. The method of claim 1, wherein the target component is in a state to be adjusted in response to a first input of the input device, comprising:
and responding to the first input of the input equipment, displaying a position adjustment interface of the target component, wherein the position adjustment interface displays a position parameter of the target component, and the position parameter is in a state to be adjusted.
3. The method of claim 2, wherein the location parameters include a first location parameter and a second location parameter, and wherein the adjusting the location parameter of the target component corresponding to the second input in response to the second input of the input device comprises:
in response to a second input from the input device, the first position parameter is locked and the second position parameter is adjusted.
4. A method of adjusting a virtual interface as defined in claim 3, wherein said locking the first position parameter in response to the second input of the input device, adjusting the second position parameter comprises:
in response to a second input of the input device, the locked first position parameter is displayed in a first color and the second position parameter displayed in a second color is adjusted.
5. The method of claim 1, wherein the input device comprises a first handle and a second handle, and wherein the first input or the second input comprises a combined input of a key of the first handle and a key of the second handle.
6. The method of claim 1, wherein the second input comprises at least one of:
A distance adjustment input for adjusting a distance between the target component and a user in the virtual interface along any coordinate axis;
an angle adjustment input for adjusting an angle of inclination of the target assembly in the virtual interface;
a curvature adjustment input for adjusting a curvature of the target component in the virtual interface.
7. The method of adjusting a virtual interface of claim 1, wherein the adjusting the position parameter of the target component corresponding to the second input in response to the second input of the input device comprises:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
and adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
8. An adjustment device for a virtual interface, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a first identifier of an input device of virtual reality equipment in a virtual interface;
A switching unit, configured to switch the first identifier to a second identifier, where the second identifier is used to indicate that the target component is in an adjustable state, where the first identifier overlaps with the target component;
the first display unit is used for displaying prompt information for adjusting the target component when the second identifier display time is longer than a preset threshold value, wherein the prompt information is used for prompting the target component to enter a first input corresponding to a state to be adjusted;
a first response unit for responding to a first input of the input device, wherein the target component is in a state to be regulated;
a second response unit, configured to respond to a second input of the input device, and adjust a position parameter of the target component corresponding to the second input;
and the second display unit is used for displaying the adjusted target assembly.
9. The device for adjusting a virtual interface according to claim 8, wherein the second response unit is specifically configured to:
responding to a second input acquired by the input equipment, and acquiring the distance between the target component and a user in the virtual interface;
determining an output-input ratio based on the distance; the output-input ratio represents a ratio of a unit displacement amount of the target component to a unit displacement amount of the first input, and the output-input ratio and the distance are positively correlated;
And adjusting a position parameter of the target component corresponding to the second input based on the output-input ratio.
10. An electronic device comprising a processor and a memory storing a program or instructions executable on the processor, which when executed by the processor, implement the steps of the method of adjusting a virtual interface as claimed in any one of claims 1 to 7.
CN202310597865.XA 2023-05-24 2023-05-24 Virtual interface adjusting method and electronic equipment Pending CN116627567A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310597865.XA CN116627567A (en) 2023-05-24 2023-05-24 Virtual interface adjusting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310597865.XA CN116627567A (en) 2023-05-24 2023-05-24 Virtual interface adjusting method and electronic equipment

Publications (1)

Publication Number Publication Date
CN116627567A true CN116627567A (en) 2023-08-22

Family

ID=87636204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310597865.XA Pending CN116627567A (en) 2023-05-24 2023-05-24 Virtual interface adjusting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN116627567A (en)

Similar Documents

Publication Publication Date Title
US20230017694A1 (en) Method and apparatus for controlling interface display, device, and storage medium
US10621766B2 (en) Character input method and device using a background image portion as a control region
CN112817555B (en) Volume control method and volume control device
CN113570609A (en) Image display method and device and electronic equipment
CN112954209A (en) Photographing method and device, electronic equipment and medium
CN116954387A (en) Terminal keyboard input interaction method, device, terminal and medium
CN115291778B (en) Display control method, display control device, electronic equipment and readable storage medium
CN111010528A (en) Video call method, mobile terminal and computer readable storage medium
CN116627567A (en) Virtual interface adjusting method and electronic equipment
CN115562539A (en) Control display method and device, electronic equipment and readable storage medium
CN115480639A (en) Human-computer interaction system, human-computer interaction method, wearable device and head display device
CN113286085B (en) Display control method and device and electronic equipment
CN112752029B (en) Focusing method, focusing device, electronic equipment and medium
CN112783998A (en) Navigation method and electronic equipment
CN106990843B (en) Parameter calibration method of eye tracking system and electronic equipment
CN114063876A (en) Virtual keyboard setting method, device and storage medium
CN113784192A (en) Screen projection method, screen projection device and electronic equipment
CN112732391B (en) Interface display method and device
US20230359338A1 (en) Screen content magnification method and device, and computer readable storage medium
CN112399127B (en) Video communication control method and device and electronic equipment
CN116027908A (en) Color acquisition method, device, electronic equipment and storage medium
CN118170301A (en) Screen operation method and device
CN117555412A (en) Interaction method, interaction device, electronic equipment and storage medium
CN114780051A (en) Parameter adjusting method and device
CN115658172A (en) Application account switching method and device, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination