Method and apparatus for displaying orientation hint information, computer program, and electronic device
By mapping the target sound's spatial position onto a three-dimensional virtual sphere within the game screen, the method improves the accuracy of azimuth hint information display, addressing the limitations of two-dimensional representations in virtual game scenes.
Patent Information
- Application Number
- JP2024564591
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-09-08
- Filing Date
- 2023-08-01
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2043-08-01
AI Technical Summary
Existing methods for displaying azimuth hint information in virtual game scenes are limited, as they only accurately convey two-dimensional azimuth information, failing to accurately distinguish three-dimensional azimuth information, leading to low accuracy in player orientation determination.
The method involves displaying a game screen with a first virtual character, where the second spatial position of a target sound is mapped onto a three-dimensional virtual sphere, with the first spatial position of the virtual character at the center. This representation includes a first mark, a second mark, and a connecting line, which accurately indicates the azimuth of the target sound relative to the virtual character.
This approach enhances the accuracy of displaying azimuth hint information by incorporating three-dimensional display elements, allowing players to more accurately determine the orientation of sounds in the game environment.
Smart Images

Figure 2025516272000001_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application filed with the State Intellectual Property Office of China on September 8, 2022, with an application number of 202211097497.4 and an invention title of "Method and Apparatus for Displaying Azimuth Hint Information, Storage Medium, and Electronic Device", and all of its contents are incorporated herein by reference.
[0002] This application relates to the technical field of computers, and specifically, to a method and apparatus for displaying azimuth hint information, a storage medium, and an electronic device.
Background Art
[0003] In a virtual game scene, usually, by providing azimuth hints for the surrounding sounds or being hit information of the player, it helps the user to determine whether they are in danger in the current game or to determine the azimuth where the virtual character performing the virtual attack is located.
[0004] For example, in a virtual shooting game, usually, the target sound is presented in the following two ways. One is to project all sounds onto the xz-axis plane, calculate the angle between the connecting line of the sound and the player and the direction of the player, and display the sound mark on the disk around the aiming point accordingly. The other is to display the sound icon within the circular area around the position of the player on the minimap.
[0005] However, with the above two methods, only the azimuth information of the plane where the xz-axis is located can be expressed, but the three-dimensional azimuth information in the y-axis direction cannot be accurately distinguished. Therefore, the player cannot accurately determine the azimuth information where the sound is located, causing the technical problem of low accuracy in the process of displaying the azimuth hint information.
[0006] Currently, no effective solution has been proposed for the above problems.
Summary of the Invention
Problems to be Solved by the Invention
[0007] An embodiment of the present application provides a method and apparatus for displaying azimuth indication information, a storage medium, and an electronic device, at least to solve the technical problem of low accuracy occurring in the process of displaying azimuth indication information.
Means for Solving the Problems
[0008] According to an aspect of an embodiment of the present application, there are provided steps of: displaying a game screen of a first virtual character on a target game application; and when a target sound is generated at a second spatial position, displaying first azimuth indication information of the target sound on the target game application, where the first azimuth indication information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark, the first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates a first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates a projection of the second spatial position where the target sound is located onto the three-dimensional virtual sphere, and the first connecting line indicates the azimuth of the second spatial position relative to the first spatial position.
[0009] Preferably, the first azimuth indication information further includes longitude and latitude lines of the second mark on the three-dimensional virtual sphere.
[0010] Preferably, the step of displaying the first azimuth indication information of the target sound on the target game application includes steps of: displaying the first mark and the first connecting line on the target game application, and displaying the second mark according to a first display parameter, where the value of the first display parameter corresponds to a target distance, and the target distance is the distance from the second spatial position to the first spatial position.
[0011] Preferably, the step of displaying the second mark according to the first display parameter is, when the first display parameter is a transparency parameter, the step of displaying the second mark according to the transparency parameter, where the value of the transparency parameter includes the step of indicating the transparency of the second mark when displaying the second mark, or, when the first display parameter is a color parameter, the step of displaying the second mark according to the color parameter, where the value of the color parameter includes the step of indicating the color of the second mark when displaying the second mark.
[0012] Preferably, the step of displaying the first azimuth presentation information of the target voice in the target game application is the step of displaying the first mark and the first connecting line in the target game application and displaying the second mark according to the second display parameter, where the value of the second display parameter includes the step corresponding to the intensity of the target voice.
[0013] Preferably, the step of displaying the second mark according to the second display parameter is, when the second mark is a sound wave-shaped mark and the second display parameter is a sound wave amplitude parameter, the step of displaying the sound wave-shaped mark according to the sound wave amplitude parameter, where the value of the sound wave amplitude parameter indicates the amplitude of the sound wave-shaped mark when displaying the sound wave-shaped mark, and the value of the sound wave amplitude parameter includes the step having a positive correlation with the intensity of the target voice, or, when the second mark is a linear mark and the second display parameter is a line height parameter, the step of displaying the linear mark according to the line height parameter, where the value of the line height parameter indicates the line height of the linear mark when displaying the linear mark, and the value of the line height parameter includes the step having a positive correlation with the intensity of the target voice.
[0014] Preferably, when the virtual attack executed by the second virtual character hits the first virtual character, the method further includes a step of displaying, in the target game application, second orientation presentation information of the second virtual character, where the second orientation presentation information includes a first mark, a third mark, and a second connecting line from the first mark to the third mark, the third mark is located on the surface of a three-dimensional virtual sphere, the third mark indicates a projection of the third spatial position where the second virtual character is located onto the three-dimensional virtual sphere, and the second connecting line indicates an orientation of the third spatial position where the second virtual character is located with respect to the first spatial position.
[0015] Preferably, the second orientation presentation information further includes the longitude and latitude lines of the third mark on the three-dimensional virtual sphere.
[0016] Preferably, the step of displaying, in the target game application, first orientation presentation information of a target voice includes: when the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, displaying, in the target game application, the first mark and the first connecting line, and displaying the target grid marked with a target color; or when the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, displaying, in the target game application, the first mark and the first connecting line, and displaying the grids of a part of the regions on the surface of the three-dimensional virtual sphere, where the grids of the part of the regions include the target grid marked with a target color and a set of grids marked with a color that is not marked or a color different from the target color.
[0017] Preferably, when the target voice is generated at the second spatial position, the method includes a step of displaying third azimuth presentation information on a thumbnail map in the target game application, where the thumbnail map displays planar map information obtained by mapping a three-dimensional game scene where a first virtual character is located onto a target plane. The first spatial position is located on the target plane, and the third azimuth presentation information includes an azimuth of the planar projection position on the target plane relative to the first spatial position and a target direction mark. The planar projection position is the projection position of the second spatial position onto the target plane, and the target direction mark indicates that the second spatial position is located above or below the target plane.
[0018] Preferably, the step of displaying first azimuth presentation information of the target voice in the target game application includes: obtaining the first spatial position where the first virtual character is located and the second spatial position where the target voice is generated; when the distance between the first spatial position and the second spatial position is equal to or less than a predetermined distance threshold, mapping the first spatial position to the center of a three-dimensional virtual sphere according to the same mapping relationship, displaying a first mark at the center of the three-dimensional virtual sphere, and mapping the second spatial position to a target mapping position in the three-dimensional space where the three-dimensional virtual sphere is located; determining the position where a target connecting line intersects the surface of the three-dimensional virtual sphere, displaying a second mark at the intersecting position, and displaying a first connecting line, where the target connecting line is a connecting line passing through the center of the three-dimensional virtual sphere and the target mapping position.
[0019] According to another aspect of the embodiments of the present application, there is provided a display device for presenting orientation information, including: a first display unit that displays a game screen of a first virtual character on a target game application; and a first processing unit that, when a target sound is generated at a second spatial position, displays first orientation presentation information of the target sound on the target game application, where the first orientation presentation information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark, the first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates a first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates a projection of the second spatial position where the target sound is located onto the three-dimensional virtual sphere, and the first connecting line indicates the orientation of the second spatial position relative to the first spatial position.
[0020] According to still another aspect of the embodiments of the present application, there is further provided a computer-readable storage medium storing a computer program, where the computer program is configured to execute the above method for presenting orientation information when executed.
[0021] According to still another aspect of the embodiments of the present application, there is further provided a computer program product including a computer program or instructions, where when the computer program or instructions are executed by a processor, the steps of the above method are realized.
[0022] According to still another aspect of the embodiments of the present application, there is further provided an electronic device including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute the method for presenting orientation information according to the computer program.
Advantages of the Invention
[0023] According to the above embodiments of the present application, in a game screen for displaying a first virtual character, the second spatial position where the target voice is located and the first spatial position where the first virtual character is located are respectively mapped to the center (first mark) of a three-dimensional virtual sphere and a second mark on the surface, and the first connecting line between the first mark and the second mark is used to indicate the orientation of the second spatial position with respect to the first spatial position. In other words, by adding display information in the y-axis direction to the three-dimensional virtual sphere, the orientation presentation information of the target voice is made more accurate, avoiding the technical problem of low accuracy occurring in the process of displaying the orientation presentation information, and realizing the technical effect of improving the display accuracy of the orientation presentation information.
Brief Description of the Drawings
[0024] The drawings described here are for providing a further understanding of the present application, and are a part of the present application. The exemplary embodiments and their descriptions of the present application are for interpreting the present application and do not unduly limit the present application.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Mode for Carrying Out the Invention
[0025] For those skilled in the art to better understand the solution means of the present application, hereinafter, with reference to the drawings in the embodiments of the present application, the technical solution means in the embodiments of the present application will be clearly and completely described. Obviously, the described embodiments are only a part of the embodiments of the present application, not all of them. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the protection scope of the present application.
[0026] Note that terms such as "first" and "second" in the specification, claims, and drawings of this application are not used to describe a specific order or sequence, but are used to distinguish similar objects. It should be understood that data used in this way can be appropriately exchanged so that the embodiments of this application described in this specification can be implemented in an order other than those illustrated or described in this specification. Also, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device comprising a series of steps or units is not limited to the explicitly shown steps or units, and may include other steps or units not explicitly shown or inherent to these processes, methods, products, or devices.
[0027] According to one aspect of the embodiments of this application, a method for displaying orientation presentation information is provided. As one preferred embodiment, the above method for displaying orientation presentation information may be applied to the application scenario shown in FIG. 1, but is not limited thereto. In an application scenario as shown in FIG. 1, the terminal device 102 can communicate with the server 106 via the network 104, but is not limited thereto. The server 106 can perform operations on the database 108, such as data writing operations or data reading operations, but is not limited thereto. The above terminal device 102 may include, but is not limited to, a human-computer interaction screen, a processor, and a memory. The above human-computer interaction screen may display, but is not limited to, a game screen on the terminal device 102, a second mark on a three-dimensional virtual sphere, and a first connecting line between the first mark and the second mark. The above processor responds to the above human-computer interaction operation, executes corresponding operations, or generates corresponding instructions, and transmits the generated instructions to the server 106, but is not limited thereto. The above memory stores related processing data such as a first spatial position, a second spatial position, and a first connecting line.
[0028] As one preferred embodiment, on server 106, in the method for displaying azimuth prompt information, step S102 of displaying a game screen of a first virtual character in a target game application, and when a target voice is generated at a second spatial position, step of displaying first azimuth prompt information of the target voice in the target game application, where the first azimuth prompt information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark, the first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates the first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates the projection of the second spatial position where the target voice is located onto the three-dimensional virtual sphere, and the first connecting line indicates the azimuth of the second spatial position relative to the first spatial position, and step S104 can be executed.
[0029] As a preferred example, this embodiment does not limit the execution entity of the above steps S102 to S104. For example, the above steps S102 to S104 may all be executed on the terminal device 102 or the server 106, or part of them may be executed on the terminal device 102 and part of them may be executed on an arithmetic server that communicates with the server 106.
[0030] According to the above embodiment, in the game screen displaying the first virtual character, the second spatial position where the target voice is located and the first spatial position where the first virtual character is located are respectively mapped to the center (first mark) of the three-dimensional virtual sphere and the second mark on the surface, and the first connecting line between the first mark and the second mark is used to indicate the azimuth of the second spatial position relative to the first spatial position. In other words, by adding display information in the y-axis direction to the three-dimensional virtual sphere, the azimuth prompt information of the target voice is made more accurate, avoiding the technical problem of low accuracy occurring in the process of displaying the azimuth prompt information, and realizing the technical effect of improving the display accuracy of the azimuth prompt information.
[0031] In order to solve the problem of low accuracy occurring in the process of displaying the above orientation prompt information, an embodiment of the present application provides a method for displaying orientation prompt information. FIG. 2 is a flowchart of the method for displaying orientation prompt information according to the embodiment of the present application, and the flow includes the following steps S202 to S204.
[0032] In step S202, a game screen of a first virtual character is displayed on a target game application.
[0033] In step S204, when a target sound is generated at a second spatial position, first orientation prompt information of the target sound is displayed on the target game application. The first orientation prompt information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark. The first mark is located at the center of a three-dimensional virtual sphere, and the first mark indicates the first spatial position where the first virtual character is located. The second mark is located on the surface of the three-dimensional virtual sphere, and the second mark indicates the projection of the second spatial position where the target sound is located onto the three-dimensional virtual sphere. The first connecting line indicates the orientation of the second spatial position with respect to the first spatial position.
[0034] As shown in FIG. 3(a), in the game screen displayed on the target application, the first virtual character is located at the first spatial position, and it is assumed that a target sound V 0 is generated at the second spatial position. The target sound V 0 may be a sound emitted from various scene elements in the current game scene, for example, an angry voice emitted from a virtual animal, or a gunshot sound emitted when another virtual character other than the first virtual character fires a shot, etc., but is not limited thereto.
[0035] After obtaining the spatial positions where the first virtual character and the target sound are located, in order to enable the player to accurately determine the orientation of the target sound, the first virtual character is respectively displayed at the center S 1 of a three-dimensional virtual sphere as shown in FIG. 3(b), and the target sound V 0 is displayed at the second mark S 2 on the surface of the three-dimensional virtual sphere, and the first mark S1 and the second mark S 2 Using the first connecting line between them, the target voice V for the first virtual character 0 indicates the orientation, for example, the target voice V 0 is located at the left rear of the first virtual character.
[0036] In related technologies, usually, the first virtual character and the target voice V 0 are respectively mapped to the x and z axis coordinate systems as shown in Fig. 5(a), but only the general orientation of the first virtual character in the plane where the x and z axes of the target voice are located can be determined by S 2 in this plane coordinate system. For example, it can only be determined that the target voice is located on the right side of the first virtual character, but the spatial relative position relationship between the target voice and the first virtual character on the y axis cannot be accurately known, that is, it cannot be accurately known whether the target voice is located in the right front or right rear of the first virtual character. However, with the orientation presentation information as shown in Fig. 5(b), the player can quickly determine that the target voice is located at the right rear of the first virtual character.
[0037] The target voice V 0 may be the voice emitted from various scene elements in the current game scene, or the gunfire sound emitted when other virtual characters other than the first virtual character shoot (which may be understood as the voice of a virtual attack received by the first virtual character), but is not limited thereto. Therefore, the first orientation presentation information in the embodiments of the present application includes, but is not limited to, the orientation information of the target voice and the attacked orientation information of the first virtual character.
[0038] As shown in Fig. 4, in order to make the first orientation presentation information of the target voice displayed on the game screen more intuitive, usually, the player's judgment of the orientation of the target voice is assisted by the longitude and latitude lines on the three-dimensional virtual sphere. Specifically, Displaying a first mark, a second mark, a first connecting line, and the longitude and latitude lines of the second mark on a three-dimensional virtual sphere in a target game application, wherein the first orientation presentation information includes the longitude and latitude lines of the second mark on the three-dimensional virtual sphere.
[0039] Obviously, it is easily understood that the longitude and latitude lines determine the position and direction on the three-dimensional virtual sphere, and the longitude lines indicate the north-south direction and the latitude lines indicate the east-west direction. In the three-dimensional virtual sphere as shown in Fig. 5(b), the latitude lines can be used to assist in displaying the first relative positional relationship between the second mark S 2 and the first mark S 1 in the x, z plane, and the longitude lines can be used to assist in displaying the second relative positional relationship between the second mark S 2 and the first mark S 1 in the y-axis direction. By combining the first relative positional relationship and the second relative positional relationship, it can be quickly determined that the target voice is located behind the right of the first virtual character.
[0040] Note that the first orientation presentation information of the target voice shown in Fig. 3 is only an example and is not limited thereto. For example, in an actual application scenario, multiple orientation presentation information of multiple target voices, such as two, three, or other quantities, can also be simultaneously displayed on the three-dimensional virtual sphere.
[0041] According to the above embodiment of the present application, on the game screen displaying the first virtual character, the second spatial position where the target voice is located and the first spatial position where the first virtual character is located are respectively mapped to the center (first mark) of the three-dimensional virtual sphere and the second mark on the surface, and the first connecting line between the first mark and the second mark is used to indicate the orientation of the second spatial position relative to the first spatial position. In other words, by adding display information in the y-axis direction to the three-dimensional virtual sphere, the orientation presentation information of the target voice is made more accurate, avoiding the technical problem of low accuracy occurring in the process of displaying the orientation presentation information, and realizing the technical effect of improving the display accuracy of the orientation presentation information.
[0042] As a preferred example, the step of displaying the first azimuth presentation information of the target voice in the target game application is as follows: The step of displaying a first mark and a first connecting line in the target game application and displaying a second mark according to a first display parameter, where the value of the first display parameter corresponds to a target distance, and the target distance is the distance from a second spatial position to a first spatial position.
[0043] In this embodiment, in order to more intuitively display the target distance between the second spatial position and the first spatial position as shown in FIG. 3(a), when displaying the second mark, the value of the first display parameter corresponding to the target distance can be referred to for display. Specifically, When the first display parameter is a transparency parameter, the step of displaying the second mark according to the transparency parameter, where the value of the transparency parameter indicates the transparency of the second mark when the second mark is displayed, or When the first display parameter is a color parameter, the step of displaying the second mark according to the color parameter, where the value of the color parameter indicates the color of the second mark when the second mark is displayed.
[0044] In this embodiment, the first display parameter may be a different parameter for distinguishing the distance between the target voice and the first virtual character, such as a transparency parameter, a color parameter, etc., but is not limited thereto. Hereinafter, two different types of parameters will be described in detail in combination with specific embodiments.
[0045] Example 1 Assuming that the transparency parameter is used to distinguish the distance between the target voice and the first virtual character, the value of the transparency parameter has a positive correlation with the target distance, or the value of the transparency parameter has a positive correlation with the section boundary value of the distance section where the target distance is located.
[0046] For example, assuming that the value of the transparency parameter is A and the target distance is B, the relationship between A and B is A = 1.5B. That is, when the distance between the target voice and the first virtual character is close, for example, the second mark S shown in FIG. 6(a) 2 is such that the transparency is low. When the distance between the target voice and the first virtual character is far, for example, the second mark S' shown in FIG. 6(a) 2 is such that the transparency is high. From the spatial relationship display result shown in FIG. 6(b), since the second spatial position where the target voice V1 is located is close to the first virtual character and the second spatial position where the target voice V2 is located is far from the first virtual character, when displaying the second marks S 2 and S' 2 , the value of the transparency parameter of S 2 is smaller than the value of the transparency parameter of S' 2 .
[0047] Also, for example, assuming that the range of the value of the transparency parameter is [0, 1], when the target distance B < 50 meters, the transparency parameter A = 0.3; when 50 ≤ B < 100 meters, the transparency parameter A = 0.6; when B ≥ 100 meters, the transparency parameter A = 0.9. That is, the value of the transparency parameter has a positive correlation with the interval boundary value of the distance interval where the target distance is located.
[0048] As another preferred example, assume that the transparency is used to distinguish the distance between the target voice and the first virtual character. Then, the value of the transparency parameter has a negative correlation with the target distance, or the value of the transparency parameter has a negative correlation with the interval boundary value of the distance interval where the target distance is located.
[0049] For example, assuming that the value of the transparency parameter is A and the target distance is B, the relationship between A and B is A = C - B, where C is a constant. That is, when the distance between the target voice and the first virtual character is close, the value of the transparency parameter is large; when the distance between the target voice and the first virtual character is far, the value of the transparency parameter is small.
[0050] Also, for example, assuming that the range of the value of the transparency parameter is [0, 1], when the target distance B < 50 meters, the transparency parameter A = 0.9; when the target distance 50 ≤ B < 100 meters, the transparency parameter A = 0.6; and when the target distance B ≥ 100 meters, the transparency parameter A = 0.3. That is, the value of the transparency parameter has a negative correlation with the boundary value of the distance interval where the target distance is located.
[0051] Example 2 Assuming that the distance between the target voice and the first virtual character is distinguished using the color parameter, the value of the color parameter has a positive correlation with the target distance, or the value of the color parameter has a positive correlation with the boundary value of the distance interval where the target distance is located.
[0052] For example, assuming that the value of the color parameter is Q, when Q = 10, it indicates green; when Q = 20, it indicates yellow; when Q = 30, it indicates red; and the larger the value of Q, the farther the distance between the target voice and the first virtual character. Then, assuming that the relationship between the value Q of the color parameter and the target distance B is Q = 0.5B, when the distance between the target voice and the first virtual character is 20 meters, the color of the second mark S 2 is, for example, green as shown by the second mark S' in FIG. 7 2 ; when the distance between the target voice and the first virtual character is 40 meters, the color of the second mark S 2 is yellow; when the distance between the target voice and the first virtual character is 60 meters, the color of the second mark S 2 is, for example, red as shown by the second mark S' in FIG. 7 2 as described above.
[0053] For example, assume that the value of the color parameter is Q, where Q = 1, 2, 3, 1 indicates green, 2 indicates yellow, 3 indicates red, and the larger the value of Q, the farther the distance between the target voice and the first virtual character. When the target distance B < 50 meters, the value of the color parameter Q = 1, and the second mark is displayed in green. When the target distance 50 ≤ B < 100, the value of the color parameter Q = 2, and the second mark is displayed in yellow. When the target distance B ≥ 100, the value of the color parameter Q = 3, and the second mark is displayed in red. That is, the value of the transparency parameter has a positive correlation with the boundary value of the distance interval where the target distance is located.
[0054] As another preferred example, assume that the color parameter is used to distinguish the distance between the target voice and the first virtual character. Then, the value of the color parameter has a negative correlation with the target distance, or has a negative correlation with the boundary value of the distance interval where the target distance is located.
[0055] For example, assume that the value of the color parameter is Q, where when Q = 10, it indicates red, when Q = 20, it indicates yellow, when Q = 30, it indicates green, and the larger the value of Q, the closer the distance between the target voice and the first virtual character. Then, assuming that the relationship between the value Q of the color parameter and the target distance B is Q = 0.5B, when the distance between the target voice and the first virtual character is 20 meters, the color of the second mark S 2 is red. When the distance between the target voice and the first virtual character is 40 meters, the color of the second mark S 2 is yellow. When the distance between the target voice and the first virtual character is 60 meters, the color of the second mark S 2 is green.
[0056] For example, assume that the value of the color parameter is Q, where Q = 1, 2, 3, 1 indicates red, 2 indicates yellow, 3 indicates green, and the larger the value of Q, the closer the distance between the target voice and the first virtual character. When the target distance B < 50 meters, the value of the color parameter Q = 1, and the second mark is displayed in red. When the target distance 50 ≤ B < 100 meters, the value of the color parameter Q = 2, and the second mark is displayed in yellow. When the target distance B ≥ 100 meters, the value of the color parameter Q = 3, and the second mark is displayed in green. That is, the value of the transparency parameter has a positive correlation with the section boundary value of the distance section where the target distance is located.
[0057] As yet another preferable example, when distinguishing the distance between the target voice and the first virtual character using the color parameter, the value of the color parameter may indicate different color depths of the same color. For example, for the same color, the color parameter has several values from light to dark. The value of the color parameter has a positive correlation with the target distance or has a positive correlation with the section boundary value of the distance section where the target distance is located. For the description process of the positive correlation, reference can be made to the above embodiments, and the description is omitted here.
[0058] Accordingly, when distinguishing the distance between the target voice and the first virtual character using the color parameter, the value of the color parameter may indicate different color depths of the same color. For example, for the same color, the color parameter has several values from light to dark. The value of the color parameter has a negative correlation with the target distance or has a negative correlation with the section boundary value of the distance section where the target distance is located. For the specific description process of the negative correlation, reference can be made to the above embodiments, and the description is omitted here.
[0059] Otherwise, the step of displaying the second mark according to the color parameter is A step of determining a value of a color parameter based on display parameters of a game screen of a first virtual character and a target distance, the step in which a color difference value between the color indicated by the value of the color parameter and the color indicated by the display parameters of the game screen is greater than a predetermined threshold value, A step of displaying a second mark whose color is a target color, the target color being the color indicated by the value of the color parameter, and further includes:
[0060] Assume that the display parameter of the game screen where the first virtual character is located may be the brightness of the game screen, but is not limited thereto. Assume that the brightness of the first game screen seen by the first virtual character located at the first spatial position V1 is bright. Based on the first target distance between the first spatial position V1 and the target voice, and the brightness of the first game screen, a first value of the color parameter of the second mark is determined. For example, as shown in FIG. 8(a), according to the first value, the second mark is displayed in dark red.
[0061] The first virtual character moves to the first spatial position V' 1 And when the brightness of the second game screen seen by the first virtual character located at the first spatial position V' 1 is dark, based on the second target distance between the first spatial position V' 1 and the target voice, and the brightness of the first game screen, a second value of the color parameter of the second mark is determined. For example, as shown in FIG. 8(b), according to the second value, the second mark is displayed in light red.
[0062] As described above, the second mark is displayed according to the values of the transparency parameter and the color parameter respectively. In the process of displaying the second mark according to the value of the color parameter, in order to further consider the display parameters of the game screen, the player can more easily visually distinguish the distance between the target voice and the first virtual character, and display the azimuth prompt information more intuitively.
[0063] When displaying the first azimuth indication information of the target voice, in addition to displaying the second mark according to the first display parameter, the second mark can also be displayed according to the second display parameter. Specifically, A step of displaying a first mark and a first connecting line on a target game application and displaying a second mark according to a second display parameter, wherein the value of the second display parameter includes steps corresponding to the intensity of the target voice.
[0064] In the embodiments of the present application, when a player attempts to quickly and accurately determine the spatial relative position relationship between the target voice and the first virtual character, in addition to the distance information displayed when the second mark is displayed according to the first display parameter, the intensity of the target voice can assist the player in more accurately determining the azimuth information of the target voice.
[0065] As a preferred example, the step of displaying the second mark according to the second display parameter is When the second mark is a sound wave-shaped mark and the second display parameter is a sound wave amplitude parameter, a step of displaying a sound wave-shaped mark according to the sound wave amplitude parameter, wherein the value of the sound wave amplitude parameter indicates the amplitude of the sound wave-shaped mark when the sound wave-shaped mark is displayed, and the value of the sound wave amplitude parameter includes steps having a positive correlation with the intensity of the target voice, or When the second mark is a linear mark and the second display parameter is a line height parameter, a step of displaying a linear mark according to the line height parameter, wherein the value of the line height parameter indicates the line height of the linear mark when the linear mark is displayed, and the value of the line height parameter includes steps having a positive correlation with the intensity of the target voice.
[0066] Hereinafter, with reference to specific embodiments, the realization process of displaying the second mark according to the second display parameter will be described.
[0067] Embodiment 3 Assuming that the intensity of the target voice is distinguished using the sound wave amplitude parameter, the value of the sound wave amplitude parameter has a positive correlation with the intensity of the target voice, or the value of the sound wave amplitude parameter has a positive correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0068] For example, assuming that the value of the sound wave amplitude parameter is M and the intensity of the target voice is N, the relationship between M and N is M = 1.5N + 3. That is, when the target voice is intense (high intensity), for example, like the second mark S shown in Fig. 9(a) 2 the sound wave amplitude is large. Conversely, when the target voice is weak (low intensity), for example, like the second mark S' shown in Fig. 9(a) 2 the sound wave amplitude is small. From the spatial relationship display result as shown in Fig. 9(c), when shooting while running, the intensity of the target voice V1 is intense, and when shooting while running silently, the intensity of the target voice V2 is weak.
[0069] Also, for example, when the intensity of the target voice is N < 20 db, the sound wave amplitude is M = 1, when the intensity of the target voice is 20 ≤ N < 70 db, the sound wave amplitude is M = 3, and when the intensity of the target voice is N ≥ 100 db, the sound wave amplitude is M = 5. That is, the value of the sound wave amplitude parameter has a positive correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0070] As another preferred example, assuming that the intensity of the target voice is distinguished using the sound wave amplitude parameter, the value of the sound wave amplitude parameter has a negative correlation with the intensity of the target voice, or the value of the sound wave amplitude parameter has a negative correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0071] For example, assuming that the value of the sound wave amplitude parameter is M and the intensity of the target voice is N, the relationship between M and N is M = P - N, where P is a constant. That is, when the target voice is intense, the value of the sound wave amplitude parameter is small, and when the target voice is weak, the value of the sound wave amplitude parameter is large.
[0072] For example, when the intensity N of the target voice is less than 20 dB, the value M of the sound wave amplitude parameter is 5. When the intensity of the target voice is 20 ≤ N < 70 dB, the value M of the sound wave amplitude parameter is 3. When the intensity N of the target voice is N ≥ 100 dB, the value M of the sound wave amplitude parameter is 1. That is, the value of the sound wave amplitude parameter has a negative correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0073] Example 4 Assuming that the intensity of the target voice is distinguished using the line height parameter, the value of the line height parameter has a positive correlation with the intensity of the target voice, or the value of the line height parameter has a positive correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0074] For example, assuming that the value of the line height parameter is T and the intensity of the target voice is N, the relationship between T and N is T = 2N. That is, when the target voice is intense (high intensity), for example, as shown in FIG. 9(b), the second mark S 2 As such, the value of the line height parameter is large. Conversely, when the target voice is weak (low intensity), for example, as shown in FIG. 9(b), the second mark S' 2 As such, the value of the line height parameter is small.
[0075] For example, when the intensity N of the target voice is less than 20 dB, the value T of the line height parameter is 1. When the intensity of the target voice is 20 ≤ N < 70 dB, the value T of the line height parameter is 2. When the intensity N of the target voice is N ≥ 100 dB, the value T of the line height parameter is 3. That is, the value of the line height parameter has a positive correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0076] As another preferred example, assuming that the intensity of the target voice is distinguished using the line height parameter, the value of the line height parameter has a negative correlation with the intensity of the target voice, or the value of the line height parameter has a negative correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0077] For example, assuming that the value of the line height parameter is T and the intensity of the target voice is N, the relationship between T and N is T = P - N, where P is a constant. That is, when the target voice is intense, the value of the line height parameter is small, and when the target voice is weak, the value of the line height parameter is large.
[0078] Also for example, when the intensity N of the target voice is < 20 db, the value of the line height parameter T = 3; when the intensity of the target voice is 20 ≤ N < 70 db, the value of the line height parameter T = 2; when the intensity of the target voice is N ≥ 100 db, the value of the line height parameter T = 1. That is, the value of the line height parameter has a negative correlation with the boundary value of the intensity interval where the intensity of the target voice is located.
[0079] Obviously, it is easily understood that in addition to displaying the second mark according to the first display parameter or displaying the second mark according to the second display parameter, the first display parameter and the second display parameter can be combined to display the second mark according to the first display parameter and the second display parameter. In other words, the second mark S 2 may be displayed according to the distance between the target voice and the first virtual character and the intensity of the target voice.
[0080] As can be seen from the analysis of the above embodiments, based on parameters such as the distance between the first spatial position and the second spatial position and / or the intensity of the target voice, the second mark can be displayed on the surface of the three-dimensional virtual sphere, and the player can quickly and accurately determine the azimuth information of the target voice according to the display style of the second mark, improving the judgment efficiency and the referenceability of the azimuth prompt information.
[0081] In addition, in the embodiments of the present application, the display method of the above azimuth prompt information further includes at least one of the following (1) to (3).
[0082] (1) As shown in FIG. 11, when displaying the orientation presentation information of the third spatial position where the second virtual character is located on the first screen of the target game application where the first virtual character is located, the presentation information in which the orientation information of the second virtual character is already displayed is displayed on the second screen of the target game application where the second virtual character is located.
[0083] (2) As shown in FIG. 3(a), when the first target sound is generated at the second spatial position and the third virtual character located at the fourth spatial position executes a virtual attack and hits the first virtual character, and the second target sound is generated, the orientation mark of the second spatial position, the type of the first target sound, and / or the orientation mark of the fourth spatial position where the third virtual character is located and the type of the second target sound are displayed on the three-dimensional virtual sphere.
[0084] The types of the first target sound and the second target sound include, but are not limited to, aggressiveness and non-aggressiveness. The fourth spatial position includes, but is not limited to, positions other than the first spatial position and the second spatial position.
[0085] (3) As shown in FIG. 3(a), when the first target sound is generated at the second spatial position and the orientation mark of the second spatial position is displayed on the three-dimensional virtual sphere within a predetermined time, if the virtual character that generates the first target sound moves to another spatial position outside the field of view of the first virtual character at the second spatial position within the field of view of the first virtual character, the display of the orientation mark of the second spatial position is canceled. The virtual character that generates the first target sound is a player virtual character or a non-player virtual character.
[0086] As described above, different display forms of orientation presentation information can be set as needed, meeting the personalized needs of users, improving the flexibility of displaying orientation presentations, and enhancing the interestingness of the game.
[0087] Obviously, the above Examples 1 to 4 mainly describe the specific implementation method of displaying the second mark when displaying the first orientation prompt information by using the first mark, the second mark, and the first connecting line from the first mark to the second mark. In addition, the first orientation prompt information of the target voice can be displayed as follows, When the surface of the three-dimensional virtual sphere is divided according to the grid and the second mark corresponds to the target grid on the surface of the three-dimensional virtual sphere, it includes the steps of displaying the first mark and the first connecting line in the target game application and displaying the target grid marked with the target color, or When the surface of the three-dimensional virtual sphere is divided according to the grid and the second mark corresponds to the target grid on the surface of the three-dimensional virtual sphere, it includes the steps of displaying the first mark and the first connecting line in the target game application and displaying the grids of some regions on the surface of the three-dimensional virtual sphere, where the grids of some regions include the target grid marked with the target color and a set of grids marked with unmarked colors or colors different from the target color.
[0088] As shown in FIG. 10, the surface of the three-dimensional virtual sphere is divided according to the grid, and the center S of the three-dimensional virtual sphere 1 is assumed to indicate the first spatial position where the first virtual character is located. When the target voice is generated at the second spatial position, the target voice is mapped to the target grid on the surface of the three-dimensional virtual sphere, and the target grid is marked with the target color. For example, when marked as red, the target grid marked as red and a set of grids around it, the first mark (the center of the sphere) S 1 and the first connecting line are used to display the first orientation prompt information of the target voice. The set of grids around the target grid has the same function as the longitude and latitude lines of the three-dimensional virtual sphere described in the above embodiments, and mainly assists in the judgment of the orientation information of the target voice.
[0089] Since the target voice usually propagates in the form of sound waves, in order to more vividly display the visual representation form of the voice, in an actual game scene, usually, a target grid is composed of a plurality of grids, and the center of the figure composed of the plurality of grids is the second mark S indicating the target voice. 2 It may be understood as, and the first connecting line is S 1 and S 2 is the connecting line between and.
[0090] Note that the target grid shown in FIG. 10 is only an example and does not limit this. For example, the number of target grids may be one or any other number of two or more.
[0091] Also, when the target grid is marked with a target color, in order to distinguish a set of grids around the target grid from the target grid, it is not necessary to mark the set of grids with a color, or the color of the set of grids may be marked with a color different from the target grid. For example, the target grid is marked as red, and the set of grids is marked as blue.
[0092] As described above, a set of grids around the target grid mainly assists in judging the azimuth information of the target voice. In some application scenarios, only the target grid marked with the target color may be displayed, and it is not necessary to display a set of grids around the target grid.
[0093] According to the above method, by displaying the target grid marked with the target color on the surface of the three-dimensional virtual sphere, or by displaying the target grid marked with the target color and a set of grids around it, the visual effect of the azimuth presentation information of the target voice or the hit information is improved, and it helps the player quickly judge the azimuth of the target voice.
[0094] As described in the above embodiments, the target voice may be, but is not limited to, voices emitted from various scene elements in the current game scene, such as angry voices emitted from virtual animals, or gunfire sounds emitted when other virtual characters other than the first virtual character shoot. When the target voice is the hit information of the first virtual character, the above method When a virtual attack executed by the second virtual character hits the first virtual character, a step of displaying the second orientation presentation information of the second virtual character on the target game application, where the second orientation presentation information includes a first mark, a third mark, and a second connecting line from the first mark to the third mark, the third mark is located on the surface of a three-dimensional virtual sphere, the third mark indicates the projection of the third spatial position where the second virtual character is located onto the three-dimensional virtual sphere, and the second connecting line further includes a step of indicating the orientation of the third spatial position where the second virtual character is located with respect to the first spatial position.
[0095] As shown in FIG. 11(a), when the second virtual character executes a virtual attack task and it is assumed that the second virtual character hits the first virtual character, using the above method of displaying orientation presentation information, the spatial position where the second virtual character is located is mapped to the third mark S on the surface of a three-dimensional virtual sphere as shown in FIG. 11(b), 3 and the third spatial position where the first virtual character is located is mapped to the center S of the three-dimensional virtual sphere. 1 Then, the second orientation presentation information of the second virtual character is displayed by the first mark, the third mark, and the second connecting line between the first mark and the third mark.
[0096] Normally, it is easily understood that it is necessary to display the second orientation presentation information of the second virtual character on the game screen only when the second virtual character hits the first virtual character. When the second virtual character executes a virtual attack but does not hit the first virtual character, it is not necessary to present the orientation information of the hit information (gunfire sound or shooting position where the second virtual character is located) to the first virtual character.
[0097] As a preferred example, the step of displaying the second orientation presentation information of the second virtual character in the target game application is as follows: The step of displaying the first mark, the third mark, the second connecting line, and the longitude and latitude lines of the third mark on the three-dimensional virtual sphere in the target game application, where the second orientation presentation information further includes the longitude and latitude lines of the third mark on the three-dimensional virtual sphere.
[0098] As described in the above embodiments, the longitude and latitude lines determine the position and direction on the three-dimensional virtual sphere. The longitude lines indicate the north-south direction, and the latitude lines indicate the east-west direction. In the three-dimensional virtual sphere as shown in Fig. 11(b), the latitude lines can be used to assist in displaying the first relative position relationship between the third mark S 3 and the first mark S 1 in the x, z plane, and the longitude lines can be used to assist in displaying the second relative position relationship between the third mark S 3 and the first mark S 1 in the y-axis direction. By combining the first relative position relationship and the second relative position relationship, it can be quickly determined that the target voice is located at the right rear of the first virtual character.
[0099] Note that the second orientation presentation information of the second virtual character shown in Fig. 11 is only an example and is not limited thereto. For example, in an actual application scenario, a plurality of orientation presentation information, such as two, three, or other quantities, etc., can be simultaneously displayed on the three-dimensional virtual sphere.
[0100] By using the longitude and latitude lines of the orientation presentation information on the three-dimensional virtual sphere to assist the player in determining the orientation information of the third spatial position where the second virtual character is located, the technical effect of improving the determination efficiency and the accuracy of the determination result is realized.
[0101] As a preferred example, in addition to displaying the orientation presentation information of the target voice on the three-dimensional virtual sphere, it can be displayed as follows. Specifically, When the target voice is generated at the second spatial position, a step of displaying third azimuth indication information on the thumbnail map in the target game application, where the thumbnail map displays planar map information in which a three-dimensional game scene where a first virtual character is located is mapped to a target plane, the first spatial position is located on the target plane, the third azimuth indication information includes the azimuth of the planar projection position on the target plane with respect to the first spatial position and a target direction mark, the planar projection position is the projection position of the second spatial position onto the target plane, and the target direction mark indicates that the second spatial position is located above or below the target plane.
[0102] As shown in FIG. 12, in the thumbnail map, a first mark S at the first spatial position where the first virtual character is located 1 is displayed, and the second spatial position where the target voice is located is displayed within an annular region around the first mark S 1 . That is, the projection positions of the first spatial position and the second spatial position onto the plane where the xz-axis is located are displayed on the thumbnail, and the target direction mark indicates that the second spatial position is located above or below the plane where the xz-axis is located.
[0103] For example, as shown in FIG. 12, with the first mark S 1 and the second mark S 2 , only the relative positional relationship between the first spatial position and the second spatial position in the plane where the xz-axis is located can be displayed, but the three-dimensional azimuth information on the y-axis cannot be accurately distinguished. With the triangular icon, it is possible to clearly distinguish whether the second spatial position is located above or below the plane where the xz-axis is located. For example, when one corner of the triangular icon is downward, it indicates that the second spatial position is located below the plane where the xz-axis is located, and conversely, when one corner of the triangular icon is upward, it indicates that the second spatial position is located above the plane where the xz-axis is located.
[0104] By adding a target direction mark to the thumbnail map, not only can the azimuth information displayed on the plane where the xz-axis of the second spatial position and the first spatial position is located be displayed, but also the three-dimensional azimuth information on the y-axis can be clearly distinguished, which helps the player to judge the azimuth of the target voice and can increase the diversity of the display form of the azimuth prompt information.
[0105] The above embodiments mainly described the display method of the azimuth prompt information from the product side. Hereinafter, from the perspective of the background technology, how to display the first azimuth prompt information of the target voice in the target game application will be described in detail.
[0106] Specifically, it includes the step of obtaining the first spatial position where the first virtual character is located and the second spatial position where the target voice is generated, When the distance between the first spatial position and the second spatial position is less than or equal to a predetermined distance threshold, map the first spatial position to the center of the three-dimensional virtual sphere according to the same mapping relationship, display the first mark at the center of the three-dimensional virtual sphere, and map the second spatial position to the target mapping position in the three-dimensional space where the three-dimensional virtual sphere is located. Determine the position where the target connecting line intersects the surface of the three-dimensional virtual sphere, display the second mark at the intersecting position, and display the first connecting line, where the target connecting line is the connecting line passing through the center of the three-dimensional virtual sphere and the target mapping position.
[0107] As shown in FIG. 13(a), the implementation steps of displaying the first azimuth prompt information of the target voice in the target game application include the following steps S1302 to S1312.
[0108] In step S1302, when the target voice is generated from the second spatial position S in the game scene 0 , obtain the position information (X 0 , Y 1 , Z 1 , 1 ) of the second spatial position S For example, assuming that the first virtual character is located at the first spatial position as shown in FIG. 3(a), the target voice is at the second spatial position V as shown in FIG. 3(a). 0 is located at (S 0 and V 0 have the same spatial position).
[0109] In step S1304, it is determined whether the distance between the first spatial position where the player is located and the second spatial position is less than or equal to a predetermined distance threshold. In the game scene, usually only the target voice within a predetermined range from the player is presented based on the game rules. For example, only the target voice or the hit information within 100 meters from the player is presented.
[0110] In step S1306, if it is less than or equal to the predetermined distance threshold, the first spatial position where the player is located is mapped to the aiming point position on the screen, for example, S as shown in FIG. 13(b). 1 is mapped to For the game screen on which the first virtual character in the target game application is displayed, a viewing angle centered on the first virtual character is selected, and the first spatial position where the first virtual character is located is mapped to the center of a three-dimensional virtual sphere as shown in FIG. 13(b).
[0111] In step S1308, a spherical surface with a radius R is constructed with the aiming point on the screen as the center of the sphere. In the embodiments of the present application, the value of R is not limited.
[0112] In step S1310, using the same mapping relationship as the first spatial position, the second spatial position where the target voice is located is mapped to the target mapping position in the three-dimensional space where the three-dimensional virtual sphere is located. For example, it is mapped to S as shown in FIG. 13(b). 2 is mapped to S 2 The coordinates of (X 2 , Y 2 , Z 2 ) and S 1 The coordinates of (X 1 , Y1 , Z 1 There is the following relationship between them and
[0113] X 1 = L * X 2 / R, Y 1 = L * Y 2 / R, Z 1 = L * Z 2 / R, L represents the length from S 1 to S 0 and R represents the length from S 1 to S 0 That is, R is the radius of the three - dimensional virtual sphere.
[0114] Note that due to different values of R, the position where the target voice is located in the second - space position is mapped to the target mapping position S 2 in the three - dimensional space where the three - dimensional virtual sphere is located, and the place is also different. The target mapping position S 2 may be located on the surface of the three - dimensional virtual sphere or inside the three - dimensional virtual sphere.
[0115] When the target mapping position S 2 is located on the surface of the three - dimensional virtual sphere, the connecting line between S 1 and S 2 is directly determined as the first connecting line. When the target mapping position S 2 is located inside the three - dimensional virtual sphere, the connecting line between S 1 and S 2 is extended until there is an intersection with the surface of the three - dimensional virtual sphere, and the intersection point, S 1 and the connecting line where S 2 is located are determined as the first connecting line.
[0116] Obviously, during the implementation of the present application, according to the same mapping relationship, the first - space position where the first virtual character is located and the second - space position where the target voice is located are respectively mapped to the center of the three - dimensional virtual sphere and the target mapping position in the three - dimensional space where the three - dimensional virtual sphere is located, which is easily understood.
[0117] In step S1312, a 3D information graphic is displayed at point S on the screen, including latitude and longitude lines perpendicular to each other and connecting lines to the center of the sphere. 2 For the specific expression form of the information graphic, reference can be made to the sound wave shape indicated by the points in FIGS. 6 and 7, or the linear pattern shown in FIG. 9(b), etc. The target connection line between S and S, 2 Based on the information pattern of the points, the first azimuth presentation information of the target voice is displayed in the target game application. 1 and S 2 and, 2 Based on the information pattern of the points, the first azimuth presentation information of the target voice is displayed in the target game application.
[0118] According to the above embodiments of the present application, using the same mapping relationship, the first spatial position and the second spatial position are respectively mapped to two mapping positions in the three-dimensional space where the three-dimensional virtual sphere is located on the screen, and then, based on the two mapping positions and the connecting line between the two mapping positions, the azimuth presentation information of the target voice is displayed, thereby making the azimuth presentation information of the target voice more accurate, avoiding the technical problem of low accuracy occurring in the process of displaying the azimuth presentation information, and realizing the technical effect of improving the display accuracy of the azimuth presentation information.
[0119] It should be noted that, for the sake of simplicity in description, the embodiments of the above methods are described as a combination of a series of operations. However, it should be understood by those skilled in the art that the present application is not limited to the described operation sequence, because according to the present application, some steps can be performed in other sequences or simultaneously. Also, it should be understood by those skilled in the art that all the embodiments described in this specification are preferred embodiments, and such operations and modules are not necessarily required for the present application.
[0120] According to another aspect of the embodiments of the present application, there is further provided a display device for azimuth presentation information as shown in FIG. 14. The device includes: a first display unit 1402 for displaying a game screen of a first virtual character in a target game application; A first processing unit that, when a target voice is generated at a second spatial position, displays first azimuth presentation information of the target voice in a target game application, where the first azimuth presentation information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark. The first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates a first spatial position where a first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates a projection of the second spatial position where the target voice is located onto the three-dimensional virtual sphere, and the first connecting line indicates the azimuth of the second spatial position relative to the first spatial position.
[0121] Preferably, the first processing unit 1404 is a first display module that displays the first mark, the second mark, the first connecting line, and the longitude and latitude lines of the second mark on the three-dimensional virtual sphere in the target game application, and the first azimuth presentation information further includes the longitude and latitude lines of the second mark on the three-dimensional virtual sphere.
[0122] Preferably, the first processing unit 1404 is a second display module that displays the first mark and the first connecting line in the target game application and displays the second mark according to a first display parameter, where the value of the first display parameter corresponds to a target distance, and the target distance is the distance from the second spatial position to the first spatial position.
[0123] Preferably, the second display module is a first processing sub-module that, when the first display parameter is a transparency parameter, displays the second mark according to the transparency parameter, and the value of the transparency parameter indicates the transparency of the second mark when the second mark is displayed, or is a first processing sub-module that, when the first display parameter is a color parameter, displays the second mark according to the color parameter, and the value of the color parameter indicates the color of the second mark when the second mark is displayed.
[0124] Preferably, the first processing unit 1404 is a third display module that displays a first mark and a first connecting line on a target game application and displays a second mark according to a second display parameter, where the value of the second display parameter includes a third display module corresponding to the intensity of a target voice.
[0125] Preferably, the third display module is a second processing sub-module that, when the second mark is a mark in the shape of a sound wave and the second display parameter is a sound wave amplitude parameter, displays a mark in the shape of a sound wave according to the sound wave amplitude parameter. The value of the sound wave amplitude parameter indicates the amplitude of the mark in the shape of a sound wave when displaying the mark in the shape of a sound wave, and the value of the sound wave amplitude parameter includes a second processing sub-module having a positive correlation with the intensity of the target voice, or is a second processing sub-module that, when the second mark is a linear mark and the second display parameter is a line height parameter, displays a linear mark according to the line height parameter. The value of the line height parameter indicates the line height of the linear mark when displaying the linear mark, and the value of the line height parameter includes a second processing sub-module having a positive correlation with the intensity of the target voice.
[0126] Preferably, the device is a second processing unit that, when a virtual attack executed by a second virtual character hits a first virtual character, displays second orientation prompt information of the second virtual character on a target game application. The second orientation prompt information includes a first mark, a third mark, and a second connecting line from the first mark to the third mark. The third mark is located on the surface of a three-dimensional virtual sphere, and the third mark indicates the projection of the third spatial position where the second virtual character is located onto the three-dimensional virtual sphere. The second connecting line indicates the orientation of the third spatial position where the second virtual character is located with respect to the first spatial position, and further includes a second processing unit.
[0127] Preferably, the second processing unit A fourth display module that displays a first mark, a third mark, a second connecting line, and the longitude and latitude lines of the third mark on a three-dimensional virtual sphere in a target game application, wherein the second orientation presentation information further includes a fourth display module that further includes the longitude and latitude lines of the third mark on the three-dimensional virtual sphere.
[0128] Preferably, the first processing unit 1404 When the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, the target game application further includes a first processing module that displays a first mark and a first connecting line, and displays the target grid marked with a target color, or When the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, the target game application further includes a first processing module that displays a first mark and a first connecting line, and displays the grids of some regions on the surface of the three-dimensional virtual sphere, wherein the grids of some regions include a target grid marked with a target color and a set of grids marked with an unmarked color or a color different from the target color.
[0129] Preferably, the above device A third processing unit that displays third orientation presentation information on a thumbnail map in a target game application when a target sound is generated at a second spatial position, wherein the thumbnail map displays plane map information in which a three-dimensional game scene where a first virtual character is located is mapped to a target plane, the first spatial position is located on the target plane, the third orientation presentation information includes the orientation of the plane projection position on the target plane with respect to the first spatial position and a target direction mark, the plane projection position is the projection position of the second spatial position onto the target plane, and the target direction mark indicates that the second spatial position is located above or below the target plane.
[0130] Preferably, the first processing unit 1404 An acquisition module that acquires a first spatial position where a first virtual character is located and a second spatial position where a target voice is generated; When the distance between the first spatial position and the second spatial position is equal to or less than a predetermined distance threshold, the first spatial position is respectively mapped to the center of a three-dimensional virtual sphere according to the same mapping relationship, a first mark is displayed at the center of the three-dimensional virtual sphere, and the second spatial position is mapped to a target mapping position in the three-dimensional space where the three-dimensional virtual sphere is located; and a second processing module; A third processing module that determines a position where a target connecting line intersects the surface of the three-dimensional virtual sphere, displays a second mark at the intersecting position, and displays a first connecting line, where the target connecting line is a connecting line passing through the center of the three-dimensional virtual sphere and the target mapping position.
[0131] By applying the above device to a game screen that displays a first virtual character, the second spatial position where the target voice is located and the first spatial position where the first virtual character is located are respectively mapped to the center (first mark) of a three-dimensional virtual sphere and a second mark on the surface, and the first connecting line between the first mark and the second mark is used to indicate the orientation of the second spatial position relative to the first spatial position. In other words, by adding display information in the y-axis direction to the three-dimensional virtual sphere, the orientation presentation information of the target voice is made more accurate, the technical problem of low accuracy occurring in the process of displaying the orientation presentation information is avoided, and the technical effect of improving the display accuracy of the orientation presentation information is realized.
[0132] It should be noted that the embodiments of the display device for the orientation presentation information here can refer to the embodiments of the above method for displaying the orientation presentation information, and the description is omitted here.
[0133] According to still another aspect of the embodiments of the present application, there is further provided an electronic device for implementing the above method of displaying orientation prompt information, and the electronic device may be the terminal device shown in FIG. 15. In this embodiment, it will be described by taking the case where the electronic device is a background device as an example. As shown in FIG. 15, the electronic device includes a memory 1502 and a processor 1504. A computer program is stored in the memory 1502, and the processor 1504 is configured to execute the steps in the embodiments of any of the above methods by the computer program.
[0134] Preferably, in this embodiment, the electronic device may be located at at least one of a plurality of network devices in a computer network.
[0135] Preferably, in this embodiment, the processor is configured to, by a computer program, step S1 of displaying a game screen of a first virtual character in a target game application; step S2 of, when a target sound is generated at a second spatial position, displaying first orientation prompt information of the target sound in the target game application, where the first orientation prompt information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark, the first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates the first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates the projection of the second spatial position where the target sound is located onto the three-dimensional virtual sphere, and the first connecting line indicates the orientation of the second spatial position relative to the first spatial position.
[0136] Preferably, according to those skilled in the art, the configuration shown in FIG. 15 is merely exemplary, and the electronic device and the electronic apparatus may be target terminals such as smartphones (e.g., Android mobile phones, iOS mobile phones, etc.), tablet computers, palmtop computers, Mobile Internet Devices (MIDs), and PADs. It is understood that FIG. 15 does not limit the configuration of the above-mentioned electronic device and electronic apparatus. For example, the electronic device and the electronic apparatus may further include more or fewer components (e.g., network interfaces, etc.) than those shown in FIG. 15, or may have a configuration different from that shown in FIG. 15.
[0137] The memory 1502 stores software programs and modules, for example, program instructions / modules corresponding to the method and apparatus for displaying orientation presentation information in the embodiments of the present application. The processor 1504 executes the software programs and modules stored in the memory 1502 to perform various functional applications and data processing, that is, to implement the above method for displaying orientation presentation information. The memory 1502 may include a high-speed random access memory, and may further include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid memories. In some embodiments, the memory 1502 may further include a memory that is remotely installed with respect to the processor 1504, and these remote memories may be connected to the terminal via a network. Examples of the above network include, but are not limited to, the Internet, enterprise intranets, local area networks, mobile communication networks, and combinations thereof. Specifically, the memory 1502 stores, but is not limited to, the first spatial position where the first virtual character is located, the second spatial position where the target voice is located, the mapping relationship between the first spatial position and the second spatial position, etc. As an example, as shown in FIG. 15, the memory 1502 may include, but is not limited to, the first display unit 1402 and the first processing unit 1404 in the above apparatus for displaying orientation presentation information. It may further include other module units in the above apparatus for displaying orientation presentation information, but is not limited thereto, and the description thereof is omitted in this example.
[0138] Preferably, the transmission device 1506 transmits and receives data via one network. Specific examples of the network may include a wired network and a wireless network. In one example, the transmission device 1506 includes a network adapter (Network Interface Controller, NIC) that can be connected to other network devices and routers by a network cable to communicate with the Internet or a local area network. In one example, the transmission device 1506 may be a radio frequency (RF) module that communicates with the Internet wirelessly.
[0139] In addition, the electronic device further includes a display 1508 for displaying the azimuth presentation information of the target voice, and a connection bus 1510 for connecting each module component in the electronic device.
[0140] In other embodiments, the target terminal or server may be a node in a distributed system, the distributed system may be a blockchain system, and the blockchain system may be a distributed system formed by connecting the plurality of nodes in the form of network communication. A peer-to-peer (P2P) network can be configured between the nodes, and any form of computing device, such as an electronic device such as a server or a terminal, can become a node in the blockchain system by joining the peer-to-peer network.
[0141] According to one aspect of the present application, there is provided a computer program product or a computer program including computer instructions, where the computer instructions provide a computer program product or a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and by executing the computer instructions, causes the computer device to execute a method for displaying orientation prompt information according to various preferred embodiments such as the above server verification process. When the computer program is executed, it is configured to execute the steps in the embodiments of any of the above methods.
[0142] Preferably, in this embodiment, the computer-readable storage medium is Step S1 of displaying a game screen of a first virtual character on a target game application, When a target sound is generated at a second spatial position, it is a step of displaying first orientation prompt information of the target sound on the target game application. The first orientation prompt information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark. The first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates the first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, and the second mark indicates the projection of the second spatial position where the target sound is located onto the three-dimensional virtual sphere. The first connecting line indicates the orientation of the second spatial position with respect to the first spatial position. It may be configured to store a computer program that executes step S2.
[0143] Preferably, in this embodiment, all or some of the steps in the methods of the above embodiments can be realized by a program instructing the hardware related to the target terminal, and the program may be stored in a computer-readable storage medium. It is understood by those skilled in the art that the storage medium may include a flash disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.
[0144] The above numbers of the embodiments of this application are only for the purpose of explanation and do not indicate the superiority or inferiority of the embodiments.
[0145] The integrated units in the above embodiments are realized in the form of software function units. When sold or used as an independent product, they may also be stored in the above computer-readable storage medium. Based on such an understanding, the technical means according to this application may, in essence, or the part that contributes to the prior art or all or part of the technical means may be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be a personal computer, a server, or a network device, etc.) to execute all or some of the steps of the methods of the embodiments of this application.
[0146] In the above embodiments of this application, the descriptions of the respective embodiments each have their own focuses. For the parts not detailed in a certain embodiment, reference may be made to the relevant descriptions of other embodiments.
[0147] In some embodiments of the present application, it should be understood that the disclosed client can be implemented in other forms. The embodiments of the apparatus described above are merely exemplary. For example, the division of units is only a division of logical functions. When actually implemented, it may be in another division form. For example, a plurality of units or components may be combined, or integrated into another system, or some features may be omitted or not executed. Also, the couplings, direct couplings, or communication connections shown or discussed between each other may be indirect couplings or communication connections between some interfaces, units, or modules, and may be electrical or in other forms.
[0148] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or arranged in a plurality of network units. According to actual needs, some or all of these units can be selected to achieve the purpose of the technical means of this embodiment.
[0149] Also, in each embodiment of the present application, each functional unit may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated units may be implemented in the form of hardware or in the form of software functional units.
[0150] The above are only preferred embodiments of the present application. Still, those skilled in the art can make various improvements and modifications on the premise of not departing from the principles described in the present application, and these improvements and modifications should also be regarded as within the protection scope of the present application.
Claims
1. displaying a game screen of a first virtual character on a target game application; when a target voice is generated at a second spatial position, displaying first azimuth prompt information of the target voice on the target game application, where the first azimuth prompt information includes a first mark, a second mark, and a first connecting line from the first mark to the second mark, the first mark is located at the center of a three-dimensional virtual sphere, the first mark indicates a first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates a projection of the second spatial position where the target voice is located onto the three-dimensional virtual sphere, and the first connecting line indicates the azimuth of the second spatial position relative to the first spatial position.
2. The method according to claim 1, wherein the first azimuth prompt information further includes longitude and latitude lines of the second mark on the three-dimensional virtual sphere.
3. The step of displaying the first azimuth prompt information of the target voice on the target game application includes displaying the first mark and the first connecting line on the target game application and displaying the second mark according to a first display parameter, where the value of the first display parameter corresponds to a target distance, and the target distance is the distance from the second spatial position to the first spatial position. The method according to claim 1 or 2.
4. The step of displaying the second mark according to a first display parameter includes, when the first display parameter is a transparency parameter, displaying the second mark according to the transparency parameter, where the value of the transparency parameter indicates the transparency of the second mark when the second mark is displayed, or when the first display parameter is a color parameter, displaying the second mark according to the color parameter, where the value of the color parameter indicates the color of the second mark when the second mark is displayed. The method according to claim 3.
5. The step of displaying the first azimuth prompt information of the target voice on the target game application A step of displaying the first mark and the first connecting line on the target game application and displaying the second mark according to a second display parameter, wherein a value of the second display parameter includes a step corresponding to an intensity of the target voice. The method according to any one of claims 1 to 4, characterized in that.
6. The step of displaying the second mark according to a second display parameter is When the second mark is a mark in a sound wave shape and the second display parameter is a sound wave amplitude parameter, a step of displaying the mark in the sound wave shape according to the sound wave amplitude parameter, wherein a value of the sound wave amplitude parameter indicates an amplitude of the mark in the sound wave shape when displaying the mark in the sound wave shape, and the value of the sound wave amplitude parameter includes a step having a positive correlation with the intensity of the target voice, or When the second mark is a linear mark and the second display parameter is a line height parameter, a step of displaying the linear mark according to the line height parameter, wherein a value of the line height parameter indicates a line height of the linear mark when displaying the linear mark, and the value of the line height parameter includes a step having a positive correlation with the intensity of the target voice. The method according to claim 5, characterized in that.
7. A step of displaying second orientation presentation information of the second virtual character on the target game application when a virtual attack executed by the second virtual character hits the first virtual character, wherein the second orientation presentation information includes the first mark, a third mark, and a second connecting line from the first mark to the third mark, the third mark is located on a surface of the three-dimensional virtual sphere, the third mark indicates a projection of the third spatial position where the second virtual character is located onto the three-dimensional virtual sphere, and the second connecting line indicates an orientation of the third spatial position with respect to the first spatial position. The method according to any one of claims 1 to 6, further comprising the step of.
8. The method according to claim 7, characterized in that the second orientation presentation information further includes longitude and latitude lines of the third mark on the three-dimensional virtual sphere.
9. The step of displaying first orientation presentation information of the target voice on the target game application is When the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, the step of displaying the first mark and the first connecting line in the target game application and displaying the target grid marked with a target color is included, or When the surface of the three-dimensional virtual sphere is divided according to a grid and the second mark corresponds to a target grid on the surface of the three-dimensional virtual sphere, the step of displaying the first mark and the first connecting line in the target game application and displaying the grids of some regions on the surface of the three-dimensional virtual sphere, wherein the grids of the some regions include the target grid marked with the target color and a set of grids marked with no color or a color different from the target color, which is characterized by the method according to any one of claims 1 to 8.
10. When the target voice is generated at the second spatial position, the step of displaying third azimuth prompt information on a thumbnail map in the target game application, wherein the thumbnail map displays planar map information in which a three-dimensional game scene where the first virtual character is located is mapped to a target plane, the first spatial position is located on the target plane, the third azimuth prompt information includes the azimuth of the first spatial position with respect to the planar projection position on the target plane and a target direction mark, the planar projection position is the projection position of the second spatial position onto the target plane, and the target direction mark indicates that the second spatial position is located above or below the target plane, which further includes the step of, which is characterized by the method according to any one of claims 1 to 9.
11. The step of displaying the first azimuth prompt information of the target voice in the target game application is The step of obtaining the first spatial position where the first virtual character is located and the second spatial position where the target voice is generated, and When the distance between the first spatial position and the second spatial position is equal to or less than a predetermined distance threshold, mapping the first spatial position to the center of the three-dimensional virtual sphere according to the same mapping relationship, displaying the first mark at the center of the three-dimensional virtual sphere, and mapping the second spatial position to a target mapping position in the three-dimensional space where the three-dimensional virtual sphere is located; determining a position where the target connection line intersects the surface of the three-dimensional virtual sphere, displaying the second mark at the intersecting position, and displaying the first connection line, where the target connection line is a connection line passing through the center of the three-dimensional virtual sphere and the target mapping position, and the method according to any one of claims 1 to 10, characterized by comprising:
12. A first display unit that displays a game screen of a first virtual character on a target game application; A first processing unit that, when a target voice is generated at a second spatial position, displays first azimuth prompt information of the target voice on the target game application, where the first azimuth prompt information includes a first mark, a second mark, and a first connection line from the first mark to the second mark, the first mark is located at the center of the three-dimensional virtual sphere, the first mark indicates a first spatial position where the first virtual character is located, the second mark is located on the surface of the three-dimensional virtual sphere, the second mark indicates a projection of the second spatial position where the target voice is located onto the three-dimensional virtual sphere, and the first connection line indicates an azimuth of the second spatial position relative to the first spatial position, and an apparatus for displaying azimuth prompt information, characterized by comprising:
13. A computer-readable storage medium including a stored program, where when the program is executed by a terminal device or a computer, the method according to any one of claims 1 to 11 is executed, and the computer-readable storage medium is characterized by this.
14. A computer program product including a computer program or instructions, where when the computer program or instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are realized, and the computer program product is characterized by this.
15. An electronic device including a memory and a processor, wherein the computer program is stored in the memory, and the processor is configured to execute the method according to any one of claims 1 to 11 by the computer program. An electronic device characterized by this.
Citation Information
Patent Citations
Azimuth marking method and device, storage medium, processor and terminal
CN109806595A
Sound source positioning method and device, storage medium and electronic device
CN110898430A
Orientation display method and device in virtual three-dimensional scene, terminal and storage medium
CN111760288A
Virtual object marking method and device, processor and electronic device
CN113262490A
Game apparatus, game program, game system and game controlling method
JP2012070960A