Game screen processing method, device, computer equipment and storage medium

By adjusting the position of virtual props in the shooting game, the problem of inconsistency in game screens caused by different display screens is solved, and the consistency and fairness of the game experience are improved.

CN113546407BActive Publication Date: 2024-11-08NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110871656.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-30
Publication Date
2024-11-08
Estimated Expiration
2041-07-30

AI Technical Summary

Technical Problem

In shooting games, due to the different screen ratios of the terminal display screens, the display of the game screen on different display screens is inconsistent, affecting the player's gaming experience.

Method used

By determining the initial position of the target virtual prop in the game screen and the field of view of the target weapon, adjusting based on the size of the display screen, calculating the position change coefficient, and adjusting the position of the virtual prop in the game scene to ensure that the screen is consistent on different screens show.

Benefits of technology

It improves the efficiency of game screen processing, ensures consistency and fairness of the game experience, and avoids the incomplete or incomplete display of virtual props due to differences in screen proportions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113546407B_ABST
    Figure CN113546407B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method, device, computer equipment and storage medium for processing game screens. This solution projects the initial spatial coordinates of the target virtual prop in the game world scene to the display screen showing the game screen from the first-person perspective to obtain the screen coordinates, matches and adjusts the screen coordinates according to the target weapon field of view of the target virtual prop and the target display size of the display screen, and then back-projects the adjusted screen coordinates to the game world scene to obtain the transformed spatial coordinates, and adjusts the initial spatial coordinates by the transformed spatial coordinates to obtain the target spatial coordinates of the target virtual prop in the game world scene. By adjusting the position coordinates of the target virtual prop in the game world scene, the display effect of the target virtual prop in the game screen is improved, thereby improving the user's gaming experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, computer equipment and storage medium for processing game images. Background Art

[0002] In some shooting games (such as First-person shooter, or FPS games, which refers to first-person perspective shooting games), there is a virtual camera on the virtual character, which collects the image angle range that can be received from the first-person perspective. That is, in FPS games, the field of view is the range of the observable game world scene that can be seen on the terminal display screen at any time, usually given as the angle of the horizontal or vertical component of the field of view, and a larger angle means a larger field of view.

[0003] However, since some terminal display screens have different screen ratios, this difference in screen ratio will directly lead to changes in the horizontal or vertical field of view of the in-game battle, so that the same game screen is inconsistently displayed on different display screens, affecting the player's gaming experience. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, computer device and storage medium for processing game screens, which can improve the efficiency of processing game screens in a game.

[0005] The present application provides a method for processing a game screen, including:

[0006] Determine the initial position of the target virtual prop in the game screen;

[0007] Determine a target weapon field of view angle of the target virtual prop in the game screen;

[0008] Adjusting the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position;

[0009] Determining a target scene position of the target virtual prop in the game scene according to the adjusted position;

[0010] The game screen is updated based on the target scene position and the target virtual prop.

[0011] Accordingly, the embodiment of the present application further provides a game screen processing device, including:

[0012] A first determining unit, used to determine an initial position of a target virtual prop in a preset game screen;

[0013] A second determining unit is used to determine a target weapon field of view angle of the target virtual prop in the current game screen;

[0014] An adjustment unit, configured to adjust the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position;

[0015] A third determining unit, configured to determine a target scene position of the target virtual prop in the game scene according to the adjusted position;

[0016] An updating unit is used to update the current game screen based on the target scene position and the target virtual prop.

[0017] In some embodiments, the adjusting unit comprises:

[0018] A first acquisition subunit is used to acquire a preset display ratio and a preset scene viewing angle of the preset game screen;

[0019] A first processing subunit is used to process the initial position according to the preset display ratio and the target display size to obtain the current position of the target virtual prop in the current game screen;

[0020] A first determining subunit is used to determine a position change coefficient according to the preset scene field of view angle and the target weapon field of view angle;

[0021] The second determining subunit is used to determine the adjusted position of the target virtual prop in the current game screen based on the current position and the position change coefficient.

[0022] In some embodiments, the first processing subunit is specifically configured to:

[0023] Calculating a target display ratio of the display screen according to the target display size;

[0024] Calculating the ratio of the target display ratio to the preset display ratio to obtain a display ratio matching coefficient;

[0025] The current position is obtained by calculating the multiplication value of the initial position and the display ratio matching coefficient.

[0026] In some embodiments, the first determining subunit is specifically configured to:

[0027] Determining the scene focal length of the preset game screen based on the preset scene field of view;

[0028] Determining the weapon focal length of the target virtual prop based on the target weapon field of view angle;

[0029] The ratio of the scene focal length to the weapon focal length is calculated to obtain the position variation coefficient.

[0030] In some embodiments, the second determining subunit is specifically configured to:

[0031] The multiplication value of the current position and the position change coefficient is calculated to obtain the adjusted position.

[0032] In some embodiments, the third determining unit includes:

[0033] A second acquisition subunit is used to acquire an initial scene position of the target virtual prop in the game scene;

[0034] The second processing subunit is used to process the initial scene position according to the adjusted position to obtain the target scene position.

[0035] In some embodiments, the second processing subunit is specifically configured to:

[0036] Determining position offset information of the initial scene position based on the adjusted position;

[0037] The initial scene position is superimposed on the position offset information to obtain the target scene position.

[0038] In some embodiments, the second processing subunit is further configured to:

[0039] Acquire a first coordinate system to which the adjusted position belongs, and a second coordinate system to which the initial scene position belongs;

[0040] Based on the relationship between the first coordinate system and the second coordinate system, projecting the adjusted position to the second coordinate system to obtain a target position of the adjusted position in the second coordinate system;

[0041] Calculating the offset distance between the initial scene position and the target position to obtain the position offset information;

[0042] The initial scene position is superimposed on the position offset information to obtain the target scene position.

[0043] In some embodiments, the first determining unit includes:

[0044] A third acquisition subunit is used to acquire an initial scene position of the target virtual prop in the game scene and a preset display size;

[0045] A calculation subunit is used to calculate the initial position based on the initial scene position and the preset display size.

[0046] In some embodiments, the second determining unit includes:

[0047] A fourth acquisition subunit, used to acquire the weapon type of the target virtual item;

[0048] The third determination subunit is used to determine the target weapon field of view angle from a plurality of preset weapon field of view angles based on the weapon type.

[0049] In some embodiments, the updating unit includes:

[0050] An adjusting subunit, used for adjusting the target virtual prop from an initial scene position in the game scene to the target scene position;

[0051] The display subunit is used to update and display the target virtual props after the position is adjusted on the current game screen.

[0052] In some embodiments, the apparatus further comprises:

[0053] An acquisition unit, used for acquiring a target scene field angle of a virtual camera in a horizontal direction, wherein the virtual camera is used for capturing the game scene;

[0054] A generating unit is used to generate the preset game screen based on the game scene within the field of view angle range of the target scene.

[0055] Correspondingly, an embodiment of the present application also provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes any game screen processing method provided in any embodiment of the present application.

[0056] Correspondingly, an embodiment of the present application also provides a storage medium, which stores multiple instructions, and the instructions are suitable for a processor to load to execute the above-mentioned game screen processing method.

