Game indicator generation method and device, computer device, and storage medium

By constructing and adjusting the three-dimensional vertex coordinates of the fan-shaped indicator model, the angle and range of action of the game indicator can be dynamically adjusted, solving the problems of low production efficiency and cumbersome modification steps in the existing technology, and realizing the diversification and efficient production of game indicators.

CN115645921BActive Publication Date: 2026-01-02NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211295102.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-21
Publication Date
2026-01-02
Estimated Expiration
2042-10-21

AI Technical Summary

Technical Problem

In existing technologies, the production efficiency of game indicators is low, and the steps to modify the angle and range of action are cumbersome, with limited display formats.

Method used

By constructing the three-dimensional vertex coordinates of each model vertex based on the preset fan-shaped indicator model, and dynamically adjusting the fan radius and included angle parameters in the three-dimensional vertex coordinates, a fan-shaped indicator with a real-time controllable range of action is generated.

Benefits of technology

It enables diverse display formats for game indicators, simplifies the modification process of indicator angle and range of action, and improves production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115645921B_ABST
    Figure CN115645921B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a game indicator generation method and device, computer equipment and a storage medium. A preset fan-shaped indicator model is obtained, and a first gray value of each model vertex is threshold adjusted to obtain an adjusted first gray value of each model vertex as a fan-shaped angle control parameter. Two-dimensional vertex coordinates of each model vertex of a target fan-shaped indicator are generated based on the fan-shaped angle control parameter, a target radius of the target fan-shaped indicator and a target included angle. The two-dimensional vertex coordinates of each model vertex are converted into three-dimensional vertex coordinates. The three-dimensional vertex coordinates are adjusted based on a second gray value of each model vertex of the fan-shaped indicator model to obtain adjusted three-dimensional vertex coordinates. The target fan-shaped indicator is generated and displayed based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius. Embodiments of the present application construct an indicator with a real-time controllable action range, diversify the performance form of the indicator and improve the production efficiency of the game indicator.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the game technical field, and in particular to a game indicator generation method and device, computer equipment and a storage medium. BACKGROUND

[0002] With the continuous development of computer communication technology, the popularity of smart phones, tablet computers and notebook computers and other terminals, terminals are developing towards diversification and personalization, and increasingly becoming an indispensable terminal in people's life and work. In order to meet people's pursuit of spiritual life, entertainment games that can be operated on terminals have emerged, such as Multiplayer Online Battle Arena (MOBA) and Massive Multiplayer Online (MMO) games developed based on client or server architecture. Due to their high smoothness, good operation feel and instant combat, these games are deeply loved by users.

[0003] In the MOBA game, the game screen displayed on the graphical user interface of the computer device is usually a screen obtained by observing the virtual environment with the main control virtual character as the observation center. The player can control the main control virtual character to release skills in a specified direction to attack the enemy virtual character in the specified direction. When the player controls the main control virtual character to aim in a specified direction, a game indicator is usually displayed in the game screen to prompt the player about the direction and range of the skill that can be released. The prior art usually uses a mapping method to make the game indicator. The indicator angle and range corresponding to the game indicator made by this method are fixed, and the performance form is relatively rigid and single. The steps of modifying the indicator angle and range corresponding to the game indicator are cumbersome, and the production efficiency of the game indicator is low. SUMMARY

[0004] The embodiments of the present application provide a game indicator generation method and device, computer equipment and a storage medium. The three-dimensional vertex coordinates of each model vertex are constructed based on a preset fan-shaped indicator model. The target fan-shaped indicator corresponding to the preset fan-shaped indicator model can be dynamically adjusted by changing the fan-shaped radius and preset angle and other parameters in the three-dimensional vertex coordinates, so as to obtain a fan-shaped indicator whose range can be controlled in real time. The performance form of the fan-shaped indicator is diversified, the steps of modifying the indicator angle and range corresponding to the game indicator are simplified, and the production efficiency of the game indicator is improved.

[0005] The embodiments of the present application provide a game indicator generation method, which comprises:

[0006] obtaining a preset sector indicator model, wherein the sector indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex;

[0007] performing threshold adjustment processing on the first gray value of each model vertex of the sector indicator model, and taking the adjusted first gray value of each model vertex of the sector indicator model as a sector angle control parameter corresponding to the target sector indicator;

[0008] generating two-dimensional vertex coordinates of the model vertex corresponding to the target sector indicator based on the sector angle control parameter, a target radius determined by the target sector indicator, and a target included angle;

[0009] converting the two-dimensional vertex coordinates of the model vertex into three-dimensional vertex coordinates;

[0010] adjusting the three-dimensional vertex coordinates based on the second gray value of each model vertex of the sector indicator model to obtain adjusted three-dimensional vertex coordinates;

[0011] generating and displaying the target sector indicator based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius.

[0012] Correspondingly, the embodiment of the application further provides a game indicator generation device, which comprises:

[0013] an obtaining unit, configured to obtain a preset sector indicator model, wherein the sector indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex;

[0014] a first adjusting unit, configured to perform threshold adjustment processing on the first gray value of each model vertex of the sector indicator model, and take the adjusted first gray value of each model vertex of the sector indicator model as a sector angle control parameter corresponding to the target sector indicator;

[0015] a first generating unit, configured to generate two-dimensional vertex coordinates of the model vertex corresponding to the target sector indicator based on the sector angle control parameter, the target radius and the target included angle;

[0016] a conversion unit configured to convert two-dimensional vertex coordinates of the model vertexes into three-dimensional vertex coordinates;

[0017] a second adjustment unit configured to adjust the three-dimensional vertex coordinates based on the second gray value of each model vertex of the sector indicator model to obtain adjusted three-dimensional vertex coordinates;

[0018] a second generation unit configured to generate and display the target sector indicator based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius.

[0019] Correspondingly, the embodiments of the present application further provide a computer device, comprising a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of any one of the generation methods of the game indicator.

[0020] Correspondingly, the embodiments of the present application further provide a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program, when executed by a processor, implements the steps of any one of the generation methods of the game indicator.

[0021] The embodiments of the present application provide a generation method, device, computer device and storage medium of a game indicator. By constructing three-dimensional vertex coordinates of each model vertex based on a preset sector indicator model, the target sector indicator corresponding to the preset sector indicator model can be dynamically adjusted by changing the sector radius and preset included angle in the three-dimensional vertex coordinates and other parameters, so as to obtain a sector indicator that can be controlled in real time, diversify the form of the sector indicator, simplify the steps of modifying the indicator angle and action range of the game indicator, and improve the production efficiency of the game indicator. BRIEF DESCRIPTION OF DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0023] Figure 1 A scene schematic diagram of a generation system of a game indicator provided by the embodiments of the present application.

[0024] Figure 2 A flowchart of a generation method of a game indicator provided by the embodiments of the present application.

[0025] Figure 3A structural schematic diagram of a fan-shaped indicator model provided by an embodiment of the present application.

[0026] Figure 4 A color schematic diagram of each model vertex of the fan-shaped indicator model provided by the embodiment of the present application.

