Human-computer interaction method and device
By responding to user selection, sliding and rotation operations in SLG games, controlling the pre-selected status of virtual plots and displaying the identification controls, it solves the problem that users find it difficult to accurately select deformed virtual plots, and achieves a more efficient selection interactive experience.
Patent Information
- Application Number
- CN202210228524.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-08
- Publication Date
- 2025-04-22
- Estimated Expiration
- 2042-03-08
AI Technical Summary
In SLG games, it is difficult for users to accurately select virtual plots with visual forms and operation areas deformed due to lens angle and undulation of the lens, resulting in miss selection and additional operation steps.
By responding to user selection, sliding and rotation operations, the virtual plot is controlled to enter the pre-selected state, and the identification control is displayed in the associated area, and the virtual plot is switched to facilitate selection using the rotation center.
It reduces the miss selection rate of virtual plots, improves the experience of selection interaction, and reduces the operating costs of users.
Smart Images

Figure CN114588630B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of game technology, and in particular to a human-computer interaction method and a human-computer interaction device. Background Art
[0002] In SLG (Simulation Game, strategy game) games, the user's perspective is fixed by default, and the operation of the plot is generally to click to select, and then the relevant UI (User Interface) controls of the selected target will appear. This interaction method will cause the problem of plot deformation for three-dimensional terrain with undulating effects. At this time, when the user clicks on the plot, the plot clicked by the user may not be the plot that the user really wants to select, that is, a wrong selection will occur, thereby adding redundant operation steps. Therefore, in the existing solution, the user's selection operation of the plot is inconvenient, which increases the user's operation burden. Summary of the invention
[0003] In view of the above problems, embodiments of the present invention are proposed to provide a human-computer interaction method and a corresponding human-computer interaction device that overcome the above problems or at least partially solve the above problems.
[0004] The embodiment of the present invention discloses a human-computer interaction method, which provides a graphical user interface through a screen of a terminal device, wherein the graphical user interface displays at least part of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other, and wherein the method comprises:
[0005] In response to a first selection operation on a first virtual plot among the virtual plots, controlling the first virtual plot to enter a pre-selected state, and displaying a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot;
[0006] In response to a sliding operation in a direction of a target angle of the first virtual plot, determining a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle;
[0007] In response to a rotation operation on the rotation center, switching the pre-selected virtual plot to another virtual plot in the first set of virtual plots, and displaying a corresponding first identification control in an area associated with the pre-selected virtual plot;
[0008] In response to the completion of the rotation operation, a second virtual plot corresponding to the currently displayed first identification control is selected.
[0009] Optionally, the virtual plot is a three-dimensional model; and the first identification control is a polygon generated according to the height of the surface of the corresponding virtual plot.
[0010] Optionally, after controlling the first virtual plot to enter a pre-selected state, the method further includes:
[0011] A second identification control is displayed, where the second identification control is used to indicate the positions of the corners of the first virtual plot.
[0012] Optionally, after controlling the first virtual plot to enter a pre-selected state, the method further includes:
[0013] Displaying a third identification control in an area associated with the second identification control;
[0014] In response to the sliding operation in the direction of the target angle of the first virtual plot, determining the vertex of the target angle as the rotation center includes:
[0015] In response to a sliding operation toward a target angle direction of the first virtual plot, controlling the third identification control to move toward the target angle direction according to the sliding operation;
[0016] When the distance between the third identification control and the vertex of the target angle is less than a preset threshold, the third identification control is controlled to be adsorbed to the position where the vertex is located.
[0017] Optionally, after determining the vertex of the target angle as the rotation center, the method further includes:
[0018] A rotation indicator control is displayed in an area associated with the rotation center with a first preset transparency, and the rotation indicator control is used to prompt the user to perform a rotation operation.
[0019] Optionally, in the process of controlling the third identification control to move toward the target angle direction according to the sliding operation, the method further includes:
[0020] The rotation identification control is displayed in an area associated with the rotation center with a second preset transparency, and the second preset transparency is higher than the first preset transparency.
[0021] Optionally, the rotation logo control includes a first sub-control and a second sub-control;
[0022] After controlling the third identification control to be adsorbed to the position where the vertex is located, the method further includes:
[0023] In response to a rotation operation on the rotation center, the first sub-control is controlled to rotate on the second sub-control.
[0024] Optionally, when the second virtual plot corresponding to the currently displayed first identification control is selected, the method further includes:
[0025] An information control of the second virtual plot is displayed.
[0026] Optionally, in response to the rotation operation on the rotation center, switching the pre-selected virtual plot to another virtual plot in the first set of virtual plots, and displaying a corresponding first identification control in an area associated with the pre-selected virtual plot, comprises:
[0027] In response to a rotation operation on the rotation center, canceling a pre-selected state of the first virtual plot and hiding a first identification control corresponding to the first virtual plot;
[0028] The second virtual plot is controlled to enter a pre-selected state, and a first identification control corresponding to the second virtual plot is displayed in an associated area of the second virtual plot, wherein the second virtual plot is adjacent to the first virtual plot.
[0029] Optionally, when determining the vertex of the target angle as the rotation center, the method further includes:
[0030] The center of rotation is highlighted.
[0031] Optionally, after controlling the first virtual plot to enter a pre-selected state, the method further includes:
[0032] The virtual map where the virtual plot is located is locked.
[0033] Optionally, the second virtual plot is a virtual plot with visual deformation.
[0034] The embodiment of the present invention further discloses a human-computer interaction device, which provides a graphical user interface through a screen of a terminal device, wherein the graphical user interface displays at least part of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other, and wherein the device comprises:
[0035] a preselection module, configured to, in response to a first selection operation on a first virtual plot among the virtual plots, control the first virtual plot to enter a preselection state, and display a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot;
[0036] a sliding module, configured to determine, in response to a sliding operation in a direction of a target angle of the first virtual plot, a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle;
[0037] A rotation module, configured to switch the pre-selected virtual plot to another virtual plot in the first set of virtual plots in response to a rotation operation on the rotation center, and display a corresponding first identification control in an area associated with the pre-selected virtual plot;
[0038] The determination module is used to select the second virtual plot corresponding to the currently displayed first identification control in response to the end of the rotation operation.
[0039] An embodiment of the present invention further discloses an electronic device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements the steps of the human-computer interaction method described above when executed by the processor.
[0040] The embodiment of the present invention further discloses a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the human-computer interaction method described above are implemented.
[0041] The embodiments of the present invention include the following advantages:
[0042] In an embodiment of the present invention, in response to a first selection operation on a first virtual plot in the virtual plots, the first virtual plot is controlled to enter a preselected state, and a first identification control corresponding to the first virtual plot is displayed in an associated area of the first virtual plot; in response to a sliding operation in the direction of a target angle of the first virtual plot, the vertex of the target angle is determined as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle; in response to a rotation operation on the rotation center, the virtual plot in the preselected state is switched to another virtual plot in the first virtual plot set, and a corresponding first identification control is displayed in an area associated with the virtual plot in the preselected state; in response to the end of the rotation operation, a second virtual plot corresponding to the currently displayed first identification control is selected. In this solution, for a second virtual plot that is difficult to select directly, the adjacent first virtual plot can be preselected, and the preselected first virtual plot can be used as a medium for selection, thereby reducing misselection of virtual plots and improving the experience of selecting and interacting with virtual plots. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a flowchart of steps of an embodiment of a human-computer interaction method of the present invention;
[0044] Figure 2 is a flowchart of another embodiment of a human-computer interaction method of the present invention;
[0045] Figure 3is a schematic diagram of a second control of an embodiment of a human-computer interaction method of the present invention;
[0046] Figure 4a This is an interactive diagram of an example of a human-computer interaction method of the present invention. Figure 1 ;
[0047] Figure 4b This is an interactive diagram of an example of a human-computer interaction method of the present invention. Figure 2 ;
[0048] Figure 4c This is an interactive diagram of an example of a human-computer interaction method of the present invention. Figure 3 ;
[0049] Figure 4d is an interactive schematic diagram 4 of an example of a human-computer interaction method of the present invention;
[0050] Figure 5 is a structural block diagram of an embodiment of a human-computer interaction device of the present invention;
[0051] Figure 6 is a structural block diagram of an electronic device provided by an embodiment of the present invention;
[0052] Figure 7 It is a structural block diagram of a storage medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] When selecting virtual plots, some virtual plots are blocked by other virtual plots and only occupy a small portion of the displayed position. If the position of the virtual plot is clicked directly, it may result in a wrong selection and unnecessary operation steps.
[0055] For example, in a map of mountain terrain, click on the plot on the back of the mountain you want to select, but it is easy to mistakenly select the mountain plot with a larger area in front. If you mistakenly select a mountain plot with a larger area in front, the UI control that appears will also block the target plot you want to select. At this time, if you want to select a deformed plot, you need to move the map to a suitable viewing angle, and then click to select the target plot. It can be seen that when selecting a deformed terrain, there is a great probability of misselection; moving the map to find a suitable angle is very time-consuming, which greatly increases the user's operating cost. And if the later iterations of the game need to design a terrain that is closer to the actual situation (such as a mountain with a higher altitude), the display area of certain plots will be further compressed, resulting in a decrease in the user's operating experience. For this reason, an embodiment of the present invention proposes a human-computer interaction method to solve the problem that it is difficult for users to accurately select a deformed plot of visual form and operating area due to the lens angle and terrain undulations.
[0056] Reference Figure 1 , shows a flowchart of a human-computer interaction method embodiment of the present invention, wherein the present invention provides a graphical user interface through a display interface of a terminal device, wherein the graphical user interface displays at least part of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other,
[0057] In one embodiment of the present invention, the human-computer interaction method can be run on a local terminal device or a server. When the human-computer interaction method is run on a server, the human-computer interaction method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0058] In an optional implementation, various cloud applications, such as cloud games, can be run under the cloud interaction system. Taking cloud games as an example, cloud games refer to a game method based on cloud computing. In the operation mode of cloud games, the operating body of the game program and the main body of the game screen presentation are separated. The storage and operation of the three-dimensional plot selection method are completed on the cloud game server. The role of the client device is used for receiving and sending data and presenting the game screen. For example, the client device can be a display device with data transmission function close to the user side, such as a first terminal device, a TV, a computer, a handheld computer, etc.; but the human-computer interaction method is performed by the cloud game server in the cloud. When playing the game, the user operates the client device to send an operation instruction to the cloud game server. The cloud game server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the client device through the network. Finally, the client device decodes and outputs the game screen.
[0059] In an optional embodiment, taking a game as an example, a local terminal device stores a game program and is used to present a game screen. The local terminal device is used to interact with the user through a graphical user interface, that is, the game program is downloaded and installed by an electronic device and run conventionally. The local terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on a display screen of the terminal, or provided to the user through a holographic projection. For example, the local terminal device may include a display screen and a processor, the display screen is used to present a graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, and control the display of the graphical user interface on the display screen.
[0060] The method may specifically include the following steps:
[0061] Step 101, in response to a first selection operation on a first virtual plot among the virtual plots, controlling the first virtual plot to enter a pre-selected state, and displaying a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot;
[0062] When the user performs a selection operation on the first virtual plot on the graphical user interface, in response to the first selection operation on the first virtual plot, the first virtual plot is controlled to enter a pre-selected state; and the associated area of the first virtual plot displays a first identification control corresponding to the first virtual plot; wherein the associated area of the first virtual plot may be the display area of the first virtual plot in the graphical user interface, that is, when the first virtual plot enters the pre-selected state, the first virtual plot displays a first identification control on the display area of the graphical user interface. In addition, for the first identification control, its shape and size may be consistent with the associated area of the virtual plot in the pre-selected state, such as when the first virtual plot enters the pre-selected state, the shape and size of the first identification control are consistent with the first virtual plot.
[0063] Step 102, in response to a sliding operation in a direction of a target angle of the first virtual plot, determining a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle;
[0064] After the user preselects the first virtual plot, one of the direction angles in the first virtual plot can be selected as the target angle; the user can slide on the first virtual plot in the direction of the target angle, and in response to the sliding operation, the vertex of the target angle is determined as the rotation center. Among them, multiple virtual plots in the first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle. That is, the vertex of the target angle is the intersection point of multiple virtual plots in the first virtual plot set associated with the first virtual plot. It should be noted that the virtual plots in the first virtual plot set are virtual plots connected to the first virtual plot through the vertex of the target angle.
[0065] Step 103, in response to a rotation operation on the rotation center, switching the pre-selected virtual plot to another virtual plot in the first set of virtual plots, and displaying a corresponding first identification control in an area associated with the pre-selected virtual plot;
[0066] After the rotation center is selected, in response to the rotation operation on the rotation center, the virtual plot in the pre-selected state is continuously switched to other virtual plots in the first virtual plot set in the direction corresponding to the rotation operation with the rotation center as the center of the circle, and the corresponding first identification control is displayed in the area associated with the virtual plot in the pre-selected state. That is, other virtual plots connected to the first virtual plot through the vertex of the target angle will enter the pre-selected state according to the direction of the rotation operation, and the corresponding first identification control will be displayed in the associated area.
[0067] Step 104 , in response to the end of the rotation operation, selecting a second virtual plot corresponding to the currently displayed first identification control.
[0068] When the user finishes the rotation operation, the first identification control currently displayed on the graphical user interface is selected to enter the second virtual plot in a pre-selected state.
[0069] In an embodiment of the present invention, in response to a first selection operation on a first virtual plot in the virtual plots, the first virtual plot is controlled to enter a preselected state, and a first identification control corresponding to the first virtual plot is displayed in an associated area of the first virtual plot; in response to a sliding operation in the direction of a target angle of the first virtual plot, the vertex of the target angle is determined as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle; in response to a rotation operation on the rotation center, the virtual plot in the preselected state is switched to another virtual plot in the first virtual plot set, and a corresponding first identification control is displayed in an area associated with the virtual plot in the preselected state; in response to the end of the rotation operation, a second virtual plot corresponding to the currently displayed first identification control is selected. In this solution, for a second virtual plot that is difficult to select directly, the adjacent first virtual plot can be preselected, and the preselected first virtual plot can be used as a medium for selection, thereby reducing misselection of virtual plots and improving the experience of selecting and interacting with virtual plots.
[0070] Reference Figure 2 , showing a step flow chart of another embodiment of a human-computer interaction method of the present invention; the method provides a graphical user interface through a screen of a terminal device, and the graphical user interface displays at least part of a virtual scene, and the virtual scene includes a plurality of virtual plots connected to each other.
[0071] Step 201, in response to a first selection operation on a first virtual plot among the virtual plots, controlling the first virtual plot to enter a pre-selected state, and displaying a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot; the virtual plot is a three-dimensional model; and the first identification control is a polygon generated according to the height of the surface of the corresponding virtual plot;
[0072] In an embodiment of the present invention, the virtual plot is a three-dimensional model, that is, the virtual plot is presented in the style of a three-dimensional plot on the graphical user interface. Since the perspective of the graphical user interface is fixed, some virtual plots will be blocked by other virtual plots and difficult to select. The user can perform a first selection operation on the graphical user interface for a first virtual plot that is not blocked or is less blocked in the virtual plot. In response to the first selection operation, the first virtual plot is controlled to enter a pre-selected state, and a first identification control corresponding to the first virtual plot is displayed in the associated area of the first virtual plot, so that the user can determine that the first virtual plot is selected, but the specific information of the first virtual plot is not displayed at this time, so as to avoid the specific information of the first virtual plot blocking other virtual plots on the graphical user interface.
[0073] Furthermore, in actual applications, the first identification control can be a polygon generated according to the height of the corresponding virtual plot surface, so that the first identification control can match the virtual plot surface and more accurately display the virtual plot. In addition, the first identification control can also be set to a color different from the background color to highlight the first identification control on the graphical user interface.
[0074] Step 202, locking the virtual map where the virtual plot is located;
[0075] After the first virtual plot is controlled to enter the pre-selected state, in order to prevent the virtual map where the virtual plot is located from moving due to subsequent operations by the user, the virtual map may be locked so that the virtual map is fixed to the screen when the first virtual plot is selected.
[0076] Step 203: display a second identification control, where the second identification control is used to indicate the positions of the corners of the first virtual plot;
[0077] After controlling the first virtual plot to enter the pre-selected state, in order for the user to conveniently select the positions of the corners of the first virtual plot and slide in a specific direction, a second identification control may be displayed, and the second identification control is used to represent the positions of the corners of the first virtual plot. The second identification control may be displayed in the associated area of the first virtual plot for easy operation. The second identification control may specifically be a polygon, and the corners of the polygon correspond to the corners of the first virtual plot. Furthermore, in order to avoid complicated operations due to too many corners, the second identification control may be generated by guiding the positions of the corners of part of the first virtual plot. For example, Figure 3 , only the positions of the four corners of the first virtual plot are guided, and a quadrilateral second identification control is displayed.
[0078] Step 204, displaying a third identification control in the associated area of the second identification control;
[0079] After the first virtual plot is controlled to enter the pre-selected state, a third identification control may be displayed in the associated area of the second identification control, and the third identification control is used to represent the location of the current operation. The associated area of the second identification control may be the inner area of the second identification control, so that the display of the second identification control and the third identification control can be linked.
[0080] Step 205, in response to the sliding operation in the direction of the target angle of the first virtual plot, determining the vertex of the target angle as the rotation center, wherein a plurality of virtual plots in the first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle;
[0081] In response to a sliding operation in the direction of a target angle of the first virtual plot, one of the vertex angles of the first virtual plot is selected as the target angle, and the vertex of the target angle is determined as the rotation center, wherein multiple virtual plots in the first virtual plot set associated with the first virtual plot are connected to the first virtual plot at the vertex.
[0082] Furthermore, the rotation center may be highlighted so that the user can clearly select the rotation center and avoid misselecting the rotation center.
[0083] In an optional embodiment of the present invention, in response to the sliding operation in the direction of the target angle of the first virtual plot, determining the vertex of the target angle as the rotation center includes:
[0084] Sub-step S2051, in response to a sliding operation toward a target angle direction of the first virtual plot, controlling the third identification control to move toward the target angle direction according to the sliding operation;
[0085] In response to the sliding operation toward the target angle direction of the first virtual land parcel, the specific moving direction of the moving operation is determined, such as up, down, left, and right. The target angle direction is determined according to the moving direction, and the third identification control is controlled to move toward the target angle direction.
[0086] Sub-step S2052, when the distance between the third identification control and the vertex of the target angle is less than a preset threshold, controlling the third identification control to be adsorbed to the position where the vertex is located;
[0087] During the movement of the third identification control, the distance between the third identification control and the vertex of the target angle can be determined in real time. When the distance between the two is less than a preset threshold, the third identification control can be controlled to be adsorbed to the position of the vertex, and the position of the vertex is determined as the rotation center; the user does not need to move the third identification control over a large range, thereby improving the efficiency of the operation. For example, when the moving direction is upward, the third identification control is adsorbed to the vertex of the target angle at the top of the first virtual plot. For the preset threshold, those skilled in the art can determine it according to the size of the graphical user interface, and the embodiment of the present invention does not specifically limit this.
[0088] Step 206, displaying a rotation indicator control with a first preset transparency in the area associated with the rotation center, wherein the rotation indicator control is used to prompt the user to perform a rotation operation;
[0089] After the rotation center is determined, a rotation indicator control may be displayed with a first preset transparency in an area associated with the rotation center, and the user may be prompted to perform a rotation operation through the rotation indicator control. The area associated with the rotation center may be an area outside an area associated with the first virtual plot. Furthermore, in order to visually distinguish the rotation indicator control from the first virtual plot, the first preset transparency may be greater than the display transparency of the first virtual plot on the graphical user interface.
[0090] In addition, in the process of controlling the third identification control to move toward the target angle according to the sliding operation, the rotating identification control can be displayed in the area associated with the rotation center with a second preset transparency, wherein the second preset transparency is higher than the first preset transparency. That is, in the process of controlling the third identification control to move toward the target angle, the rotating identification control gradually appears at the rotation center, so that the user can directly display the rotating identification control after controlling the movement of the third identification control to assist the user in performing the rotation operation.
[0091] Step 207: in response to the rotation operation on the rotation center, cancel the pre-selected state of the first virtual plot, and hide the first identification control corresponding to the first virtual plot;
[0092] In the embodiment of the present invention, in response to the selection operation for the rotation center, the pre-selected state of the first virtual plot is canceled, so that the first virtual plot is not in a selected state, and the first identification control corresponding to the first virtual plot is hidden to avoid user's misoperation. The rotation operation can be clockwise or counterclockwise, which is not specifically limited in the embodiment of the present invention.
[0093] Furthermore, the rotation indicator control includes a first sub-control and a second sub-control; the first sub-control is located on the second sub-control, the first sub-control is used to represent the current rotation position, and the second sub-control represents the direction of rotation. In response to the selection operation for the rotation center, the first sub-control can be controlled to rotate on the second sub-control to assist the user in determining the specific rotation direction and rotation position of the rotation operation.
[0094] Step 208, controlling the second virtual plot to enter a pre-selected state, and displaying a first identification control corresponding to the second virtual plot in an associated area of the second virtual plot, wherein the second virtual plot is adjacent to the first virtual plot;
[0095] According to the direction of the rotation operation, around the rotation center, the pre-selected state is switched to the second virtual plot adjacent to the first virtual plot, the corresponding second virtual plot is controlled to be in the pre-selected state, and the corresponding first identification control is displayed in the associated area of the second virtual plot. The first identification control is a polygon generated by the height of the surface of the second virtual plot. It should be noted that the switching speed can be determined by the speed of the rotation operation.
[0096] Furthermore, the second virtual plot is a virtual plot with visual deformation.
[0097] In practical applications, the second virtual plot may be a virtual plot with visual deformation, so that the pre-selection operation is performed only on the plot with visual deformation, avoiding the selection of the plot without visual deformation, and further improving the interaction efficiency. The visually deformed virtual plot refers to a virtual plot that is incompletely displayed due to the height or undulation effect of the model of the virtual plot when the virtual plot is displayed on the graphical user interface at a fixed viewing angle of the graphical user interface.
[0098] Step 209 , in response to the end of the rotation operation, selecting a second virtual plot corresponding to the currently displayed first identification control.
[0099] When it is determined that the second virtual plot corresponding to the currently displayed first identification control is the plot to be selected, in response to the end of the rotation operation, the second virtual plot corresponding to the currently displayed first identification control is selected to complete the selection of the virtual plot. The end of the rotation operation may be when the user does not rotate within a preset time, or when the touch point leaves the user graphical interface.
[0100] Further, after the second virtual plot is selected, an information control of the second virtual plot may be displayed. The information control displays the plot information of the second virtual plot. The plot information may include the location and size of the plot, and those skilled in the art may further add other information according to actual conditions, which is not specifically limited in the embodiments of the present invention.
[0101] In an embodiment of the present invention, in response to a first selection operation on a first virtual plot in the virtual plots, the first virtual plot is controlled to enter a preselected state, and a first identification control corresponding to the first virtual plot is displayed in an associated area of the first virtual plot; the virtual plot is a three-dimensional model; the first identification control is a polygon generated according to the height of the surface of the corresponding virtual plot; the virtual map where the virtual plot is located is locked; a second identification control is displayed, and the second identification control is used to represent the position of each corner of the first virtual plot; a third identification control is displayed in an associated area of the second identification control; in response to a sliding operation in the direction of a target angle of the first virtual plot, the vertex of the target angle is determined as the rotation center, wherein, A plurality of virtual plots in the first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle; a rotation identification control is displayed with a first preset transparency in the area associated with the rotation center, and the rotation identification control is used to prompt the user to perform a rotation operation; in response to the rotation operation on the rotation center, the pre-selected state of the first virtual plot is canceled, and the first identification control corresponding to the first virtual plot is hidden; the second virtual plot is controlled to enter the pre-selected state, and the first identification control corresponding to the second virtual plot is displayed in the associated area of the second virtual plot, wherein the second virtual plot is adjacent to the first virtual plot; in response to the end of the rotation operation, the second virtual plot corresponding to the currently displayed first identification control is selected. By rotating around the first virtual plot that is easy to select and selecting the adjacent second virtual plot, the problem that it is difficult for users to accurately select a virtual plot whose visual form and operation area are deformed due to the lens angle and terrain undulation is solved, and the selection and interaction experience of the deformed plot is improved. In addition, the plot information is not displayed in the pre-selected state, and only when the second virtual plot is selected, the specific information control is displayed to display the plot information of the second virtual plot, thereby reducing the burden of information processing for users during operation.
[0102] In order to enable those skilled in the art to better understand the embodiments of the present invention, the embodiments of the present application are described below by using an example:
[0103] You can refer to Figure 4a-4d , showing the selection process for the 3D plot (for 3D plot 1) that is deformed due to the fixed perspective of the game:
[0104] like Figure 4a When the second virtual plot (3D plot 1) needs to be selected, the 3D plots around it that are easier to select can be selected first, so the 3D plot 2 can be selected. First, in response to the long press operation of the user's finger, the 3D plot 2 is selected to become the first virtual plot, and the first virtual plot is controlled to enter the pre-selected state, and the first identification control is displayed on the first virtual plot. Figure 4bAs shown, in response to the user's upward sliding operation, the top corner above the corresponding three-dimensional plot 2 is selected as the rotation center.
[0105] Then as Figure 4c As shown, after selecting the top corner above the three-dimensional plot 2 as the rotation center, the first sub-control 3 and the second sub-control 4 of the rotation identification control are displayed. In response to the user's finger drawing a circle on the first sub-control 3 along the clockwise or counterclockwise direction of the second sub-control 4, the pre-selected state of the three-dimensional plot 2 will change clockwise or counterclockwise in the nearby plots with the selected rotation center.
[0106] like Figure 4d As shown, when the pre-selected state is the three-dimensional plot 1 that the user wants to select, the three-dimensional plot 1 can be changed to the "selected" state in response to the user's release operation, thereby completing the selection of the three-dimensional plot 1.
[0107] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0108] Reference Figure 5 , shows a structural block diagram of an embodiment of a human-computer interaction device of the present invention, wherein a graphical user interface is provided through a screen of a terminal device, wherein the graphical user interface displays at least part of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other, and the device may specifically include the following modules:
[0109] A preselection module 501 is used for, in response to a first selection operation on a first virtual plot among the virtual plots, controlling the first virtual plot to enter a preselection state, and displaying a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot;
[0110] a sliding module 502, configured to determine, in response to a sliding operation in a direction of a target angle of the first virtual plot, a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle;
[0111] A rotation module 503, configured to switch the pre-selected virtual plot to another virtual plot in the first set of virtual plots in response to a rotation operation on the rotation center, and display a corresponding first identification control in an area associated with the pre-selected virtual plot;
[0112] The determination module 504 is configured to select, in response to the end of the rotation operation, a second virtual plot corresponding to the currently displayed first identification control.
[0113] In an optional embodiment of the present invention, the virtual plot is a three-dimensional model; and the first identification control is a polygon generated according to the height of the surface of the corresponding virtual plot.
[0114] In an optional embodiment of the present invention, the device further comprises:
[0115] The first display module is used to display a second identification control, where the second identification control is used to indicate the positions of the corners of the first virtual plot.
[0116] In an optional embodiment of the present invention, the device further comprises:
[0117] A second display module, configured to display a third identification control in an associated area of the second identification control;
[0118] The sliding module 502 includes:
[0119] a moving submodule, configured to, in response to a sliding operation toward a target angle direction of the first virtual plot, control the third identification control to move toward the target angle direction according to the sliding operation;
[0120] The adsorption submodule is used to control the third identification control to be adsorbed to the position where the vertex is located when the distance between the third identification control and the vertex of the target angle is less than a preset threshold.
[0121] In an optional embodiment of the present invention, the device further comprises:
[0122] The third display module is used to display a rotation mark control with a first preset transparency in an area associated with the rotation center, and the rotation mark control is used to prompt the user to perform a rotation operation.
[0123] In an optional embodiment of the present invention, the device further comprises:
[0124] A fourth display module is used to display the rotation identification control with a second preset transparency in an area associated with the rotation center, and the second preset transparency is higher than the first preset transparency.
[0125] In an optional embodiment of the present invention, the rotating identification control includes a first sub-control and a second sub-control; the device further includes:
[0126] The rotation selection module is used to control the first sub-control to rotate on the second sub-control in response to a rotation operation on the rotation center.
[0127] In an optional embodiment of the present invention, the device further comprises:
[0128] A fifth display module is used to display the information control of the second virtual plot.
[0129] In an optional embodiment of the present invention, the rotation module 503 includes:
[0130] a rotation submodule, configured to cancel the pre-selected state of the first virtual plot and hide the first identification control corresponding to the first virtual plot in response to a rotation operation on the rotation center;
[0131] The control submodule is used to control the second virtual plot to enter a pre-selected state, and to display a first identification control corresponding to the second virtual plot in an associated area of the second virtual plot, wherein the second virtual plot is adjacent to the first virtual plot.
[0132] In an optional embodiment of the present invention, the device further comprises:
[0133] The sixth display module is used to highlight the rotation center.
[0134] In an optional embodiment of the present invention, the device further comprises:
[0135] The locking module is used to lock the virtual map where the virtual plot is located.
[0136] In an optional embodiment of the present invention, the second virtual plot is a virtual plot with visual deformation.
[0137] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0138] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0139] The embodiment of the present invention further provides an electronic device, such as Figure 6 As shown, including:
[0140] A processor 601 and a storage medium 602, wherein the storage medium 602 stores machine-readable instructions executable by the processor 601, and when the electronic device is running, the processor 601 executes the machine-readable instructions to perform a method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.
[0141] The embodiment of the present invention also provides a computer readable storage medium, such as Figure 7 As shown, the storage medium stores a computer program 701, and the computer program 701 is executed by a processor to execute the method as described in any one of the embodiments of the present invention. The specific implementation method and technical effect are similar to those of the method embodiment, and will not be repeated here.
[0142] It will be appreciated by those skilled in the art that the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0143] The embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0146] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
[0147] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0148] The human-computer interaction method and device provided by the present invention are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for general technicians in this field, according to the idea of the present invention, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present invention.
Claims
1. A human-computer interaction method, characterized in that: A graphical user interface is provided through a screen of a terminal device, wherein the graphical user interface displays at least a portion of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other, wherein the method comprises: In response to a first selection operation on a first virtual plot among the virtual plots, controlling the first virtual plot to enter a pre-selected state, and displaying a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot; In response to a sliding operation in a direction of a target angle of the first virtual plot, determining a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle; In response to a rotation operation on the rotation center, the pre-selected virtual plot is switched to another virtual plot in the first set of virtual plots, and a first identification control corresponding to another virtual plot in the first set of virtual plots is displayed in an area associated with the pre-selected virtual plot; In response to the completion of the rotation operation, a second virtual plot corresponding to the currently displayed first identification control is selected.
2. The method according to claim 1, characterized in that The virtual plot is a three-dimensional model; the first identification control is a polygon generated according to the height of the corresponding virtual plot surface.
3. The method according to claim 1, characterized in that After controlling the first virtual plot to enter a pre-selected state, the method further includes: A second identification control is displayed, where the second identification control is used to indicate the positions of the corners of the first virtual plot.
4. The method according to claim 3, characterized in that After controlling the first virtual plot to enter a pre-selected state, the method further includes: Displaying a third identification control in an area associated with the second identification control; In response to the sliding operation in the direction of the target angle of the first virtual plot, determining the vertex of the target angle as the rotation center includes: In response to a sliding operation toward a target angle direction of the first virtual plot, controlling the third identification control to move toward the target angle direction according to the sliding operation; When the distance between the third identification control and the vertex of the target angle is less than a preset threshold, the third identification control is controlled to be adsorbed to the position where the vertex is located.
5. The method according to claim 4, characterized in that After determining the vertex of the target angle as the rotation center, the method further includes: A rotation indicator control is displayed in an area associated with the rotation center with a first preset transparency, and the rotation indicator control is used to prompt the user to perform a rotation operation.
6. The method according to claim 5, characterized in that In the process of controlling the third identification control to move toward the target angle direction according to the sliding operation, the method further includes: The rotation identification control is displayed in an area associated with the rotation center with a second preset transparency, where the second preset transparency is higher than the first preset transparency.
7. The method according to claim 5, characterized in that The rotation mark control includes a first sub-control and a second sub-control; After controlling the third identification control to be adsorbed to the position where the vertex is located, the method further includes: In response to a rotation operation on the rotation center, the first sub-control is controlled to rotate on the second sub-control.
8. The method according to claim 1, characterized in that When the second virtual plot corresponding to the currently displayed first identification control is selected, the method further includes: An information control of the second virtual plot is displayed.
9. The method according to claim 1, characterized in that: In response to the rotation operation on the rotation center, switching the pre-selected virtual plot to another virtual plot in the first set of virtual plots, and displaying a corresponding first identification control in an area associated with the pre-selected virtual plot, comprises: In response to a rotation operation on the rotation center, canceling a pre-selected state of the first virtual plot and hiding a first identification control corresponding to the first virtual plot; The second virtual plot is controlled to enter a pre-selected state, and a first identification control corresponding to the second virtual plot is displayed in an associated area of the second virtual plot, wherein the second virtual plot is adjacent to the first virtual plot.
10. The method according to claim 1, characterized in that When the vertex of the target angle is determined as the rotation center, the method further includes: The center of rotation is highlighted.
11. The method according to claim 1, characterized in that: After controlling the first virtual plot to enter a pre-selected state, the method further includes: The virtual map where the virtual plot is located is locked.
12. The method according to claim 1, characterized in that The second virtual plot is a virtual plot with visual deformation; the virtual plot with visual deformation is a virtual plot that, when displayed on the graphical user interface at a fixed viewing angle of the graphical user interface, is displayed incompletely due to the height or undulating effect of the model of the virtual plot.
13. A human-computer interaction device, characterized in that: A graphical user interface is provided through a screen of a terminal device, wherein the graphical user interface displays at least a portion of a virtual scene, wherein the virtual scene includes a plurality of virtual plots connected to each other, wherein the device comprises: a preselection module, configured to, in response to a first selection operation on a first virtual plot among the virtual plots, control the first virtual plot to enter a preselection state, and display a first identification control corresponding to the first virtual plot in an associated area of the first virtual plot; a sliding module, configured to determine, in response to a sliding operation in a direction of a target angle of the first virtual plot, a vertex of the target angle as a rotation center, wherein a plurality of virtual plots in a first virtual plot set associated with the first virtual plot intersect at the vertex of the target angle; a rotation module, configured to switch the pre-selected virtual plot to another virtual plot in the first set of virtual plots in response to a rotation operation on the rotation center, and display first identification controls corresponding to the other virtual plots in the first set of virtual plots in an area associated with the pre-selected virtual plot; The determination module is used to select the second virtual plot corresponding to the currently displayed first identification control in response to the end of the rotation operation.
14. An electronic device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and capable of running on the processor, wherein when the computer program is executed by the processor, the steps of the human-computer interaction method according to any one of claims 1 to 12 are implemented.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the human-computer interaction method according to any one of claims 1 to 12 are implemented.
Citation Information
Patent Citations
Map region generation method in virtual environment, display method and device
CN110478900A
Game control method and device, equipment and storage medium
CN113900570A