[0057] The embodiment of the present application determines the quantity of virtual items acquired by a teammate player when the current player and the teammate player pick up the same virtual item in the same item backpack, and displays the players who acquire the virtual item and the corresponding quantity acquired by the players on the game interface, so that the current player can clearly understand the picking information of the virtual item by each teammate player. If the current player lacks the virtual item, the target teammate player to whom the item acquisition request needs to be sent can be quickly determined based on the picking information of the virtual item, thereby improving the efficiency of processing the game screen in the game. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0059] Figure 1 A scene diagram of a game screen processing system provided in an embodiment of the present application.

[0060] Figure 2 A flowchart of a method for processing game screens provided in an embodiment of the present application.

[0061] Figure 3 A flowchart of another method for processing game screens provided in an embodiment of the present application.

[0062] Figure 4 A schematic diagram of an application scenario of the game screen processing method provided in an embodiment of the present application.

[0063] Figure 5 A schematic diagram of another application scenario of the game screen processing method provided in an embodiment of the present application.

[0064] Figure 6 A schematic diagram of another application scenario of the game screen processing method provided in an embodiment of the present application.

[0065] Figure 7 A structural block diagram of a game screen processing device provided in an embodiment of the present application.

[0066] Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0068] The embodiment of the present application provides a method, device, storage medium and computer equipment for processing game screens. Specifically, the method for processing game screens in the embodiment of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server or other equipment. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (Personal Digital Assistant, PDA), etc. The terminal can also include a client, which can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0069] For example, when the game screen processing method is run on a terminal, the terminal device stores a game application and is used to present a virtual scene in the game screen. The terminal device is used to interact with the user through a graphical user interface, for example, the game application is downloaded and installed by the terminal device and run. The terminal device may provide the graphical user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the graphical user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface, the graphical user interface includes a game screen, and the processor is used to run the game, generate a graphical user interface, respond to the operation instruction, and control the display of the graphical user interface on the touch display screen.

[0070] For example, when the game screen processing method runs on a server, it can be a cloud game. Cloud gaming refers to a gaming method based on cloud computing. In the operation mode of cloud gaming, the operating body of the game application and the game screen presentation body are separated, and the storage and operation of the game screen processing method are completed on the cloud gaming server. The game screen presentation is completed on the client of the cloud gaming. The cloud gaming client is mainly used for receiving and sending game data and presenting the game screen. For example, the cloud gaming client can be a display device with data transmission function close to the user side, such as a mobile terminal, a TV, a computer, a handheld computer, a personal digital assistant, etc., but the terminal device for processing game data is a cloud gaming server in the cloud. When playing the game, the user operates the cloud gaming client to send an operation instruction to the cloud gaming server. The cloud gaming server runs the game according to the operation instruction, encodes and compresses the game screen and other data, and returns it to the cloud gaming client through the network. Finally, the cloud gaming client decodes and outputs the game screen.

[0071] See also Figure 1 , Figure 1 A scene diagram of a game screen processing system provided for an embodiment of the present application. The system may include at least one terminal, at least one server, at least one database, and a network. The terminal held by the user can be connected to the server of different games through the network. The terminal is any device with computing hardware that can support and execute software products corresponding to the game. In addition, the terminal has one or more multi-touch screens for sensing and obtaining the input of the user through the touch or sliding operation performed at multiple points of one or more touch-controlled display screens. 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 different servers. The network can be a wireless network or a wired network, such as a wireless network for 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, etc. In addition, different terminals 1000 can also use their own Bluetooth network or hotspot network to connect to other terminals or to servers, etc. For example, multiple users can be online through different terminals and thus connected and synchronized with each other through appropriate networks to support multi-player games. In addition, the system may include multiple databases, the multiple databases are coupled to different servers, and the information related to the game environment can be continuously stored in the databases when different users play the multi-player game online.

[0072] The embodiment of the present application provides a method for processing a game screen, which can be executed by a terminal or a server. The embodiment of the present application takes the execution of the game screen processing method by a terminal as an example for explanation. Among them, the terminal includes a touch display screen and a processor, and the touch display screen is used to present a graphical user interface and receive an operation instruction generated by a user acting on the graphical user interface. When the user operates the graphical user interface through the touch display screen, the graphical user interface can control the local content of the terminal by responding to the received operation instruction, and can also control the content of the opposite server by responding to the received operation instruction. For example, the operation instruction generated by the user acting on the graphical user interface includes an instruction for starting a game application, and the processor is configured to start the game application after receiving the instruction to start the game application provided by the user. In addition, the processor is configured to render and draw a graphical user interface associated with the game on the touch display screen. The touch display screen is a multi-touch sensitive screen that can sense touch or sliding operations performed simultaneously at multiple points on the screen. The user performs a touch operation on the graphical user interface using a finger, and when the graphical user interface detects the touch operation, different virtual objects in the graphical user interface of the game are controlled to perform actions corresponding to the touch operation. For example, the game can be any of the games such as casual games, action games, role-playing games, strategy games, sports games, puzzle games, etc. Among them, the game can include a virtual scene of the game drawn on a graphical user interface. In addition, the virtual scene of the game can include one or more virtual objects controlled by a user (or player), such as a virtual character. In addition, the virtual scene of the game can also include one or more obstacles, such as railings, gullies, walls, etc., to limit the movement of virtual objects, such as limiting the movement of one or more objects to a specific area in the virtual scene. Optionally, the virtual scene of the game also includes one or more elements, such as skills, scores, character health status, energy, etc., to provide help to players, provide virtual services, increase scores related to player performance, etc. In addition, the graphical user interface can also present one or more indicators to provide indication information to the player. For example, the game can include a virtual object controlled by a player and one or more other virtual objects (such as an enemy character). In one embodiment, one or more other virtual objects are controlled by other players of the game. For example, one or more other virtual objects can be controlled by a computer, such as a robot using an artificial intelligence (AI) algorithm, to achieve a man-machine battle mode. For example, a virtual object has various skills or abilities that game players use to achieve their goals. For example, a virtual object has one or more weapons, props, tools, etc. that can be used to eliminate other objects from the game. Such skills or abilities can be activated by a game player using one of a plurality of preset touch operations with the touch display screen of the terminal. The processor can be configured to present a corresponding game screen in response to an operation instruction generated by the user's touch operation.

[0073] It should be noted that Figure 1 The scene diagram of the game screen processing system shown is only an example. The image processing system and scene described in the embodiment of the present application are intended to more clearly illustrate the technical solution of the embodiment of the present application, and do not constitute a limitation on the technical solution provided in the embodiment of the present application. Ordinary technicians in this field can know that with the evolution of the game screen processing system and the emergence of new business scenarios, the technical solution provided in the embodiment of the present application is also applicable to similar technical problems.

[0074] Based on the above problems, the embodiments of the present application provide a first game screen processing method, device, computer equipment and storage medium, which can improve the efficiency of processing game screens in the game. The following are detailed descriptions. It should be noted that the description order of the following embodiments is not intended to limit the preferred order of the embodiments.