[0027] Figure 5 A scene schematic diagram of the fan-shaped indicator model provided by the embodiment of the present application.

[0028] Figure 6 A scene schematic diagram of the vertex color threshold of the fan-shaped indicator model provided by the embodiment of the present application.

[0029] Figure 7 Another scene schematic diagram of the fan-shaped indicator model provided by the embodiment of the present application.

[0030] Figure 8 A structural schematic diagram of a game indicator generation apparatus provided by the embodiment of the present application.

[0031] Figure 9 A structural schematic diagram of a computer device provided by the embodiment of the present application. DETAILED DESCRIPTION

[0032] The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.

[0033] The embodiments of the present application provide a game indicator generation method and apparatus, a computer device and a storage medium. Specifically, the game indicator generation method of the embodiments of the present application can be executed by a computer device, where the computer device can be a terminal or a server, etc. The terminal can be a smart phone, a tablet computer, a notebook computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), etc., and the terminal can also include a client, which can be a game application client, a browser client carrying a game program, an instant messaging client, etc. The server can be a standalone physical server, a server cluster or a distributed system composed of multiple physical servers, a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and basic cloud computing services such as big data and artificial intelligence platforms, etc.

[0034] For example, when the game indicator generation method is run on a terminal, the terminal device stores a game application and is used to present a virtual scene in a game picture. The terminal device is used to interact with the user through a graphical user interface, for example, by downloading and installing the game application on the terminal device and running. The terminal device can provide the graphical user interface to the user in various ways, for example, the graphical user interface can be rendered and displayed on the display screen of the terminal device, or the graphical user interface can be presented by holographic projection. For example, the terminal device can include a touch display screen and a processor, the touch display screen is used to present the graphical user interface and receive operation instructions generated by the user acting on the graphical user interface, the graphical user interface includes a game picture, and the processor is used to run the game, generate the graphical user interface, respond to the operation instructions, and control the display of the graphical user interface on the touch display screen.

[0035] For example, when the game indicator generation method is run on a server, it can be cloud gaming. Cloud gaming refers to a game mode based on cloud computing. In the running mode of cloud gaming, the running subject of the game application and the presentation subject of the game picture are separated, and the storage and running of the game indicator generation method are completed on the cloud gaming server. The presentation of the game picture is completed on the client side of the cloud gaming, and the cloud gaming client is mainly used for receiving and sending game data and presenting game pictures. For example, the cloud gaming client can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, a personal digital assistant, etc., but the terminal device for game data processing is the cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send operation instructions to the cloud gaming server, the cloud gaming server runs the game according to the operation instructions, encodes and compresses the game picture and other data, returns them to the cloud gaming client through the network, and finally decodes and outputs the game picture through the cloud gaming client.

[0036] Please refer to Figure 1 , Figure 1A scene diagram of a game indicator generation system is provided in the embodiments of the present application. The system can include at least one terminal, at least one server, at least one database, and a network. The terminal held by a user can be connected to the server of different games through the network. The terminal is any device with computing hardware capable of supporting and executing the software product corresponding to the game. In addition, when the system includes multiple terminals, multiple servers, and multiple networks, different terminals can be connected to each other through different networks and through different servers. The network can be a wireless network or a wired network, such as a wireless local area network (WLAN), a local area network (LAN), a cellular network, a 2G network, a 3G network, a 4G network, a 5G network, and the like. In addition, different terminals can also use their own Bluetooth networks or hotspot networks to connect to other terminals or servers, and the like. For example, multiple users can be online through different terminals to support multi-player games by connecting through appropriate networks and synchronizing with each other. In addition, the system can include multiple databases, which are coupled to different servers and can continuously store information related to the game environment in the database when different users are online for multi-player games.

[0037] It should be noted that, Figure 1 The scene diagram of the game indicator generation system shown is only an example, and the game indicator generation system and the scene described in the embodiments of the present application are used to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art can know that, with the emergence of new business scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.

[0038] Based on the above problems, the embodiments of the present application provide a game indicator generation method, device, computer device, and storage medium, which can improve the production efficiency of the game indicator. The following will be described in detail. It should be noted that the description order of the following embodiments does not limit the preferred order of the embodiments.

[0039] Please refer to Figure 2 , Figure 2 A flowchart of a game indicator generation method is provided in the embodiments of the present application. The specific process of the game indicator generation method can be shown in the following steps 101 to 105:

[0040] 101, acquire a preset fan indicator model, wherein the fan indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex.

[0041] In the embodiment of the present application, referring to Figure 3 , an art personnel can create a fan indicator model in a model space by using 3D software and draw a vertex color (VertexColor) corresponding to each model vertex, the vertex color comprises a first gray value and a second gray value, and the fan indicator model also exists in a world space. The model space is a three-dimensional space constructed with a virtual model original point, the world space can be understood as a three-dimensional space shared by all virtual models, the VertexColor is the color of each vertex of the virtual model, there are usually four channels that can be used, which are RGBA four channels, and the value range of each channel is between 0 and 1, 0 is black in visual understanding, and 1 is white in visual understanding. Specifically, the first gray value can be stored in the A channel, and the second gray value can be stored in the R channel, it can be understood that the first gray value can also be stored in G, and the second gray value can also be stored in B, that is, any two channels in the RGBA channel can be selected to store the first gray value and the second gray value, wherein the value range of the first gray value and the second gray value is [0, 1], wherein 0 represents black and 1 represents white.

[0042] Referring to Figure 4 , Figure 4 , it is a color diagram of the colors of the model vertices of the fan indicator model, and is used for visually representing the color representation of the first gray value and the second gray value of each model vertex of the fan indicator model. The setting rule of VertexColor.a (the first gray value) of each model vertex is that the first gray value of the model vertices from left to right is set from small to large, so that the first gray value can be used as a fan angle control parameter, so that the value stored in the A channel plays a role in constructing the positive and negative relationship of the model vertex coordinates. In addition, the setting rule of VertexColor.r (the second gray value) of each model vertex is that the second gray value of the model vertices from the center to the periphery is set from small to large, so that the second gray value can be used as a fan radius control parameter, so that the value stored in the R channel plays a role in restricting the vertex range of the model vertex coordinates.

[0043] Optionally, in the embodiment of the present application, the preset fan indicator model and the target fan indicator obtained by adjusting the preset fan indicator model are both grid models with a thickness parameter of zero.

[0044] 102. Thresholding the first gray value of each model vertex of the sector indicator model, and adjusting the first gray value of each model vertex of the sector indicator model as the corresponding sector angle control parameter of the target sector indicator.

[0045] In order to meet the standard of subsequent coordinate establishment, the step of "thresholding the first gray value of each model vertex of the sector indicator model, and adjusting the first gray value of each model vertex of the sector indicator model as the corresponding sector angle control parameter of the target sector indicator", the method can comprise:

[0046] Mapping the first gray value of each model vertex of the sector indicator model from the initial threshold range to the target threshold range by specifying an offset parameter value and an adjustment weight value.

[0047] In an embodiment, the step of "mapping the first gray value of each model vertex of the sector indicator model from the initial threshold range to the target threshold range by specifying an offset parameter value and an adjustment weight value", the method can comprise:

[0048] Obtaining the difference between the first gray value of each model vertex and the specified offset parameter value;

[0049] Obtaining the product of the difference of each model vertex and the adjustment weight value, and taking the product of each model vertex as the sector angle control parameter of each model vertex.

[0050] The specified offset parameter value and the adjustment weight value provided in the embodiments of the present application are set by an art personnel to achieve the mapping of the first gray value of each model vertex of the sector indicator model from the initial threshold range to the target threshold range.

[0051] In order to adjust the first gray value of the sector indicator model to be consistent with the correct result of the x-coordinate axis and the y-coordinate axis in the coordinate system, therefore, the parameter 0.5 is used as a specified offset parameter value, and the parameter 2 is used as an adjustment weight value, so as to adjust the first gray value of each model vertex of the sector indicator model, so as to map the first gray value of each model vertex of the sector indicator model from the initial threshold range to the target threshold range. For example, when the initial threshold range of the first gray value of each model vertex of the sector indicator model is [0, 1], the art personnel can set the target threshold range as [-1, 1], and can use the threshold adjustment formula VertexColor.a2=(VertexColor.a1-0.5)*2 to convert the first gray value of each model vertex, so as to obtain the adjusted first gray value of each model vertex as the sector angle control parameter, wherein VertexColor.a1 is the initial first gray value of each model vertex, and VertexColor.a2 is the adjusted first gray value of each model vertex.

[0052] 103, based on the sector angle control parameter, the target radius determined by the target sector indicator, and the target included angle, generating two-dimensional vertex coordinates of the model vertex corresponding to the target sector indicator.

[0053] For example, the center point of the target sector indicator model can be placed at the origin of the two-dimensional coordinate system, the radius of the target sector indicator model is r, a point a1 on the target sector indicator model is taken, the included angle between the straight line from the point a1 to the origin and the y-axis is A / 2, and then the position coordinates of the point a in the fourth quadrant of the target sector indicator model can be calculated through the trigonometric formula, that is, a1(x, y)=a(sin(A / 2)*r, cos(A / 2)*r), and the coordinate point of a2 which is symmetric to the point a1 on the target sector indicator model is a1(-x, y)=a(-sin(A / 2)*r, cos(A / 2)*r). Further, multiplying the two-dimensional coordinate formula obtained above by the sector angle control parameter of each model vertex can deduce the position coordinates N of all model vertices on all line segments (sector arc lines and other edge contour lines except sector arc lines) of the target sector indicator model, that is, N(x, y)=N(sin((A / 2)*vc.a)*r, cos((A / 2)*vc.a)*r), wherein vc.a is the sector angle control parameter of each model vertex.

[0054] In the embodiments of the present application, before the step of “generating two-dimensional vertex coordinates of the model vertex corresponding to the target sector indicator based on the sector angle control parameter, the target radius determined by the target sector indicator, and the target included angle”, the method can comprise:

[0055] Initialize the vertex coordinates corresponding to each of the plurality of model vertices, so as to set the vertex coordinates to zero.

[0056] 104. Convert the two-dimensional vertex coordinates of the model vertices into three-dimensional vertex coordinates.

[0057] Specifically, the step of "converting the two-dimensional vertex coordinates of the model vertices into three-dimensional vertex coordinates" can include:

[0058] Based on the positional relationship between the sector indicator model and a preset coordinate system, determine a target coordinate axis in the preset coordinate system in which the sector indicator model is perpendicular;

[0059] Set the coordinate value of each model vertex on the target coordinate axis to zero;

[0060] Based on the two-dimensional vertex coordinates of each model vertex and the coordinate value, determine the three-dimensional vertex coordinates of each model vertex.

[0061] For example, an art personnel needs to make a corresponding conversion according to the actual position of the sector indicator model in three-dimensional space. It is known that the sector indicator model has no thickness, so the vertex coordinates of the axis perpendicular to the plane of the sector indicator model are 0. Therefore, the coordinates of N can be derived, i.e., N(x, 0, z) = N(sin((A / 2)*vc.a)*r, 0, cos((A / 2)*vc.a)*r). Alternatively, if the art personnel needs to design a sector indicator model with thickness according to design requirements, the coordinate value of each model vertex on the target coordinate axis can be set to a non-zero value.

[0062] 105. Based on the second gray value of each model vertex of the sector indicator model, adjust the three-dimensional vertex coordinates to obtain adjusted three-dimensional vertex coordinates.

[0063] In a specific embodiment, the step of "based on the second gray value of each model vertex of the sector indicator model, adjusting the three-dimensional vertex coordinates to obtain adjusted three-dimensional vertex coordinates" can include:

[0064] Multiply the second gray value of each model vertex by its corresponding three-dimensional vertex coordinates to obtain the adjusted three-dimensional vertex coordinates of each model vertex.

[0065] Wherein, since the center point of the sector indicator model will not change when adjusting the angle and radius of the sector indicator model, in order to ensure that the position of the sector center point is always (0, 0, 0), it is necessary to multiply the N coordinates and the second gray value stored in the R channel of the VertexColor of the model vertex to ensure that the position of the sector center point is always (0, 0, 0), so as to ensure that the center point does not change. Wherein, the calculation formula of N coordinates is: N(x, 0, z) = N(sin((A / 2)*vc.a)*r, 0, cos((A / 2)*vc.a)*r). The final formula obtained by multiplying the N coordinates and the second gray value stored in the R channel of the VertexColor of each model vertex is: N(x, 0, z) = N(sin((A / 2)*vc.a)*r*vc.r, 0, cos((A / 2)*vc.a)*r*vc.r).

[0066] 106, based on the adjusted three-dimensional vertex coordinates, the target angle and the target radius, generate and display the target sector indicator.

[0067] Specifically, after the step "based on the adjusted three-dimensional vertex coordinates, the target angle and the target radius, generate and display the target sector indicator", the method can include:

[0068] In response to the adjustment instruction for the target sector indicator, obtain a sector model adjustment parameter, wherein the sector model adjustment parameter includes an angle adjustment parameter and / or a radius adjustment parameter;

[0069] Adjust the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator based on the sector model adjustment parameter, to obtain the target three-dimensional vertex coordinates of each model vertex;

[0070] Update the target sector indicator based on the target three-dimensional vertex coordinates of each model vertex, generate and display the updated target sector indicator.

[0071] Further, the step "the based on the sector model adjustment parameter, the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator are adjusted, to obtain the target three-dimensional vertex coordinates of each model vertex", the method can include:

[0072] Based on the angle adjustment parameter and / or the radius adjustment parameter, replace the target angle and / or the target radius in the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator to obtain the target three-dimensional vertex coordinates of each model vertex.