[0075] An embodiment of the present application provides a method for processing a game screen, which can be executed by a terminal or a server. The embodiment of the present application takes the game screen processing method executed by a terminal as an example for explanation.

[0076] See also Figure 2 , Figure 2 A flowchart of a method for processing a game screen provided in an embodiment of the present application is shown below.

[0077] 101. Determine the initial position of the target virtual prop in the preset game screen.

[0078] Among them, the target virtual props refer to the weapon props used by the current game player to attack other virtual characters in the game. For example, the target virtual props can be virtual guns, virtual daggers, virtual bombs, etc.

[0079] In an embodiment of the present application, the game may be a first-person shooter game, i.e., an FPS game, which refers to a shooting electronic game that uses the player's first-person perspective as the main perspective. The game screen of the first-person shooter game displays the field of view of the current virtual character, and the current virtual character does not appear in the game screen, so that players can experience the visual impact of the game in an immersive way.

[0080] The game screen includes some game scenes, target virtual props, and some other virtual characters. The current game player can observe the changes in the game scene through the game screen to see if there are other virtual characters approaching, so as to determine the target of attack. The preset game screen refers to the game screen generated by displaying the collected game scene field of view in a preset display size. For example, the preset display size can be: 1600x900 (width x height).

[0081] The initial position refers to the position of the target virtual prop in the preset game screen.

[0082] In some embodiments, in order to quickly determine the initial position of the target virtual prop, the step of "determining the initial position of the target virtual prop in the preset game screen" may include the following operations:

[0083] Get the initial scene position of the target virtual prop in the game scene and the preset display size;

[0084] Calculates the initial position based on the initial scene position and the preset display size.

[0085] The game scene refers to the 3D (3D) game space where the virtual characters, virtual props and virtual environment in the game exist. The initial scene position refers to the 3D coordinates of the target virtual props in the game scene. For example, the initial scene position can be (a, b, c), where a, b, c represent the values ​​on each coordinate axis of the three-dimensional space respectively.

[0086] The initial position is obtained according to the preset display size of the initial scene position, that is, the three-dimensional coordinate position of the target virtual prop in the game scene is transformed into the two-dimensional coordinate position in the game screen.

[0087] In an embodiment of the present application, the official vector operation expression TransformPosition of the UE4 (Unreal Engine 4) engine can be used to convert any three-dimensional coordinate position in the game scene into a two-dimensional coordinate position in the game screen.

[0088] Specifically, the Transform expression converts a three-channel vector value from one reference coordinate system to another. By default, all shader calculations for a material are done in tangent space. Vector constants, camera vectors, and light vectors, etc., are transformed to tangent space before being used in a material. The Transform expression allows these vectors to be transformed from tangent space to world, local, or view space coordinate systems. Additionally, it allows world and local space vectors to be transformed to any other reference coordinate system. The TransformPosition expression transforms any position in screen space to the target space specified by the expression's TransformType variable.

[0089] Furthermore, based on the Transform expression and the TransformPosition expression, the initial position of the target virtual prop at the initial scene position in the game scene in the game screen of the preset display size can be calculated.

[0090] In some embodiments, in order to ensure the display consistency of the game scene field of view, before the step of "determining the initial position of the target virtual prop in the preset game screen", the following steps may also be included:

[0091] Get the target scene field of view angle of the virtual camera in the horizontal direction;

[0092] Generate a preset game screen based on the game scene within the field of view of the target scene.

[0093] The virtual camera is used to capture the game scene. The target scene field of view refers to the horizontal field of view that can maximize the horizontal field of view.

[0094] Since different display devices may have different display screen ratios, for the horizontal and vertical field of view angles, when one direction is locked, the other direction cannot be taken into account. In FPS games, map scenes are mostly horizontal terrains, and enemies often appear in the horizontal direction. Moreover, most FPS mobile games are played in the horizontal direction, and players are more accustomed to operating in the left and right directions. Therefore, in terms of field of view fairness, the importance of the horizontal direction is far greater than the vertical direction. Therefore, under the premise that the display of the game screen is locked in one direction and the other direction cannot be taken into account, limiting the horizontal field of view can better ensure the fairness of the game.

[0095] Furthermore, by acquiring a game scene within the field of view angle of the target scene and generating a preset game screen according to the acquired game scene content, the consistency of the field of view in the horizontal direction can be ensured, thereby ensuring fair play between different game players.

[0096] 102. Determine the target weapon field of view angle of the target virtual prop in the current game screen.

[0097] Among them, the target weapon field of view refers to the field of view set separately for the target virtual props. After limiting the horizontal field of view of the game scene, the vertical field of view will be different for display devices of different display sizes, that is, the smaller the width in the display size, the narrower the field of view, and the vertical game screen needs to be cropped. Moreover, the position of the target virtual props in the game screen is located at the bottom of the screen, so when the game screen is cropped, the target virtual props will be cropped. As a result, the display of the target virtual props is incomplete, affecting the operation of the game players.

[0098] In an embodiment of the present application, the field of view of the game scene and the field of view of the target virtual prop are divided, and the field of view is set separately for the target virtual prop, so that the display integrity of the target virtual prop can be guaranteed.

[0099] In some embodiments, in order to ensure the display effect of the target virtual prop, the step of "determining the target weapon field of view angle of the target virtual prop in the current game screen" may include the following operations:

[0100] Get the weapon type of the target virtual item;

[0101] A target weapon field of view angle is determined from a plurality of preset weapon field of views based on the weapon type.

[0102] Specifically, virtual props of different weapon types may have different appearances, shapes, and sizes, so different virtual props may have different performances under the same weapon field of view. Therefore, for virtual props of different weapon types, different weapon field of view angles can be set, that is, preset weapon field of view angles, to set the optimal display field of view angle for virtual props of each weapon type.

[0103] For example, the weapon type may include: a first weapon type, a second weapon type, a third weapon type, and a fourth weapon type, etc. Among them, the first weapon type corresponds to a first preset weapon field of view, the second weapon type corresponds to a second preset weapon field of view, the third weapon type corresponds to a third preset weapon field of view, and the fourth weapon type corresponds to a fourth preset weapon field of view. If the weapon type of the target virtual prop obtained can be the first weapon type, it can be further determined that the target weapon field of view of the target virtual prop can be: the first preset weapon field of view.

[0104] 103. Adjust the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position.

[0105] The display screen refers to the display screen of the current terminal, and the target display size refers to the display size of the display screen, for example, the target display size may be 2100x900. After determining the target weapon field of view and the target display size, the initial position may be adjusted to obtain the adjusted position.

[0106] In some embodiments, in order to improve the efficiency of position adjustment, the step of "adjusting the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain the adjusted position" may include the following operations:

[0107] Get the preset display ratio of the preset game screen and the preset scene viewing angle;

[0108] The initial position is processed according to the preset display ratio and the target display size to obtain the current position of the target virtual prop in the current game screen;

[0109] Determine the position change coefficient according to the preset scene field angle and the target weapon field angle;

[0110] Based on the current position and the position change coefficient, the adjusted position of the target virtual prop in the current game screen is determined.