[0073] In the embodiments of the present application, the player can control the master virtual character to release a skill in a specified direction to attack an enemy virtual character in the specified direction. When the player controls the master virtual character to aim at the specified direction, a target sector indicator is usually displayed in the game picture to prompt the player that the game skill triggered by the master virtual character currently controlled by the player can be released in the direction and the effective range of the game skill. Alternatively, the player controlling the master virtual character can perform a chasing and capturing operation on other virtual characters controlled by other players. When it is detected that the master virtual character and the other virtual characters perform a game match, a target sector indicator is generated in front of the master virtual character based on the real-time display position of the master virtual character, as a capturing field of view range. Once the other virtual character enters the sector area of the target sector indicator, the other virtual character will be discovered and then locked and chased by the master virtual character. During the game process, the master virtual character can increase the radius and angle of the target sector indicator through upgrading or addition of virtual items, so as to increase the range of the sector area of the target sector indicator.

[0074] In order to further illustrate the generation method of the game indicator provided in the embodiments of the present application, the application of the generation method of the sector indicator model in a specific implementation scenario will be described below. The specific application scenario is as follows:

[0075] (1) An art staff can create a sector indicator model in a model space by using 3D software and draw a vertex color (VertexColor) corresponding to each model vertex. The vertex color includes a first gray value and a second gray value. The first gray value and the second gray value can be stored in an A channel and an R channel respectively. The value range of the first gray value and the second gray value is [0, 1], in which 0 represents black and 1 represents white. The setting rule of VertexColor.a (the first gray value) of each model vertex is that the first gray value of the model vertex from left to right is set from small to large, so that the first gray value can be used as a sector angle control parameter, so that the value stored in the A channel plays a role in establishing the positive and negative relationship of the model vertex coordinates. In addition, the setting rule of VertexColor.r (the second gray value) of each model vertex is that the second gray value of the model vertex from the center to the periphery is set from small to large, so that the second gray value can be used as a sector radius control parameter, so that the value stored in the R channel plays a role in restricting the vertex range of the model vertex coordinates.

[0076] (2) Please refer to Figure 5The center point of the sector indicator model can be placed at the origin of the two-dimensional coordinate system, the radius of the sector indicator model is r, a point a1 on the sector indicator model is taken, the angle between the straight line from the point a1 to the origin and the y-axis is A / 2, and then the position coordinates of the point a in the fourth quadrant on the sector indicator model can be calculated by using the trigonometric function, i.e., a1(x, y) = a(sin(A / 2)*r, cos(A / 2)*r), and the coordinate point of a2 on the sector indicator model which is symmetric to the point a1 is a1(-x, y) = a(-sin(A / 2)*r, cos(A / 2)*r). Please refer to Figure 6 When the initial threshold range of the first gray value of each model vertex of the sector indicator model is [0, 1], the art personnel can set the target threshold range as [-1, 1], use the parameter 0.5 as the specified offset parameter value, use the parameter 2 as the adjustment weight value, convert the first gray value of each model vertex by using the threshold adjustment formula VertexColor.a2 = (VertexColor.a1-0.5)*2, and thus obtain the adjusted first gray value of each model vertex as the sector angle control parameter, wherein VertexColor.a1 is the initial first gray value of each model vertex, and VertexColor.a2 is the adjusted first gray value of each model vertex.

[0077] (3) Further, the art personnel can multiply the two-dimensional coordinate formula obtained above with the sector angle control parameter of each model vertex, and thus the position coordinates N of all the vertices on the sector arc of the sector indicator model can be derived, i.e., N(x, y) = N(sin((A / 2)*vc.a)*r, cos((A / 2)*vc.a)*r), wherein vc.a is the sector angle control parameter of each model vertex.

[0078] (4) Please refer to Figure 7 In the embodiment of the application, the art personnel needs to make corresponding conversion according to the actual position of the sector indicator model in the three-dimensional space. It is known that the sector indicator model has no thickness, and thus the vertex coordinates in the axial direction perpendicular to the plane of the sector indicator model are 0. Therefore, the coordinates of N can be derived, i.e., N(x, 0, z) = N(sin((A / 2)*vc.a)*r, 0, cos((A / 2)*vc.a)*r). In addition, the center point of the sector indicator model does not change when the included angle and the radius are changed. In order to ensure that the position of the sector center point is always (0, 0, 0), the art personnel also needs to multiply the coordinates of N with the R channel of VertexColor to ensure that the position of the sector center point is always (0, 0, 0), i.e., the final coordinate calculation formula is N 终(x, 0, z) = N(sin((A / 2)*vc.a)*r*vc.r, 0, cos((A / 2)*vc.a)*r*vc.r).

[0079] (5) In order to avoid the position deviation caused by the vertex position of the sector indicator model itself, the model scaling value origin position needs to be added when the model is output. The N 终 The coordinate position and the vertex position of the sector indicator model in the model space are added, and then converted to the world space to continue the subsequent screen drawing to display the sector indicator corresponding to the sector indicator model on the screen.

[0080] In order to further illustrate the generation method of the game indicator provided in the embodiments of the present application, the application of the processing method of the target sector indicator in a specific implementation scenario will be described below. The specific application scenario is as follows:

[0081] (1) The computer device can obtain the target radius and the target included angle corresponding to the target sector indicator required by the art personnel, and input the target radius and the target included angle into the calculation formula of each model vertex corresponding to the preset sector indicator model. The calculation formula of the model vertex is N 终 (x, 0, z) = N(sin((A / 2)*vc.a)*r*vc.r, 0, cos((A / 2)*vc.a)*r*vc.r), so as to obtain the vertex coordinates of each model vertex corresponding to the target sector indicator. The target sector indicator is generated and displayed according to the vertex coordinates.

[0082] (2) The computer device can obtain the sector model adjustment parameter set by the art personnel. The computer device can obtain the sector model adjustment parameter in response to the adjustment instruction for the target sector indicator, wherein the sector model adjustment parameter includes an angle adjustment parameter and / or a radius adjustment parameter. The three-dimensional vertex coordinates of each model vertex adjusted in the target sector indicator are adjusted based on the sector model adjustment parameter to obtain the target three-dimensional vertex coordinates of each model vertex. The target sector indicator is updated based on the target three-dimensional vertex coordinates of each model vertex, and the updated target sector indicator is generated and displayed. Specifically, the computer device can replace the target included angle and / or the target radius in the three-dimensional vertex coordinates of each model vertex adjusted in the target sector indicator based on the angle adjustment parameter and / or the radius adjustment parameter to obtain the target three-dimensional vertex coordinates of each model vertex. The adjusted target sector indicator is generated and displayed according to the target three-dimensional vertex coordinates.

[0083] In summary, the embodiment of the present application provides a game indicator generation method, which comprises the following steps: obtaining a preset fan-shaped indicator model, wherein the fan-shaped indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex; performing threshold adjustment processing on the first gray value of each model vertex of the fan-shaped indicator model, and taking the adjusted first gray value of each model vertex of the fan-shaped indicator model as a fan-shaped angle control parameter corresponding to a target fan-shaped indicator; generating two-dimensional vertex coordinates of the model vertex corresponding to the target fan-shaped indicator based on the fan-shaped angle control parameter, a target radius determined by the target fan-shaped indicator, and a target included angle; converting the two-dimensional vertex coordinates of the model vertex into three-dimensional vertex coordinates; adjusting the three-dimensional vertex coordinates based on the second gray value of each model vertex of the fan-shaped indicator model to obtain adjusted three-dimensional vertex coordinates; and generating and displaying the target fan-shaped indicator based on the adjusted three-dimensional vertex coordinates, the target included angle, and the target radius. In the embodiment of the present application, the three-dimensional vertex coordinates of each model vertex are constructed based on the preset fan-shaped indicator model, the target fan-shaped indicator corresponding to the preset fan-shaped indicator model can be dynamically adjusted by changing the fan-shaped radius and the preset included angle in the three-dimensional vertex coordinates, the fan-shaped indicator with a real-time control action range is obtained, the performance form of the fan-shaped indicator is diversified, the steps of modifying the indicator angle and the action range of the game indicator are simplified, and the production efficiency of the game indicator is improved.

[0084] To better implement the game indicator generation method provided by the embodiment of the present application, the embodiment of the present application further provides a game indicator generation device.

[0085] Please refer to Figure 8 , Figure 8 The structure diagram of the game indicator generation device provided by the embodiment of the present application is shown in the figure, and the device comprises:

[0086] The obtaining unit 201 is configured to obtain a preset fan-shaped indicator model, wherein the fan-shaped indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex;

[0087] The first adjusting unit 202 is configured to perform threshold adjustment processing on the first gray value of each model vertex of the fan indicator model, and adjust the first gray value of each model vertex of the fan indicator model to obtain a corresponding fan angle control parameter of the target fan indicator.

[0088] The first generating unit 203 is configured to generate two-dimensional vertex coordinates of the model vertex corresponding to the target fan indicator based on the fan angle control parameter, the target radius, and the target included angle.

[0089] The converting unit 204 is configured to convert the two-dimensional vertex coordinates of the model vertex to three-dimensional vertex coordinates.

[0090] The second adjusting unit 205 is configured to adjust the three-dimensional vertex coordinates based on the second gray value of each model vertex of the fan indicator model to obtain adjusted three-dimensional vertex coordinates.

[0091] The second generating unit 206 is configured to generate and display the target fan indicator based on the adjusted three-dimensional vertex coordinates, the target included angle, and the target radius.

[0092] In some embodiments, the game indicator generation apparatus comprises:

[0093] The first processing sub-unit is configured to initialize the vertex coordinates corresponding to each model vertex in the plurality of model vertices to zero.

[0094] In some embodiments, the game indicator generation apparatus comprises:

[0095] The first obtaining sub-unit is configured to obtain fan model adjustment parameters in response to an adjustment instruction for the target fan indicator, wherein the fan model adjustment parameters comprise an angle adjustment parameter and / or a radius adjustment parameter.

[0096] The adjusting sub-unit is configured to adjust the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator based on the fan model adjustment parameters to obtain target three-dimensional vertex coordinates of each model vertex.

[0097] The updating sub-unit is configured to update the target fan indicator based on the target three-dimensional vertex coordinates of each model vertex to generate and display the updated target fan indicator.

[0098] In some embodiments, the game indicator generation apparatus comprises:

[0099] The replacement subunit is configured to replace a target included angle and / or a target radius in the adjusted three-dimensional vertex coordinate of each model vertex in the target sector indicator based on the angle adjustment parameter and / or the radius adjustment parameter, to obtain a target three-dimensional vertex coordinate of each model vertex.

[0100] In some embodiments, the game indicator generation apparatus comprises:

[0101] The mapping subunit is configured to map the first gray value of each model vertex of the sector indicator model from an initial threshold range to a target threshold range by specifying an offset parameter value and an adjustment weight value.

[0102] In some embodiments, the game indicator generation apparatus comprises:

[0103] The second acquisition subunit is configured to acquire a difference between the first gray value of each model vertex and the specified offset parameter value.

[0104] The second acquisition subunit is further configured to acquire a product of the difference of each model vertex and the adjustment weight value, and take the product of each model vertex as a sector angle control parameter of each model vertex.

[0105] In some embodiments, the game indicator generation apparatus comprises:

[0106] The determination subunit is configured to determine a target coordinate axis in which the sector indicator model is in a perpendicular relationship in a preset coordinate system based on a positional relationship between the sector indicator model and the preset coordinate system.

[0107] The setting subunit is configured to set a coordinate value of each model vertex on the target coordinate axis to zero.

[0108] The determination subunit is further configured to determine a three-dimensional vertex coordinate of each model vertex based on a two-dimensional vertex coordinate of each model vertex and the coordinate value.

[0109] In some embodiments, the game indicator generation apparatus comprises:

[0110] The second processing subunit is configured to multiply the second gray value of each model vertex with its corresponding three-dimensional vertex coordinate to obtain an adjusted three-dimensional vertex coordinate of each model vertex.

[0111] The embodiment of the present application provides a game indicator generation device, a preset fan-shaped indicator model is acquired by an acquisition unit 201, wherein the fan-shaped indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex; a first adjusting unit 202 performs threshold adjusting processing on the first gray value of each model vertex of the fan-shaped indicator model, and adjusts the first gray value of each model vertex of the fan-shaped indicator model as a fan-shaped angle control parameter corresponding to the target fan-shaped indicator; a first generation unit 203 generates two-dimensional vertex coordinates of the model vertex corresponding to the target fan-shaped indicator based on the fan-shaped angle control parameter, the target radius and the target included angle; a conversion unit 204 converts the two-dimensional vertex coordinates of the model vertex into three-dimensional vertex coordinates; a second adjusting unit 205 adjusts the three-dimensional vertex coordinates based on the second gray value of each model vertex of the fan-shaped indicator model, and obtains adjusted three-dimensional vertex coordinates; and a second generation unit 206 generates and displays the target fan-shaped indicator based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius. The embodiment of the present application constructs three-dimensional vertex coordinates of each model vertex based on a preset fan-shaped indicator model, can change the fan-shaped radius in the three-dimensional vertex coordinates and parameters such as a preset included angle, thereby dynamically adjusting the target fan-shaped indicator corresponding to the preset fan-shaped indicator model, obtaining a fan-shaped indicator capable of controlling an action range in real time, diversifying the performance form of the fan-shaped indicator, simplifying the steps of modifying an indicator angle and an action range corresponding to the game indicator, and improving the production efficiency of the game indicator.

[0112] Correspondingly, the embodiment of the present application also provides a computer device, which can be a terminal or a server, and the terminal can be a terminal device such as a smart phone, a tablet computer, a notebook computer, a touch screen, a game machine, a personal computer (PC, Personal Computer), a personal digital assistant (PDA, Personal Digital Assistant) and the like. As shown in the figure, Figure 9 Figure 9 ​A structural schematic diagram of a computer device provided in the embodiments of the present application is shown. The computer device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art can understand that the computer device structure shown in the figure does not constitute a limitation on the computer device, and can include more or fewer components than shown in the figure, or combine certain components, or different component arrangements.