[0111] Among them, the preset game screen refers to the game screen displayed by the default terminal display screen during the game design process, and the preset display ratio refers to the display ratio of the default terminal display screen. For example, the preset display ratio can be 16 / 9 (that is, screen width / height). The preset scene field of view refers to the scene field of view angle of the preset game screen obtained by collecting the game scene. For example, the preset scene field of view angle can be: 90 degrees, etc.

[0112] In some embodiments, in order to improve the accuracy of position calculation, the step of "processing the initial position according to the preset display ratio and the target display size to obtain the current position of the target virtual prop in the current game screen" may include the following operations:

[0113] Calculate the target display ratio of the display screen according to the target display size;

[0114] Calculate the ratio of the target display ratio to the preset display ratio to obtain a display ratio matching coefficient;

[0115] Calculate the multiplication of the initial position and the display scale matching coefficient to obtain the current position.

[0116] Specifically, the target display ratio refers to the ratio of width to height in the target display size.

[0117] For example, the target display size may be 2100x900, and the target display ratio is calculated as: 2000 / 900=20 / 9.

[0118] Furthermore, a ratio of the target display ratio to the preset display ratio is calculated, and the ratio can be used as a display ratio matching coefficient.

[0119] For example, the target display ratio may be: 20 / 9, the preset display ratio may be: 16 / 9, and the ratio of the target display ratio to the preset display ratio is calculated as: (20 / 9) / (16 / 9)=1.25.

[0120] Calculating the multiplication value of the initial position and the display ratio matching coefficient refers to multiplying the coordinates of the initial position by the display ratio matching coefficient, that is, multiplying each coordinate value in the coordinates of the initial position by the display ratio matching coefficient to obtain new coordinates, thereby obtaining the current position. The current position refers to the position of the target virtual prop after adjustment in the preset game screen, that is, the final position when the current game screen is displayed.

[0121] For example, the initial position may be (1000, 500), and the display ratio matching coefficient may be: 1.25. Specifically, the product of the initial position and the display ratio matching coefficient may be calculated as: (1000x1.25, 500x1.25)=(1250, 625), that is, the coordinates of the current position may be: (1250, 625).

[0122] In some embodiments, in order to improve the accuracy of position calculation, the step of "determining the position change coefficient according to the preset scene field of view angle and the target weapon field of view angle" may include the following operations:

[0123] Determine the scene focal length of the preset game screen based on the preset scene field of view;

[0124] Determine the weapon focal length of the target virtual prop based on the target weapon field of view;

[0125] Calculate the ratio of the scene focal length to the weapon focal length to obtain the position change coefficient.

[0126] The scene focal length is calculated according to the preset scene field angle: first, the radian value of the preset scene field angle can be calculated, and the radian calculation formula can be: preset scene field angle x PI (pi) / 360. For example, the preset scene field angle can be 90 degrees, then the radian value = 90xPI / 360 = 0.5235.

[0127] Furthermore, after the radian value is calculated, the scene focal length is calculated according to the focal length calculation formula: focal length = tan (radian value), wherein tan represents the tangent value in the mathematical function.

[0128] For example, the radian value may be: 0.5235, then the scene focal length = tan(0.5235) = 1, and the calculated scene focal length is: 1.

[0129] Similarly, the weapon focal length is calculated according to the above focal length calculation method. For example, the field of view of the target weapon can be 60 degrees. First, the arc value is calculated as: 60x PI / 360=0.3490. Further, the weapon focal length is calculated as tan(0.3490)=1.7322.

[0130] Among them, the position change coefficient refers to the ratio of the scene focal length to the weapon focal length. For example, the scene focal length can be: 1, and the weapon focal length can be: 1.7322. Then the calculated position change coefficient = 1 / 1.7322 = 0.5773.

[0131] In some embodiments, in order to improve the accuracy of position calculation, the step of "determining the adjusted position of the target virtual prop in the current game screen based on the current position and the position change coefficient" may include the following operations:

[0132] Calculate the multiplication of the current position and the position change coefficient to obtain the adjusted position.

[0133] For example, the current position can be (1250, 625), the position change coefficient can be: 0.5773, the current position and the position change coefficient multiplied by (1250x0.5773, 625x0.5773) = (721.625, 360.8125), the calculated position coordinate value may have decimal values, in order to reduce the amount of calculation, the decimal values ​​can be removed, then (721.625, 360.8125) can be processed as (722, 361), then the adjusted position can be: (722, 361). Or in order to ensure the accuracy of the displayed position, the decimal values ​​can also be not processed, depending on the actual situation.

[0134] 104. Determine a target scene position of the target virtual prop in the game scene according to the adjusted position.

[0135] The target scene position refers to the position of the target virtual prop in the game scene after the target virtual prop is adjusted according to the field of view of the target weapon.

[0136] In some embodiments, in order to improve the display effect of the virtual props, the step of "determining the target scene position of the target virtual props in the game scene according to the adjusted position" may include the following operations:

[0137] Get the initial scene position of the target virtual prop in the game scene;

[0138] The initial scene position is processed according to the adjusted position to obtain the target scene position.

[0139] The initial scene position refers to the position of the target virtual prop in the game scene in the game screen generated with a preset display size. For example, the initial scene position may be: (a, b, c).

[0140] Furthermore, the initial scene position is processed according to the adjusted position, that is, the adjusted position is converted to the position in the game scene, and the target scene position can be obtained.

[0141] In some embodiments, in order to ensure the accuracy of position adjustment, the step of "processing the initial scene position according to the adjusted position to obtain the target scene position" may include the following operations:

[0142] Determining position offset information of the initial scene position based on the adjusted position;

[0143] The initial scene position is superimposed with the position offset information to obtain the target scene position.

[0144] The position offset information refers to the difference between the position obtained after converting the adjusted position into the game scene and the initial scene position of the target virtual prop in the game scene.

[0145] In some embodiments, in order to improve the efficiency of position calculation, the step of “determining the position offset information of the initial scene position based on the adjusted position” may include the following operations:

[0146] Obtain the first coordinate system to which the adjusted position belongs, and the second coordinate system to which the initial scene position belongs;

[0147] Based on the relationship between the first coordinate system and the second coordinate system, the adjusted position is projected into the second coordinate system to obtain a target position of the adjusted position in the second coordinate system;

[0148] Calculate the offset distance between the initial scene position and the target position to obtain the position offset information.

[0149] The first coordinate system refers to the coordinate system corresponding to the game screen, which can be a two-dimensional coordinate system, that is, a coordinate system composed of two coordinate axis directions. The second coordinate system refers to the coordinate system corresponding to the game scene, which can be a three-dimensional coordinate system, that is, a coordinate system composed of three coordinate axis directions.

[0150] Specifically, to project the adjusted position in the first coordinate system to the second coordinate system, you can use the official vector operation expression TransformPosition of the UE4 (UnrealEngine4) engine. The TransformPosition expression can transform the three-channel vector value from one reference coordinate system to another reference coordinate system, that is, the adjusted position in the first coordinate system can be transformed into the position in the second coordinate system to obtain the target position.