[0113] The processor 301 is the control center of the computer device 300, and connects various parts of the entire computer device 300 through various interfaces and lines, executes various functions and processes data of the computer device 300 by running or loading software programs and / or modules stored in the memory 302 and calling data stored in the memory 302, thereby overall monitoring the computer device 300.

[0114] In the embodiments of the present application, the processor 301 in the computer device 300 loads the instructions corresponding to the processes of one or more application programs into the memory 302, and runs the application programs stored in the memory 302 by the processor 301, thereby realizing various functions according to the following steps:

[0115] obtaining a preset fan indicator model, wherein the fan indicator model includes a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value includes a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex;

[0116] performing threshold adjustment processing on the first gray value of each model vertex of the fan indicator model, and taking the adjusted first gray value of each model vertex of the fan indicator model as a fan angle control parameter corresponding to the target fan indicator;

[0117] generating a two-dimensional vertex coordinate of a model vertex corresponding to the target fan indicator based on the fan angle control parameter, a target radius determined by the target fan indicator, and a target included angle;

[0118] converting the two-dimensional vertex coordinate of the model vertex into a three-dimensional vertex coordinate;

[0119] adjusting the three-dimensional vertex coordinate based on the second gray value of each model vertex of the fan indicator model to obtain an adjusted three-dimensional vertex coordinate;

[0120] generate and display the target sector indicator based on the adjusted three-dimensional vertex coordinates, the target sector angle and the target radius.

[0121] In an embodiment, before generating the two-dimensional vertex coordinates of the model vertex corresponding to the target sector indicator based on the sector angle control parameter, the target radius determined by the target sector indicator and the target sector angle, the method further comprises:

[0122] initializing the vertex coordinates corresponding to each model vertex in the plurality of model vertices to zero.

[0123] In an embodiment, after generating and displaying the target sector indicator based on the adjusted three-dimensional vertex coordinates, the target sector angle and the target radius, the method further comprises:

[0124] In response to an adjustment instruction for the target sector indicator, obtaining sector model adjustment parameters, wherein the sector model adjustment parameters include angle adjustment parameters and / or radius adjustment parameters;

[0125] adjusting the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator based on the sector model adjustment parameters to obtain target three-dimensional vertex coordinates of each model vertex;

[0126] updating the target sector indicator based on the target three-dimensional vertex coordinates of each model vertex, and generating and displaying the updated target sector indicator.

[0127] In an embodiment, the adjusting the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator based on the sector model adjustment parameters to obtain target three-dimensional vertex coordinates of each model vertex comprises:

[0128] replacing the target sector angle and / or the target radius in the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator based on the angle adjustment parameters and / or the radius adjustment parameters to obtain target three-dimensional vertex coordinates of each model vertex.

[0129] In an embodiment, the threshold adjusting the first gray value of each model vertex of the sector indicator model and adjusting the adjusted first gray value of each model vertex of the sector indicator model as the sector angle control parameter corresponding to the target sector indicator comprises:

[0130] mapping the first gray value of each model vertex of the sector indicator model from an initial threshold value range to a target threshold value range by specifying an offset parameter value and an adjustment weight value.

[0131] In one embodiment, mapping the first grayscale value of each model vertex of the fan-shaped indicator model from an initial threshold range to a target threshold range by specifying offset parameter values ​​and adjusting weight values ​​includes:

[0132] Obtain the difference between the first grayscale value of each model vertex and the specified offset parameter value;

[0133] The product of the difference between each model vertex and the adjustment weight value is obtained, and the product of each model vertex is used as the sector angle control parameter of each model vertex.

[0134] In one embodiment, converting the two-dimensional vertex coordinates of the model vertices into three-dimensional vertex coordinates includes:

[0135] Based on the positional relationship between the fan-shaped indicator model and the preset coordinate system, the target coordinate axis of the fan-shaped indicator model in the preset coordinate system is determined to be perpendicular;

[0136] Set the coordinate value of each model vertex on the target coordinate axis to zero;

[0137] The three-dimensional vertex coordinates of each model vertex are determined based on the two-dimensional vertex coordinates of each model vertex and the coordinate values ​​thereon.

[0138] In one embodiment, adjusting the three-dimensional vertex coordinates based on the second grayscale value of each model vertex of the fan-shaped indicator model to obtain the adjusted three-dimensional vertex coordinates includes:

[0139] The second grayscale value of each model vertex is multiplied by its corresponding three-dimensional vertex coordinates to obtain the adjusted three-dimensional vertex coordinates of each model vertex.

[0140] In one embodiment, both the preset sector indicator model and the target sector indicator are mesh models with a thickness parameter of zero.

[0141] For details on the implementation of each of the above operations, please refer to the previous examples, which will not be repeated here.

[0142] Optional, such as Figure 9 As shown, the computer device 300 also includes: a touch screen display 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen display 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307. Those skilled in the art will understand that... Figure 4 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements.

[0143] The touch display screen 303 can be used to display a graphical user interface and receive operation instructions generated by user acting on the graphical user interface. The touch display screen 303 can include a display panel and a touch panel. The display panel can be used to display information input by the user or provided to the user and various graphical user interfaces of the computer device, which can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED) or the like. The touch panel can be used to collect touch operations (such as user operations on or near the touch panel using a finger, a stylus or any suitable object or accessory) of the user thereon or therearound, and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position of the user and detects signals generated by the touch operation, and transmits the signals to the touch controller; the touch controller receives the touch information from the touch detection device, and converts the touch information into touch coordinates, and then sends the touch coordinates to the processor 301, and can receive commands from the processor 301 and execute the commands. The touch panel can cover the display panel, and when the touch panel detects a touch operation thereon or therearound, the touch panel transmits the touch operation to the processor 301 to determine the type of the touch event, and then the processor 301 provides corresponding visual output on the display panel according to the type of the touch event. In the embodiments of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can realize input and output functions as two independent components. That is, the touch display screen 303 can also realize input functions as part of the input unit 306.

[0144] In the embodiments of the present application, the processor 301 executes a game application to generate a graphical user interface on the touch display screen 303. The touch display screen 303 is used to present the graphical user interface and receive operation instructions generated by user acting on the graphical user interface.

[0145] The radio frequency circuit 304 can be used to transceive radio frequency signals, so as to establish wireless communication with a network device or other computer device, and transceive signals between the network device or other computer device.

[0146] The audio circuit 305 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 305 can convert received audio data into an electrical signal and transmit the electrical signal to the speaker for conversion into an audible signal output by the speaker. On the other hand, the microphone can collect a sound signal and convert the sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data. The audio data is then output to the processor 301 for processing, and then transmitted to another computer device via the radio frequency circuit 304, or output to the memory 302 for further processing. The audio circuit 305 can also include a jack for a headset to provide communication between the headset and the computer device.

[0147] The input unit 306 can be used to receive inputted digital, character information or user feature information (e.g. fingerprint, iris, face information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0148] The power supply 307 is used to supply power to various components of the computer device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can be used to manage charging, discharging and power consumption management, etc. The power supply 307 can also include one or more DC or AC power sources, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, etc.

[0149] Although Figure 9 The computer device 300 can also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc. which are not shown in the embodiments and will not be described herein.

[0150] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the relevant description of other embodiments.

[0151] As can be seen from the above, the computer device provided in this embodiment acquires a preset fan-shaped indicator model, wherein the fan-shaped indicator model includes multiple model vertices, each model vertex is set with a corresponding vertex color value, the vertex color value includes a first grayscale value and a second grayscale value, the first grayscale value is stored through the first color channel corresponding to the model vertex, and the second grayscale value is stored through the second color channel corresponding to the model vertex; the first grayscale value of each model vertex of the fan-shaped indicator model is threshold adjusted, and the adjusted first grayscale value of each model vertex of the fan-shaped indicator model is used as the fan-shaped angle control parameter corresponding to the target fan-shaped indicator; based on the fan-shaped angle control parameter, the target radius and the target included angle determined by the target fan-shaped indicator, the two-dimensional vertex coordinates of the model vertex corresponding to the target fan-shaped indicator are generated; the two-dimensional vertex coordinates of the model vertex are converted into three-dimensional vertex coordinates; based on the second grayscale value of each model vertex of the fan-shaped indicator model, the three-dimensional vertex coordinates are adjusted to obtain the adjusted three-dimensional vertex coordinates; based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius, the target fan-shaped indicator is generated and displayed. This application embodiment constructs the three-dimensional vertex coordinates of each model vertex based on a preset fan-shaped indicator model. By changing parameters such as the fan radius and preset included angle in the three-dimensional vertex coordinates, the target fan-shaped indicator corresponding to the preset fan-shaped indicator model can be dynamically adjusted to obtain a fan-shaped indicator whose range of action can be controlled in real time. This diversifies the expression of the fan-shaped indicator, simplifies the steps of modifying the indicator angle and range of action of the game indicator, and improves the production efficiency of the game indicator.

[0152] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0153] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of computer programs that can be loaded by a processor to execute the steps in any of the game indicator generation methods provided in embodiments of this application. For example, the computer program can execute the following steps:

[0154] Obtain a preset fan-shaped indicator model, wherein the fan-shaped indicator model includes multiple model vertices, each model vertex is set with a corresponding vertex color value, the vertex color value includes a first gray value and a second gray value, the first gray value is stored through the first color channel corresponding to the model vertex, and the second gray value is stored through the second color channel corresponding to the model vertex.

[0155] thresholding the first gray value of each model vertex of the fan indicator model, and taking the adjusted first gray value of each model vertex of the fan indicator model as a corresponding fan angle control parameter of the target fan indicator;

[0156] generating two-dimensional vertex coordinates of the model vertex corresponding to the target fan indicator based on the fan angle control parameter, a target radius determined by the target fan indicator, and a target included angle;

[0157] converting the two-dimensional vertex coordinates of the model vertex into three-dimensional vertex coordinates;

[0158] adjusting the three-dimensional vertex coordinates based on the second gray value of each model vertex of the fan indicator model to obtain adjusted three-dimensional vertex coordinates;

[0159] generating and displaying the target fan indicator based on the adjusted three-dimensional vertex coordinates, the target included angle, and the target radius.

[0160] In an embodiment, before generating the two-dimensional vertex coordinates of the model vertex corresponding to the target fan indicator based on the fan angle control parameter, a target radius determined by the target fan indicator, and a target included angle, the method further comprises:

[0161] initializing the vertex coordinates corresponding to each model vertex in the plurality of model vertices to zero.

[0162] In an embodiment, after generating and displaying the target fan indicator based on the adjusted three-dimensional vertex coordinates, the target included angle, and the target radius, the method further comprises:

[0163] in response to an adjustment instruction for the target fan indicator, obtaining a fan model adjustment parameter, wherein the fan model adjustment parameter includes an angle adjustment parameter and / or a radius adjustment parameter;

[0164] adjusting the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator based on the fan model adjustment parameter to obtain a target three-dimensional vertex coordinate of each model vertex;

[0165] updating the target fan indicator based on the target three-dimensional vertex coordinate of each model vertex to generate and display the updated target fan indicator.

[0166] In an embodiment, the adjusting the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator based on the fan model adjustment parameter to obtain a target three-dimensional vertex coordinate of each model vertex comprises:

[0167] Based on the angle adjustment parameter and / or the radius adjustment parameter, a target included angle and / or a target radius in the adjusted three-dimensional vertex coordinates of each model vertex in the target sector indicator are replaced to obtain a target three-dimensional vertex coordinate of each model vertex.

[0168] In an embodiment, the threshold adjustment processing of the first gray value of each model vertex of the sector indicator model, and the adjusted first gray value of each model vertex of the sector indicator model as the corresponding sector angle control parameter of the target sector indicator, comprises:

[0169] The first gray value of each model vertex of the sector indicator model is mapped from an initial threshold range to a target threshold range by specifying an offset parameter value and an adjustment weight value.

[0170] In an embodiment, the first gray value of each model vertex of the sector indicator model is mapped from an initial threshold range to a target threshold range by specifying an offset parameter value and an adjustment weight value, comprising:

[0171] Obtaining the difference between the first gray value of each model vertex and the specified offset parameter value;

[0172] Obtaining the product of the difference of each model vertex and the adjustment weight value, and taking the product of each model vertex as the sector angle control parameter of each model vertex.

[0173] In an embodiment, the conversion of the two-dimensional vertex coordinates of the model vertex to the three-dimensional vertex coordinates comprises:

[0174] Based on the position relationship between the sector indicator model and the preset coordinate system, determining a target coordinate axis of the sector indicator model in the preset coordinate system in a vertical relationship;

[0175] Setting the coordinate value of each model vertex on the target coordinate axis to zero;

[0176] Based on the two-dimensional vertex coordinates of each model vertex, and the coordinate value, determining the three-dimensional vertex coordinates of each model vertex.

[0177] In an embodiment, the adjustment of the three-dimensional vertex coordinates based on the second gray value of each model vertex of the sector indicator model, to obtain the adjusted three-dimensional vertex coordinates, comprises:

[0178] Multiplying the second gray value of each model vertex and its corresponding three-dimensional vertex coordinates to obtain the adjusted three-dimensional vertex coordinates of each model vertex.

[0179] In an embodiment, the preset fan indicator model and the target fan indicator are both grid models with a thickness parameter of zero.

[0180] The specific implementation of the above operations can refer to the foregoing embodiments, which will not be described here again.

[0181] The storage medium can include a read-only memory (ROM), a random access memory (RAM), a magnetic disk, an optical disk, or the like.