[0151] Among them, the initial scene position is the position in the game scene, and the target position is also the position in the game scene, which are in the same coordinate system. The offset distance between the two can be calculated based on the initial scene position coordinates and the target position coordinates.

[0152] For example, the initial scene position coordinates may be (50, 100, 120), and the target position coordinates may be (60, 150, 80). Then the offset distance between the initial scene position and the target position may be calculated as (60, 150, 80)-(50, 100, 120)=(10, 50, -40), that is, the position offset information obtained is (10, 50, -40).

[0153] Furthermore, after the position offset information is calculated, the initial scene position and the position offset information may be superimposed to obtain the target scene position.

[0154] For example, the position offset information is: (10, 50, -40), and the initial scene position may be: (50, 100, 120). Then, the initial scene position is superimposed with the position offset information, and the target scene position may be: (60, 150, 80).

[0155] 105. Update the current game screen based on the target scene position and the target virtual props.

[0156] In some embodiments, in order to improve the player's gaming experience, the step of "updating the game screen based on the target scene position and the target virtual props" may include the following operations:

[0157] Adjust the target virtual prop from the initial scene position in the game scene to the target scene position;

[0158] The target virtual prop after the adjusted position is updated and displayed on the current game screen.

[0159] The target scene position is the adjusted position of the target virtual prop in the game scene. By adjusting the initial scene position of the target virtual prop in the game scene to the target scene position, the target virtual prop can be adjusted when displayed on the game screen.

[0160] Furthermore, in order to improve the display effect of the target virtual props, the target virtual props with adjusted position can be displayed in the current game screen. Thus, the field of view of the scene screen and the target virtual props are set separately to improve the display effect of the virtual props while ensuring the horizontal field of view of the scene.

[0161] The embodiment of the present application discloses a method for processing game screens, which transforms the world space coordinates of virtual props in the game scene from the first-person perspective to the coordinates in the game screen displayed on the terminal screen; matches the coordinates in the game screen with the terminal screen ratio on the terminal screen; transforms (projects) the new game screen coordinates obtained after matching back to the world space coordinates; further, calculates the offset of the world space coordinates before and after matching; applies the offset value to the world space coordinates as a correction, which can achieve the adjustment of the position of the virtual props alone. In this way, all the pictures of the game scene are collected by a virtual camera, and then the position of the virtual props in the scene picture is adjusted according to the above-mentioned game picture processing method, avoiding the problem of increased performance consumption caused by capturing the game and virtual props separately through dual virtual cameras. At the same time, the virtual props and scene field of view are split for separate control to meet the purpose of ensuring the fairness and competitiveness of the field of view while taking into account the display effect and performance quality of the virtual props.

[0162] Based on the above introduction, the following example will be used to further illustrate the game screen processing method of the present application. Figure 3 , Figure 3 A flowchart of another method for processing a game screen provided in an embodiment of the present application is provided. Taking the method for processing a game screen of a first-person shooter game as an example, the specific process may be as follows:

[0163] 201. The server obtains an initial scene space position of a target virtual gun in a game scene of a first-person perspective shooting game.

[0164] In the embodiment of the present application, in order to ensure the game experience of the player, the target virtual gun in the game screen is fixedly displayed with the hand and a part of the arm of the current virtual character. Then the target virtual gun is bound to the display position of the hand and the arm, and when the position of the target virtual gun is adjusted later, the position of the hand and the arm will also be adjusted.

[0165] Wherein, the target virtual gun is composed of multiple vertices in the game scene, and the initial scene space position includes the spatial coordinates of each vertex in the scene space. Since the game scene can be a three-dimensional scene, that is, a coordinate system composed of three coordinate axes, the spatial coordinates can be three-dimensional space coordinates.

[0166] For example, the target virtual gun includes multiple vertices: a first vertex, a second vertex, a third vertex, a fourth vertex, etc., then the initial scene space position includes: the space coordinates of the first vertex, the space coordinates of the second vertex, the space coordinates of the third vertex, the space coordinates of the fourth vertex, etc.

[0167] 202. The server converts the scene space position into the game screen to obtain the initial game screen position of the target virtual gun in the game screen.

[0168] The game screen is displayed through the terminal display screen, and the game screen can be a two-dimensional screen, that is, a coordinate system composed of two coordinate axes.

[0169] Specifically, the scene space position is converted to the game screen, that is, the spatial coordinates of each vertex of the target virtual gun in the game scene are converted to the coordinates in the game screen, that is, the screen coordinates in the display screen. The vector operation expression TransformPosition (transformation position) of the UE4 engine can be used to convert the spatial coordinates of each vertex of the target virtual gun in the game scene to the coordinates in the game screen. The specific conversion method can be referred to the above embodiment, and will not be repeated here.

[0170] For example, see Figure 4 , Figure 4 A schematic diagram of an application scenario of the game screen processing method provided in the embodiment of the present application. Figure 4In the screen coordinate system, the horizontal direction of the display screen is the X-axis, and the vertical direction of the display screen is the Y-axis. The upper left vertex of the display screen is the origin of the coordinate system 0, the horizontal right is the positive direction of the X-axis, and the vertical downward is the positive direction of the Y-axis.

[0171] For example, in Figure 4 In the example, vertex S may be a vertex of the target virtual gun, and in the display screen, the coordinates of vertex S may be (x1, y1), indicating that the distance value on the X-axis is x1, and the distance value on the Y-axis is y1. In this way, the coordinates of each vertex of the target virtual gun in the screen coordinate system are obtained, and the initial game screen position of the target virtual gun is obtained.

[0172] 203. The server obtains the gun field of view angle and the screen ratio, and determines the target game screen position according to the gun field of view angle, the screen ratio and the game screen position.

[0173] The screen ratio includes a default screen ratio and a target screen ratio, wherein the default screen ratio is the ratio of the length to the width of the default display screen, and the target screen ratio is the ratio of the length to the width of the specified display screen.

[0174] Among them, the gun field of view angle is a field of view angle set separately for the target virtual gun, and can be set according to the type of the target virtual gun.

[0175] In the embodiment of the present application, the calculation formula of the target game screen position is as follows:

[0176] NewViewSpaceVertexPosition.xy=ViewSpaceVertexPosition.xy*(ViewSize.w*ViewSize.h)*base focal length / tan(WeaponFOV*PI / 360.0).

[0177] Furthermore, the above formula can be refined as follows:

[0178] NewViewSpaceVertexPosition.xy = ViewSpaceVertexPosition.xy * (ViewSize.w / ViewSize.h) / (baseViewSize.w / baseViewSize.h) * basefocallength / tan (WeaponFOV * PI / 360.0).

[0179] The parameters in the above formula are defined as follows:

[0180] ①NewViewSpaceVertexPosition.xy: The target game screen position of each vertex of the target virtual gun;

[0181] ②ViewSpaceVertexPosition.xy: The initial game screen position of each vertex of the target virtual gun;

[0182] ③ViewSize.w and ViewSize.h: specify the length and width of the display screen, or the length and width of the terminal;

[0183] ④ Base ViewSize.w and Base ViewSize.h: The length and width of the default terminal screen, that is, the default length and width of the virtual camera screen space, which can be understood as the length and width of the default terminal screen before conversion (the first step is to transform the target virtual gun from the world space position to the screen space, which is actually to transform it to the default terminal screen, and the second step is to match the target virtual gun on the default terminal screen with the length and width of the specified terminal screen);

[0184] ⑤Base focal length: can be calculated from the default world scene FOV using the focal length / field of view formula;

[0185] ⑥WeaponFOV: The FOV value of the set virtual gun.

[0186] For example, the base ViewSize.w and base ViewSize.h can be 1600 and 900 respectively, which means the length and width of the default terminal screen are 1600 and 900 respectively (the default screen ratio of 16:9 is more common). The default world scene FOV is 90 degrees, and the base focal length is 1. If the terminal screen length and width are specified, that is, ViewSize.w and ViewSize.h can be 2100 and 900 respectively, and the WeaponFOV can be configured to 60 degrees, then the process of adjusting the initial game screen position to the target game screen position is: match each vertex on the target virtual gun with a default screen ratio of 1600:900 to the specified terminal screen of 2100:900, and configure the target virtual gun FOV to 60 degrees (the 1600, 900, and 2100 here have no specific units, and are only used to demonstrate the 16:9 and 21:9 screens).

[0187] For details, please refer to Figure 5 , Figure 5 This is another application scenario diagram of the game screen processing method provided in the embodiment of the present application. Figure 5 In the figure, on a default screen with a size of (W: 1600, H: 900), a vertex Q on the target virtual gun is determined, and the screen space coordinates of the vertex Q may be: (1400, 700).

[0188] Furthermore, taking the vertex Q (1400, 700) as an example, the position transformation process of the vertex in the target virtual gun is demonstrated (the same applies to other vertices). Using the above calculation formula:

[0189] NewViewSpaceVertexPosition.xy = ViewSpaceVertexPosition.xy * (ViewSize.w / ViewSize.h) / (baseViewSize.w / baseViewSize.h) * basefocallength / tan (WeaponFOV * PI / 360.0)

[0190] First, calculate ViewSpaceVertexPosition.xy*(ViewSize.w / ViewSize.h) / (benchmark ViewSize.w / benchmark ViewSize.h). This step is to associate the vertex in the default terminal screen with the target terminal screen scaling ratio, that is, to transform the vertex screen coordinates from the default terminal screen to the target terminal screen.

[0191] The specific calculation process can be: through the target terminal screen size (ViewSize.w, ViewSize.h) = (2100, 900), the target terminal screen aspect ratio is calculated as:

[0192] ViewSize.w / ViewSize.h=2100 / 900≈2.3.

[0193] Then, by the default screen size (base ViewSize.w base ViewSize.h) = (1600, 900), the default screen aspect ratio is calculated as:

[0194] BaselineViewSize.w / BaselineViewSize.h=1600 / 900≈1.78.

[0195] Furthermore, (ViewSize.w / ViewSize.h) / (benchmark ViewSize.w / benchmark ViewSize.h) is calculated, which is the matching coefficient of the target terminal screen relative to the default terminal screen.

[0196] Then, the initial vertex coordinate position ViewSpaceVertexPosition.xy is multiplied by the matching coefficient: (ViewSize.w / ViewSize.h) / (benchmark ViewSize.w / benchmark ViewSize.h):

[0197] x = 1400 * 2.3 / 1.78 ≈ 1838.0;

[0198] y=700*2.3 / 1.78≈919.0.

[0199] Among them, WeaponFOVScaler = base focal length / tan (WeaponFOV * PI / 360.0), this step is to substitute the configured WeaponFOV (target virtual gun FOV) into the calculation formula to separate the virtual gun FOV from the world FOV and configure the virtual gun FOV, that is, to adjust the performance of the target virtual gun. The calculated result WeaponFOVScaler represents the scaling value of FOV to the vertex coordinates.

[0200] The specific calculation process can be as follows: Calculate the base focal length. For example, the world scene FOV is 90 degrees. First convert the world scene FOV angle to radians: 90.0*PI / 360.0=0.5235, and then use the focal length / field of view formula to get the focal length: tan(0.5235)=1.0. That is, when the world scene FOV is 90, the focal length is 1, so 1 is the base focal length.

[0201] Furthermore, the WeaponFOV can be configured to 60 degrees, then WeaponFOVScaler = 1 / tan(60.0*PI / 360.0) = 0.5773. The calculated result is the WeaponFOVScaler with the WeaponFOV set to 60. The value of WeaponFOVScaler can change according to the configured WeaponFOV value, representing the influence of the configured WeaponFOV on the vertex coordinates.

[0202] Then, calculate ViewSpaceVertexPosition.xy*(ViewSize.w / ViewSize.h) / (Base ViewSize.w / Base ViewSize.h)*Base focal length / tan(WeaponFOV*PI / 360.0). The specific calculation can be as follows:

[0203] NewViewSpaceVertexPosition.x=1,838.0*0.5773≈1061.1;

[0204] NewViewSpaceVertexPosition.y=919.0*0.5773≈530.5.

[0205] The final result NewViewSpaceVertexPosition.xy = (1061.1, 530.5), which is the transformed coordinates of vertex Q. The above is the position transformation process of vertex Q. For other vertices in the target virtual gun, the same method is used to obtain the transformed coordinates of all vertices of the target virtual gun and the target game screen position.

[0206] 204. The server converts the target game screen position into the game scene to obtain the converted scene space position.

[0207] Specifically, the target game screen position is converted to the game scene, that is, the position of the target virtual gun in the terminal screen coordinate system is converted to the position in the scene space coordinate system. The conversion method of the vector operation expression TransformPosition can be used. The conversion method can be referred to the above embodiment and will not be elaborated here.

[0208] 205. The server adjusts the initial scene space position based on the converted scene space position to obtain the target scene space position of the target virtual gun in the game scene.

[0209] After determining the scene space position after the conversion, the position offset value between the initial scene space position and the scene space position after the conversion is calculated, and the initial scene space position is adjusted based on the position offset value to achieve the position adjustment of the target virtual gun in the game scene. Then, the position of the target virtual gun in the game screen is updated based on the adjusted scene position, thereby improving the display effect of the target virtual gun.

[0210] For example, see Figure 6 , Figure 6 A schematic diagram of another application scenario of the game screen processing method provided in an embodiment of the present application. Figure 6 In the game screen above, the target virtual gun is not fully displayed. Through the above position adjustment method, the position of the target virtual gun in the game scene is updated so that the target virtual gun can be fully displayed in the game screen, thereby improving the player's operating feel and further improving the player's gaming experience.

[0211] The embodiment of the present application discloses a method for processing a game screen, which includes: a server obtains the initial scene space position of a target virtual gun in a game scene of a first-person perspective shooting game, converts the scene space position to the game screen, obtains the initial game screen position of the target virtual gun in the game screen, obtains the gun field of view angle and screen ratio, and determines the target game screen position according to the gun field of view angle, screen ratio and game screen position, converts the game screen position to the game scene, obtains the converted scene space position, adjusts the initial scene space position based on the converted scene space position, and obtains the target scene space position of the target virtual gun in the game scene. In this way, the user quickly sends a request to the target virtual character that picks up the largest number of target game props, which can simplify user operations and improve the user's gaming experience.