[0182] Due to the computer program stored in the storage medium, by acquiring a preset fan indicator model, the fan indicator model includes a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value includes a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex; the first gray value of each model vertex of the fan indicator model is subjected to threshold adjustment processing, and the adjusted first gray value of each model vertex of the fan indicator model is taken as a corresponding fan angle control parameter of the target fan indicator; based on the fan angle control parameter, a target radius determined by the target fan indicator, and a target included angle, a two-dimensional vertex coordinate of a model vertex corresponding to the target fan indicator is generated; the two-dimensional vertex coordinate of the model vertex is converted into a three-dimensional vertex coordinate; based on the second gray value of each model vertex of the fan indicator model, the three-dimensional vertex coordinate is adjusted to obtain an adjusted three-dimensional vertex coordinate; based on the adjusted three-dimensional vertex coordinate, the target included angle, and the target radius, the target fan indicator is generated and displayed. The embodiment of the application constructs a three-dimensional vertex coordinate of each model vertex based on a preset fan indicator model, can change parameters such as a fan radius and a preset included angle in the three-dimensional vertex coordinate, thereby dynamically adjusting a target fan indicator corresponding to the preset fan indicator model, obtaining a fan indicator that can control an action range in real time, diversifying a performance form of the fan indicator, simplifying a step of modifying an indicator angle and an action range of a game indicator, and improving a production efficiency of the game indicator.

[0183] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can refer to the related description of other embodiments.

[0184] The generation method and device of the game indicator, the computer device, and the storage medium are described in detail above, and the principles and implementation manners of the present application are described by using specific examples. The above embodiment description is only used to help understand the technical solutions and core ideas of the present application. Those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can be modified, or some technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method of generating a game indicator, characterized by, The method comprises the following steps: acquiring a preset fan indicator model, wherein the fan indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray value and a second gray value, the first gray value is stored through a first color channel corresponding to the model vertex, and the second gray value is stored through a second color channel corresponding to the model vertex; performing threshold adjustment processing on the first gray value of each model vertex of the fan indicator model, and taking the adjusted first gray value of each model vertex of the fan indicator model as a fan angle control parameter corresponding to a target fan indicator; generating two-dimensional vertex coordinates of the model vertex corresponding to the target fan indicator based on the fan angle control parameter, a target radius determined by the target fan indicator and a target included angle; converting the two-dimensional vertex coordinates of the model vertex into three-dimensional vertex coordinates; adjusting the three-dimensional vertex coordinates based on the second gray value of each model vertex of the fan indicator model to obtain adjusted three-dimensional vertex coordinates; generating and displaying the target fan indicator based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius.

2. The method of claim 1, wherein, Before generating the two-dimensional vertex coordinates of the model vertex corresponding to the target fan indicator based on the fan angle control parameter, the target radius determined by the target fan indicator and the target included angle, the method further comprises the following steps: performing initialization processing on the vertex coordinates corresponding to each model vertex in the plurality of model vertices, so as to zero the vertex coordinates.

3. The method of claim 1, wherein, After generating and displaying the target fan indicator based on the adjusted three-dimensional vertex coordinates, the target included angle and the target radius, the method further comprises the following steps: in response to an adjustment instruction for the target fan indicator, acquiring a fan model adjustment parameter, wherein the fan model adjustment parameter comprises an angle adjustment parameter and / or a radius adjustment parameter; adjusting the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator based on the fan model adjustment parameter to obtain target three-dimensional vertex coordinates of each model vertex; updating the target fan indicator based on the target three-dimensional vertex coordinates of each model vertex, and generating and displaying the updated target fan indicator.

4. The method of claim 3, wherein, The adjusting of the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator based on the fan model adjustment parameter to obtain target three-dimensional vertex coordinates of each model vertex comprises the following steps: based on the angle adjustment parameter and / or the radius adjustment parameter, replacing the target included angle and / or the target radius in the adjusted three-dimensional vertex coordinates of each model vertex in the target fan indicator to obtain the target three-dimensional vertex coordinates of each model vertex.

5. The method of claim 1, wherein, The threshold adjustment processing on the first gray value of each model vertex of the fan indicator model and the taking of the adjusted first gray value of each model vertex of the fan indicator model as the fan angle control parameter corresponding to the target fan indicator comprises the following steps: The first gray scale value of each model vertex of the sector indicator model is mapped from an initial threshold range to a target threshold range by specifying an offset parameter value and adjusting a weight value.

6. The method of claim 5, wherein, The mapping of the first gray scale value of each model vertex of the sector indicator model to the target threshold range by specifying the offset parameter value and adjusting the weight value comprises: obtaining a difference between the first gray scale value of each model vertex and the specified offset parameter value; obtaining a product of the difference of each model vertex and the adjustment weight value, and taking the product of each model vertex as a sector angle control parameter of each model vertex.

7. The method of claim 1, wherein, The conversion of the two-dimensional vertex coordinates of the model vertex to the three-dimensional vertex coordinates comprises: determining a target coordinate axis in a preset coordinate system in which the sector indicator model is in a perpendicular relationship based on the position relationship between the sector indicator model and the preset coordinate system; setting the coordinate value of each model vertex on the target coordinate axis to zero; determining the three-dimensional vertex coordinates of each model vertex based on the two-dimensional vertex coordinates of each model vertex and the coordinate value.

8. The method of claim 1, wherein, The adjustment of the three-dimensional vertex coordinates based on the second gray scale value of each model vertex of the sector indicator model to obtain adjusted three-dimensional vertex coordinates comprises: multiplying the second gray scale value of each model vertex and its corresponding three-dimensional vertex coordinates to obtain the adjusted three-dimensional vertex coordinates of each model vertex.

9. The method of claim 1 to 8, wherein, The preset sector indicator model and the target sector indicator are both grid models with a thickness parameter of zero.

10. A game indicator generating apparatus characterized by comprising: Comprise: an obtaining unit, configured to obtain a preset sector indicator model, wherein the sector indicator model comprises a plurality of model vertices, each model vertex is provided with a corresponding vertex color value, the vertex color value comprises a first gray scale value and a second gray scale value, the first gray scale value is stored through a corresponding first color channel of the model vertex, and the second gray scale value is stored through a corresponding second color channel of the model vertex; a first adjusting unit, configured to perform threshold adjustment processing on the first gray scale value of each model vertex of the sector indicator model, and take the adjusted first gray scale value of each model vertex of the sector indicator model as a corresponding sector angle control parameter of a target sector indicator; a first generating unit, configured to generate two-dimensional vertex coordinates of a model vertex corresponding to the target sector indicator based on the sector angle control parameter, a target radius determined by the target sector indicator, and a target included angle; a converting unit, configured to convert the two-dimensional vertex coordinates of the model vertex to three-dimensional vertex coordinates; a second adjusting unit, configured to adjust the three-dimensional vertex coordinates based on the second gray scale value of each model vertex of the sector indicator model to obtain adjusted three-dimensional vertex coordinates; a second generating unit, configured to generate and display the target sector indicator based on the adjusted three-dimensional vertex coordinates, the target included angle, and the target radius.

11. A computer device, comprising: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the steps in the game indicator generation method according to any one of claims 1 to 9 by calling the computer program stored in the memory.

12. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is loaded by a processor to execute the steps in the game indicator generation method according to any one of claims 1 to 9.

Citation Information

Patent Citations

  • Game scene construction method and device

    CN108159693A

  • Hair rendering method, device and storage medium

    CN113888688A