[0212] In order to better implement the game screen processing method provided in the embodiment of the present application, the embodiment of the present application also provides a game screen processing device based on the above-mentioned game screen processing method. The meanings of the terms are the same as those in the above-mentioned game screen processing method, and the specific implementation details can refer to the description in the method embodiment.

[0213] See also Figure 7 , Figure 7 A structural block diagram of a game screen processing device provided in an embodiment of the present application, the device comprising:

[0214] The first determining unit 301 is used to determine the initial position of the target virtual prop in the preset game screen;

[0215] The second determining unit 302 is used to determine the target weapon field of view angle of the target virtual prop in the current game screen;

[0216] An adjusting unit 303 is used to adjust the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position;

[0217] A third determining unit 304 is used to determine a target scene position of the target virtual prop in the game scene according to the adjusted position;

[0218] The updating unit 305 is used to update the current game screen based on the target scene position and the target virtual prop.

[0219] In some embodiments, the adjusting unit 303 may include:

[0220] A first acquisition subunit is used to acquire a preset display ratio and a preset scene viewing angle of the preset game screen;

[0221] A first processing subunit is used to process the initial position according to the preset display ratio and the target display size to obtain the current position of the target virtual prop in the current game screen;

[0222] A first determining subunit is used to determine a position change coefficient according to the preset scene field of view angle and the target weapon field of view angle;

[0223] The second determining subunit is used to determine the adjusted position of the target virtual prop in the current game screen based on the current position and the position change coefficient.

[0224] In some embodiments, the first processing subunit may be specifically configured to:

[0225] Calculating a target display ratio of the display screen according to the target display size;

[0226] Calculating the ratio of the target display ratio to the preset display ratio to obtain a display ratio matching coefficient;

[0227] The current position is obtained by calculating the multiplication value of the initial position and the display ratio matching coefficient.

[0228] In some embodiments, the first determining subunit may be specifically used for:

[0229] Determining the scene focal length of the preset game screen based on the preset scene field of view;

[0230] Determining the weapon focal length of the target virtual prop based on the target weapon field of view angle;

[0231] The ratio of the scene focal length to the weapon focal length is calculated to obtain the position variation coefficient.

[0232] In some embodiments, the second determining subunit may be specifically used for:

[0233] The multiplication value of the current position and the position change coefficient is calculated to obtain the adjusted position.

[0234] In some embodiments, the third determining unit 304 may include:

[0235] A second acquisition subunit is used to acquire an initial scene position of the target virtual prop in the game scene;

[0236] The second processing subunit is used to process the initial scene position according to the adjusted position to obtain the target scene position.

[0237] In some embodiments, the second processing subunit may be specifically configured to:

[0238] Determining position offset information of the initial scene position based on the adjusted position;

[0239] The initial scene position is superimposed on the position offset information to obtain the target scene position.

[0240] In some embodiments, the second processing subunit may be further configured to:

[0241] Acquire a first coordinate system to which the adjusted position belongs, and a second coordinate system to which the initial scene position belongs;

[0242] Based on the relationship between the first coordinate system and the second coordinate system, projecting the adjusted position to the second coordinate system to obtain a target position of the adjusted position in the second coordinate system;

[0243] Calculating the offset distance between the initial scene position and the target position to obtain the position offset information;

[0244] The initial scene position is superimposed on the position offset information to obtain the target scene position.

[0245] In some embodiments, the first determining unit 301 may include:

[0246] A third acquisition subunit is used to acquire an initial scene position of the target virtual prop in the game scene and a preset display size;

[0247] A calculation subunit is used to calculate the initial position based on the initial scene position and the preset display size.

[0248] In some embodiments, the second determining unit 302 may include:

[0249] A fourth acquisition subunit, used to acquire the weapon type of the target virtual item;

[0250] The third determination subunit is used to determine the target weapon field of view angle from a plurality of preset weapon field of view angles based on the weapon type.

[0251] In some embodiments, the updating unit includes:

[0252] An adjusting subunit, used for adjusting the target virtual prop from an initial scene position in the game scene to the target scene position;

[0253] The display subunit is used to update and display the target virtual props after the position is adjusted on the current game screen.

[0254] In some embodiments, the apparatus may further include:

[0255] An acquisition unit, used for acquiring a target scene field angle of a virtual camera in a horizontal direction, wherein the virtual camera is used for capturing the game scene;

[0256] A generating unit is used to generate the preset game screen based on the game scene within the field of view angle range of the target scene.

[0257] The embodiment of the present application discloses a game screen processing device, which determines the initial position of the target virtual prop in the preset game screen through the first determination unit 301; the second determination unit 302 is used to determine the target weapon field of view angle of the target virtual prop in the current game screen; the adjustment unit 303 adjusts the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain the adjusted position; the third determination unit 304 determines the target scene position of the target virtual prop in the game scene according to the adjusted position; the update unit 305 updates the current game screen based on the target scene position and the target virtual prop. In this way, the efficiency of processing the game screen in the game can be improved.

[0258] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal. Figure 8 As shown, Figure 8 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 500 includes a processor 501 having one or more processing cores, a memory 502 having one or more computer-readable storage media, and a computer program stored in the memory 502 and executable on the processor. The processor 501 is electrically connected to the memory 502. It will be understood by those skilled in the art that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0259] The processor 501 is the control center of the computer device 500. It uses various interfaces and lines to connect the various parts of the entire computer device 500, executes various functions of the computer device 500 and processes data by running or loading software programs and / or modules stored in the memory 502, and calling data stored in the memory 502, thereby monitoring the computer device 500 as a whole.

[0260] In the embodiment of the present application, the processor 501 in the computer device 500 will load instructions corresponding to the processes of one or more application programs into the memory 502 according to the following steps, and the processor 501 will run the application programs stored in the memory 502 to implement various functions:

[0261] Determine an initial position of a target virtual prop in a preset game screen; determine a target weapon field of view angle of the target virtual prop in the current game screen; adjust the initial position based on the target weapon field of view angle and a target display size of the display screen to obtain an adjusted position; determine a target scene position of the target virtual prop in the game scene according to the adjusted position; and update the current game screen based on the target scene position and the target virtual prop.

[0262] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0263] Optional, such as Figure 8 As shown, the computer device 500 further includes: a touch screen 503, a radio frequency circuit 504, an audio circuit 505, an input unit 506, and a power supply 507. The processor 501 is electrically connected to the touch screen 503, the radio frequency circuit 504, the audio circuit 505, the input unit 506, and the power supply 507, respectively. Those skilled in the art can understand that Figure 8 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0264] The touch display screen 503 can be used to display a graphical user interface and receive operation instructions generated by the user acting on the graphical user interface. The touch display screen 503 may include a display panel and a touch panel. Among them, the display panel may be used to display information input by the user or information provided to the user and various graphical user interfaces of computer equipment, and these graphical user interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the user's touch operation on or near it (such as the user using any suitable object or attachment such as a finger, a stylus, etc. on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 501, and can receive the command sent by the processor 501 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 501 to determine the type of touch event, and then the processor 501 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 503 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 503 can also be used as a part of the input unit 506 to realize the input function.

[0265] The radio frequency circuit 504 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.

[0266] The audio circuit 505 can be used to provide an audio interface between the user and the computer device through a speaker and a microphone. The audio circuit 505 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 505 and converted into audio data, and then the audio data is output to the processor 501 for processing, and then sent to another computer device through the radio frequency circuit 504, or the audio data is output to the memory 502 for further processing. The audio circuit 505 may also include an earphone jack to provide communication between an external headset and the computer device.

[0267] The input unit 506 may be used to receive input numbers, character information or user feature information (such as fingerprint, iris, facial information, etc.), and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0268] The power supply 507 is used to supply power to various components of the computer device 500. Optionally, the power supply 507 can be logically connected to the processor 501 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 507 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0269] although Figure 8 Not shown, the computer device 500 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0270] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0271] As can be seen from the above, the computer device provided in this embodiment determines the initial position of the target virtual prop in the preset game screen; determines the target weapon field of view angle of the target virtual prop in the current game screen; adjusts the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position; determines the target scene position of the target virtual prop in the game scene according to the adjusted position; and updates the current game screen based on the target scene position and the target virtual prop.

[0272] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0273] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute the steps in any of the game screen processing methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0274] Determine the initial position of the target virtual prop in the preset game screen;

[0275] Determine a target weapon field of view angle of the target virtual prop in the current game screen;

[0276] Adjusting the initial position based on the target weapon field of view angle and the target display size of the display screen to obtain an adjusted position;

[0277] Determining a target scene position of the target virtual prop in the game scene according to the adjusted position;

[0278] The current game screen is updated based on the target scene position and the target virtual prop.

[0279] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0280] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0281] Since the computer program stored in the storage medium can execute the steps in any game screen processing method provided in the embodiments of the present application, the beneficial effects that can be achieved by any game screen processing method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0282] The above is a detailed introduction to a game screen processing method, device, storage medium and computer equipment provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for technical personnel in this field, according to the ideas of the present application, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A method for processing a game screen, characterized in that: Applied to a terminal, a current game screen from a first-person perspective is displayed through a display screen of the terminal, wherein the current game screen includes at least a portion of a game scene and virtual props, and the method includes: Determine the initial position of the target virtual prop in the preset game screen; Determine a target weapon field of view angle of the target virtual prop in the current game screen; Obtaining a preset display ratio and a preset scene viewing angle of the preset game screen; Processing the initial position according to the preset display ratio and the target display size of the display screen to obtain the current position of the target virtual prop in the current game screen; Determine a position change coefficient according to the preset scene field of view angle and the target weapon field of view angle; Determining an adjusted position of the target virtual item in the current game screen based on the current position and the position change coefficient; Determining a target scene position of the target virtual prop in the game scene according to the adjusted position; The current game screen is updated based on the target scene position and the target virtual prop.

2. The method according to claim 1, characterized in that The processing of the initial position according to the preset display ratio and the target display size to obtain the current position of the target virtual prop in the current game screen includes: Calculating a target display ratio of the display screen according to the target display size; Calculating the ratio of the target display ratio to the preset display ratio to obtain a display ratio matching coefficient; The current position is obtained by calculating the multiplication value of the initial position and the display ratio matching coefficient.

3. The method according to claim 1, characterized in that The determining of the position change coefficient according to the preset scene field of view angle and the target weapon field of view angle comprises: Determining the scene focal length of the preset game screen based on the preset scene field of view; Determining the weapon focal length of the target virtual prop based on the target weapon field of view angle; The ratio of the scene focal length to the weapon focal length is calculated to obtain the position variation coefficient.

4. The method according to claim 1, characterized in that: The step of determining the adjusted position of the target virtual item on the current game screen based on the current position and the position change coefficient includes: The multiplication value of the current position and the position change coefficient is calculated to obtain the adjusted position.

5. The method according to claim 1, characterized in that The step of determining a target scene position of the target virtual prop in the game scene according to the adjusted position includes: Obtaining an initial scene position of the target virtual prop in the game scene; The initial scene position is processed according to the adjusted position to obtain the target scene position.

6. The method according to claim 5, characterized in that The processing of the initial scene position according to the adjusted position to obtain the target scene position includes: Determining position offset information of the initial scene position based on the adjusted position; The initial scene position is superimposed on the position offset information to obtain the target scene position.

7. The method according to claim 6, characterized in that The determining the position offset information of the initial scene position based on the adjusted position includes: Acquire a first coordinate system to which the adjusted position belongs, and a second coordinate system to which the initial scene position belongs; Based on the relationship between the first coordinate system and the second coordinate system, projecting the adjusted position to the second coordinate system to obtain a target position of the adjusted position in the second coordinate system; The offset distance between the initial scene position and the target position is calculated to obtain the position offset information.

8. The method according to claim 1, characterized in that Determining the initial position of the target virtual prop in the preset game screen includes: Obtaining an initial scene position of the target virtual prop in the game scene and a preset display size; The initial position is calculated based on the initial scene position and the preset display size.

9. The method according to claim 1, characterized in that: Determining the target weapon field of view angle of the target virtual prop in the current game screen includes: Obtaining the weapon type of the target virtual item; The target weapon field of view angle is determined from a plurality of preset weapon field of view angles based on the weapon type.

10. The method according to claim 1, characterized in that The updating of the game screen based on the target scene position and the target virtual props includes: Adjusting the target virtual prop from an initial scene position in the game scene to the target scene position; The target virtual prop after the position adjustment is updated and displayed on the current game screen.

11. The method according to any one of claims 1 to 10, characterized in that: Before determining the initial position of the target virtual prop in the preset game screen, the method further includes: Obtaining a target scene field of view angle of a virtual camera in a horizontal direction, wherein the virtual camera is used to capture the game scene; The preset game screen is generated based on the game scene within the field of view angle of the target scene.

12. A game screen processing device, characterized in that: The device comprises: A first determining unit, used to determine an initial position of a target virtual prop in a preset game screen; A second determining unit is used to determine a target weapon field of view angle of the target virtual prop in the current game screen; An adjustment unit is used to obtain a preset display ratio and a preset scene field of view of the preset game screen; process the initial position according to the preset display ratio and the target display size of the display screen to obtain the current position of the target virtual prop in the current game screen; determine a position change coefficient according to the preset scene field of view and the target weapon field of view; and determine the adjusted position of the target virtual prop in the current game screen based on the current position and the position change coefficient; A third determining unit, configured to determine a target scene position of the target virtual prop in the game scene according to the adjusted position; An updating unit is used to update the current game screen based on the target scene position and the target virtual prop.

13. A computer device comprising a memory, a processor and a computer program stored in the memory and running on the processor, wherein: When the processor executes the program, the game screen processing method according to any one of claims 1 to 11 is implemented.

14. A storage medium, characterized in that: The storage medium stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the game screen processing method described in any one of claims 1 to 11.