Game scene presentation method, device, equipment and medium in shooting game

By introducing cushioning target points in the shooting game, the position information of the virtual camera is smoothly determined, and the picture jitter caused by the position oscillation of the virtual camera is solved, improving the gaming experience.

CN114100123BActive Publication Date: 2025-02-07SHANGHAI MIHOYO TIANMING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010898595.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2025-02-07
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In existing shooting games, the camera position oscillates due to the virtual camera moving with the game characters, causing the game scene to shake and affect the player's experience.

Method used

By introducing a cushioned target point, the current position information of the target point is determined based on the current direction information and the previous position information controlled by the user, so as to smoothly determine the position information of the virtual camera and avoid oscillation of the camera position.

Benefits of technology

It realizes smooth and coherent presentation of the game scene when the game characters move, avoids screen shaking and improves the user experience of players in shooting games.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114100123B_ABST
    Figure CN114100123B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for presenting a game scene in a shooting game. The method comprises: receiving the current direction information input by the user to control the game character, and obtaining the previous position information of the set target point; determining the current position information of the target point according to the current direction information and the previous position information; and presenting the current game scene where the game character is located according to the current position information. By using this method, in the implementation of controlling the virtual camera to follow the movement of the game character and presenting the corresponding game scene after the movement, a damping target point is added, so that the position information of the virtual camera with relatively smooth changes when the game character moves can be determined by determining the operation of the current position information of the target point, so as to achieve smooth and coherent presentation of the game scene when the game character moves. It effectively avoids the problem of jitter of the game scene screen caused by the oscillation of the virtual camera position in the existing game scene presentation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of game technology, and in particular to a method, device, equipment and medium for presenting game scenes in shooting games. Background Art

[0002] With the rapid development of the information age, the configuration of terminal devices such as computers, tablets, and mobile phones has been improved, and the game industry has also been greatly improved. At present, major game manufacturers have developed different types of game applications, such as third-person shooting games.

[0003] For a third-person shooting game, a player can select a shooting game character, and the player controls the game character to shoot. Specifically, the game scene is rendered through a virtual camera, and the rendered game scene is presented from the perspective of the game character (i.e., the back of the game character), and the presented game scene is mainly related to the position of the virtual camera, and the position of the virtual camera changes as the game character moves.

[0004] In the prior art, the position of the virtual camera is often determined by the player's control of the position of the game character. Because the crosshairs need to be kept in the middle and the player can shoot at any time, the camera perspective and the game character are closely bound. However, this results in a small range of oscillation in the camera position determined by this method when the game character goes up and down the stairs, because the camera follows the perspective in synchronization with the situation of going up and down the stairs. As a result, the game scene rendered based on the determined camera position also has screen jitter. Summary of the invention

[0005] In view of this, the embodiments of the present application provide a method, device, equipment and medium for presenting a game scene in a shooting game, which effectively reduces the screen jitter when presenting the game scene.

[0006] In a first aspect, an embodiment of the present application provides a method for presenting a game scene in a shooting game, comprising:

[0007] Receive the current direction information input by the user to control the game character, and obtain the previous position information of the set target point;

[0008] Determine the current position information of the target point according to the current direction information and the previous position information;

[0009] The current game scene where the game character is located is presented according to the current position information.

[0010] Further, determining the current position information of the target point according to the current direction information and the previous position information includes:

[0011] Obtaining the previous role position information of the game role;

[0012] Determining the current character position information of the game character according to the current direction information and the previous character position information;

[0013] The current position information of the target point is determined according to the current character position information and the previous position information.

[0014] Further, determining the current role position information of the game role according to the current direction information and the previous role position information includes:

[0015] Regularizing the current direction information, and determining the regularized current direction information as the current character moving direction of the game character;

[0016] Determining a change distance value of the game character moving along the current character moving direction according to the movement attribute information set relative to the game character and the previous character coordinate position in the previous character position information;

[0017] The current character coordinate position of the game character is determined according to the change distance value, and the current character moving direction and the current character coordinate position are recorded as the current character position information of the game character.

[0018] Further, determining the current position information of the target point according to the current character position information and the previous position information includes:

[0019] Extracting the current character moving direction and the current character coordinate position from the current character position information, and determining the current character moving direction as the current point moving direction of the target point;

[0020] The current character coordinate position is used as the objective function value, and the objective function value and the previous target point coordinate position in the previous position information are substituted into a given linear interpolation function to obtain the current point coordinate position of the target point;

[0021] The moving direction of the current point and the coordinate position of the current point are determined as the current position information of the target point.

[0022] Furthermore, presenting the current game scene where the game character is located according to the current position information includes:

[0023] Determine the current camera position information of the virtual camera according to the current position information, and obtain the previous camera position information of the virtual camera;

[0024] Controlling the virtual camera to transform from a previous posture corresponding to the previous camera position information to a current posture corresponding to the current camera position information;

[0025] The current rendering data corresponding to the virtual camera being in the current posture is obtained, and the current game scene in which the game character is located is presented on the terminal screen through the current rendering data.

[0026] Further, determining the current camera position information of the virtual camera according to the current position information includes:

[0027] Determine the moving direction of the current point in the current position information as the current camera moving direction of the virtual camera, and obtain the coordinate position of the current point in the current position information;

[0028] Determine a target position that is a set distance away from the coordinate position of the current point along the opposite direction of the moving direction of the current point, and use the coordinates corresponding to the target position as the current camera coordinate position of the virtual camera;

[0029] The current camera movement direction and the current camera coordinate position are determined as the current camera position information of the virtual camera.

[0030] Furthermore, after presenting the current game scene where the game character is located according to the current position information, it also includes:

[0031] The current position information is used as the new previous position information of the target point, and the operation of receiving the current direction information input by the user relative to the game character is returned to continue until the shooting end condition is met.

[0032] Furthermore, the initial position information of the target point is: the initial moving direction and initial coordinate position of the game character.

[0033] In a second aspect, an embodiment of the present application provides a game scene presentation device in a shooting game, comprising:

[0034] The information receiving module is used to receive the current direction information input by the user controlling the game character and obtain the previous position information of the set target point;

[0035] An information determination module, used to determine the current position information of the target point according to the current direction information and the previous position information;

[0036] The scene presentation module is used to present the current game scene where the game character is located according to the current position information.

[0037] In a third aspect, an embodiment of the present application further provides a computer device, including:

[0038] memory and one or more processors;

[0039] The memory is used to store one or more programs;

[0040] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for presenting a game scene in a shooting game as described in the first aspect above.

[0041] In a fourth aspect, an embodiment of the present application further provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the method for presenting a game scene in a shooting game as described in the first aspect.

[0042] The game scene presentation method, device, equipment and medium provided above in the shooting game first receive the current direction information input by the user to control some characters, and obtain the previous position information of the set target point; then determine the current position information of the target point according to the current direction information and the previous position information; finally present the current game scene where the game character is located according to the current position information. In the above technical scheme of this embodiment, in the implementation of controlling the virtual camera to follow the movement of the game character and presenting the corresponding game scene after the movement, a shock-absorbing target point is added, so that the position information of the virtual camera when the game character moves can be determined by determining the operation of the current position information of the target point, and the determined position information has the characteristic of relatively smooth changes, thereby realizing the smooth and coherent presentation of the game scene when the game character moves. It effectively avoids the problem of jitter of the game scene screen caused by the oscillation of the virtual camera position in the existing game scene presentation, thereby improving the user experience of players in shooting games. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0044] Figure 1 A flowchart of a method for presenting a game scene in a shooting game provided in Embodiment 1 of the present application is provided;

[0045] Figure 2 A flowchart of a method for presenting a game scene in a shooting game provided in Embodiment 2 of the present application is provided;

[0046] Figure 2a A flowchart for implementing the determination of the position information of a game character in the game scene presentation method provided in the second embodiment of the present invention is provided;

[0047] Figure 2bA flowchart for implementing the determination of the position information of the target point in the game scene presentation method provided in the second embodiment of the present invention is provided;

[0048] Figure 2c A flowchart for implementing the determination of the position information of the virtual camera in the game scene presentation method provided in the second embodiment of the present invention is provided;

[0049] Figure 3 A structural block diagram of a game scene presentation device in a shooting game provided in Embodiment 3 of the present application is provided;

[0050] Figure 4 A schematic diagram of the structure of a computer device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical scheme and advantages of the present application clearer, the embodiments of the present application will be further described in detail below in conjunction with the accompanying drawings. It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0052] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.

[0053] In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances. In addition, in the description of the present application, unless otherwise specified, "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship.

[0054] Embodiment 1

[0055] Figure 1A flowchart of a method for presenting a game scene in a shooting game provided in the first embodiment of the present application is provided. The method is applicable to the case where a game scene is presented when a game character moves in a shooting game. The method can be executed by a computer device loaded with shooting game software. The method for presenting a game scene in a shooting game can be integrated as a plug-in in the installed shooting game software, and the method can be implemented by running the shooting game software. The computer device can be composed of two or more physical entities, or it can be composed of one physical entity. Generally speaking, the computer device can be a notebook, a desktop computer, a smart tablet, etc.

[0056] It should be noted that the present embodiment collects information and changes the game scenes in units of frames. The information obtained through operations such as acquisition, reception or determination in the current frame in the present embodiment is uniformly prefixed with "current" as the name, such as the current position information, which can be considered as the position information of a certain instance object in the current frame; similarly, the information obtained through operations such as acquisition, reception or determination in the previous frame is uniformly prefixed with "previous" as the name, such as the previous position information, which can be considered as the position information of a certain instance object in the current frame.

[0057] like Figure 1 As shown, the first embodiment provides a method for presenting a game scene in a shooting game, which specifically includes the following steps:

[0058] S101, receiving current direction information input by a user controlling a game character, and obtaining the previous position information of a set target point.

[0059] In this embodiment, the game character can be considered as a character pre-selected by the user (game player) after entering the shooting game, and the various actions of the game character in the game are controlled by the user through information input. Exemplarily, the user can control the actions of the game character through control information input by input devices such as keyboards, mice, and touch pads. Among them, the current direction information is a type of control information input by the user, which can be used to control the movement or rotation direction of the game character in the game scene. Through the above description, it can be considered that the current direction information is specifically the information received in the current frame for controlling the change of the posture of the game character.

[0060] In addition, in order to achieve smooth following of the virtual camera relative to the game character, this embodiment introduces a target point, which can be specifically understood as a shock-absorbing point for reducing the position vibration of the virtual camera. This embodiment can indirectly determine the position information of the virtual camera in each frame by determining the position information of the target point in each frame. The previous position information of the target point can be understood as the position information of the target point in the previous frame of the current frame, and the previous position information can be specifically determined by the method provided in this embodiment when the previous frame is used as the current frame.

[0061] For example, in a shooting game, the user can input control information for the game character by pressing one or two of the direction keys "↑", "↓", "←", and "→" on the keyboard, which represent forward, backward, left turn, and right turn. In this way, the current direction information corresponding to the current frame can be obtained. For example, by pressing only the "↑" key, the current direction information represented is that the game character moves straight forward without turning left or right; by pressing the "↑" and "→" keys at the same time, the current direction information represented can be moving in the combined direction of the forward and right directions.

[0062] In this embodiment, assuming that the method provided in this embodiment is initially executed, the previous position information of the target point obtained in this step can be defaulted to the initial position information of the pre-set device, wherein the initial position information of the target point can preferably be: the starting moving direction and starting coordinate position of the game character. That is, the starting coordinate position and the corresponding starting moving direction of the game character after the game mode of the shooting game starts, and the starting moving direction can be defaulted to the starting orientation of the game character.

[0063] S102: Determine the current position information of the target point according to the current direction information and the previous position information.

[0064] In this embodiment, the current direction information is the position control information corresponding to the game character in the current frame, and the previous position information of the target point is the position information determined when the target point follows the movement of the game character in the previous frame. In this embodiment, before executing this step, an association relationship between the current direction information of the game character and the previous position information of the target point and the current position information of the target point can be established in advance. This step determines the current position information of the target point through the known association relationship between the three.

[0065] The current position information may be specifically understood as the current moving direction and coordinate position that the target point should reach when the game character moves with the current direction information input by the user.

[0066] Exemplarily, the relationship between the current direction information of the game character and the previous position information of the target point and the current position information of the target point can be represented by a function formula, and the design purpose of the function formula is to achieve smooth changes in the position of the target point. Different function formulas can represent different relationships among the three. Among them, the function formula can be a linear interpolation function with known interpolation parameters. Under this function formula, information used as function value can be determined from the current direction information of the game character, and one of the independent variable values ​​of the function can be determined from the previous position information, thereby determining a key data information for determining the current position information, thereby achieving the determination of the current position information.

[0067] S103: Presenting the current game scene where the game character is located according to the current position information.

[0068] It should be noted that the game scenes in shooting games are mainly rendered and presented in real time through a virtual camera. Therefore, in order to realize the rendering and presentation of the current game scene where the game character is located, this step requires first determining the camera position information of the virtual camera.

[0069] In this embodiment, the current camera position information of the virtual camera can be determined based on the current position information of the target point through the relationship between the position information of the target point and the position information of the virtual camera; then the corresponding rendering data information is retrieved through the current position information of the virtual camera, so as to realize the rendering presentation of the current game scene where the game character is located through the called rendering data.

[0070] It can be understood that the virtual camera moves with the game character, that is, in the world coordinate system, the position of the virtual camera should be behind the game character, and the target point set is mainly to control the virtual camera to reduce the vibration during movement. Therefore, it can be considered that the position of the virtual camera also follows the target point. After determining the current position information of the target point, this step can directly use the moving direction of the target point as the moving direction of the virtual camera, and can determine a coordinate position with a fixed distance value from the target point in the opposite direction of the moving direction of the target point as the coordinate position of the virtual camera, so as to obtain the current camera position information of the virtual camera.

[0071] This step can subsequently control the virtual camera to perform posture transformation based on the current camera position information, and present the corresponding game scene through the matched rendering data after the posture transformation, thereby presenting the user with a visual effect of smooth changes in the game scene screen only by controlling the game character.

[0072] In a method for presenting a game scene in a shooting game provided by the first embodiment of the present invention, a target point for buffering is added in the realization of controlling a virtual camera to follow the movement of a game character and present the corresponding game scene after the movement, so that the position information of the virtual camera when the game character moves can be determined by determining the operation of the current position information of the target point, and the determined position information has the characteristic of relatively smooth changes, thereby realizing the smooth and coherent presentation of the game scene when the game character moves. The problem of jitter of the game scene screen caused by the oscillation of the virtual camera position in the existing game scene presentation is effectively avoided, thereby improving the user experience of players in shooting games.

[0073] As an optional embodiment of the first embodiment of the present invention, this optional embodiment is further optimized on the basis of the above embodiment to include: using the current position information as the new previous position information of the target point, returning to continue the operation of receiving the current direction information input by the user relative to the game character, until the shooting end condition is met.

[0074] It is understandable that the present embodiment has mentioned above that the game scene in the shooting game is presented mainly in frames, and the present embodiment mainly describes from the perspective of the current frame how to achieve smooth presentation of the game scene when the position of the virtual camera changes correspondingly due to the change in the position of the game character controlled by the user. Considering the continuity of shooting games in actual applications, the present embodiment needs to continuously achieve the presentation of the game scene in each frame of the shooting game.

[0075] Therefore, after presenting the current game scene where the game character is located according to the current position information, this optional embodiment can use the current position information corresponding to the target point in the current frame as the new previous position information, and use the next frame as the new current frame, so as to return to continue to execute the current direction information corresponding to the game character in the new current frame, so as to repeatedly perform the game scene presentation operation provided by this embodiment. The end condition for cyclically executing this presentation operation can be that the shooting end condition is currently satisfied, wherein the shooting end condition can be considered that the game player has ended the current shooting task, or that the game character's health is exhausted and no longer has the ability to shoot, etc.

[0076] Embodiment 2

[0077] Figure 2A flow chart of a method for presenting a game scene in a shooting game provided by a second embodiment of the present invention is given. This second embodiment is optimized based on the above embodiment. In this embodiment, determining the current position information of the target point based on the current direction information and the previous position information is further optimized as follows: obtaining the previous character position information of the game character; determining the current character position information of the game character based on the current direction information and the previous character position information; determining the current position information of the target point based on the current character position information and the previous position information.

[0078] At the same time, this embodiment further concretizes the presentation of the current game scene in which the game character is located according to the current position information as follows: according to the current position information, determine the current camera position information of the virtual camera, and obtain the previous camera position information of the virtual camera; control the virtual camera to transform from the previous posture corresponding to the previous camera position information to the current posture corresponding to the current camera position information; obtain the current rendering data corresponding to the virtual camera when it is in the current posture, and present the current game scene in which the game character is located on the terminal screen through the current rendering data.

[0079] like Figure 2 As shown, a method for presenting a game scene in a shooting game provided in Embodiment 2 of the present application specifically includes the following operations:

[0080] S201, receiving current direction information input by a user controlling a game character, and obtaining the previous position information of a set target point.

[0081] Exemplarily, the current direction information can be specifically expressed in the form of a direction vector, which can include vector values ​​in two directions, a direction parallel to the screen and a direction perpendicular to the screen. The previous position information of the target point can be considered as the position information of the target point before the game character moves with the current direction information, and the previous position information includes the point movement direction and the point coordinate position of the target point before the target point moves with the game character.

[0082] The following S202 to S204 give a description of the determination of the current position information of the target point.

[0083] S202: Obtain the previous role position information of the game role.

[0084] It can be known that the determination of the current position information of the target point is mainly related to the current character position information of the game character after the game character moves through the current direction information. Among them, the current direction information received in the above steps can actually be equivalent to the movement control information that the user should have when controlling the game character to move in the current frame. And this embodiment can control the game character to update the previous character position information in the previous frame to the current character position information that should be in the current frame through the current direction information.

[0085] Therefore, in order to determine the current point position information of the target point, it is necessary to first obtain the previous character position information of the game character, so as to determine the current character position information that the game character should have after moving according to the current direction information.

[0086] S203: Determine the current character position information of the game character according to the current direction information and the previous character position information.

[0087] After obtaining the previous character position information, this step can be used to realize the current character position information that the game character should have after moving according to the current direction information.

[0088] Exemplarily, the direction contained in the current direction information can be determined as the current moving direction of the game character. At the same time, the distance that the game character can move within one frame can be determined based on attribute information such as the moving speed or moving acceleration that is pre-set for the game character. Based on this distance value and the coordinate position of the game character in the previous frame, the current character coordinate position of the game character after the game character changes according to the current direction information can be determined. The current moving direction of the character and the current character coordinate position determined in this step can be regarded as the current character position information of the game character.

[0089] Furthermore, the following operations in this embodiment provide specific implementations of the current character position information.

[0090] Figure 2a A flowchart for implementing the determination of the position information of the game character in the game scene presentation method provided in the second embodiment of the present invention is given. Figure 2a As shown, in this embodiment, the current role position information of the game role can be determined according to the current direction information and the previous role position information as follows:

[0091] S2031. Regularize the current direction information, and determine the regularized current direction information as the current character moving direction of the game character.

[0092] In this embodiment, the current direction information received by the above S201 can be represented in the form of vector coordinates, or in the form of a matrix or a quaternion. This embodiment does not limit the specific form of the current direction information. In order to better quantify the current direction information, this embodiment is illustrated by taking vectorized representation as an example, that is, this step can regularize the current direction information received in the vectorized representation, such as standardizing the representation interval (-1,1) of a vector coordinate value, so that the vector coordinate representing the current direction information is represented by a value in the interval (-1,1).

[0093] In this step, the current direction information obtained after processing according to the set rules can be directly determined as the current character moving direction of the game character.

[0094] S2032. Determine a change distance value of the game character moving along the current character moving direction according to the movement attribute information set relative to the game character and the previous character coordinate position in the previous character position information.

[0095] In this embodiment, the movement attribute information may specifically refer to information such as a pre-set movement speed and movement acceleration relative to the game character. After obtaining the movement attribute information corresponding to the game character, combined with the previous character coordinate value in the previous character position information corresponding to the game character in the previous frame, the change distance value generated when the game character moves along the determined current character movement direction within the time length of the current frame can be determined.

[0096] S2033. Determine the current character coordinate position of the game character according to the changed distance value, and record the current character moving direction and the current character coordinate position as the current character position information of the game character.

[0097] In this embodiment, the change distance value can be considered as the distance value formed by the game character moving from the previous character coordinate position along the current character movement direction for a unit frame of time. Based on the known previous character position coordinates, the current character movement direction and the change distance value, the current character coordinate position that the game character should have in the current frame can be determined by coordinate calculation.

[0098] In this step, the determined current character moving direction and current character coordinate position can also be directly regarded as the current character position information of the game character in the current frame.

[0099] S204: Determine the current position information of the target point according to the current character position information and the previous position information.

[0100] In this embodiment, the current character position information is equivalent to the position information that the user should have after the game character controlled by the user changes in the current frame. Taking into account that the target point changes with the changes of the game character, a function can be preset that can represent the relationship between the current character coordinate position in the current character position information, the previous point coordinate position in the previous position information, and the current point coordinate position in the current position information.

[0101] This step can directly call a predetermined function to obtain the current position information of the target point based on the known current character position information and the previous position information. For example, this embodiment can preferably use a linear interpolation function as a function to characterize the relationship between the above three. In order to achieve the smoothness of the target point following the change of the game character's posture, this embodiment regards the current character coordinate position as the function value in the function, and regards the previous point coordinate position in the previous position information as an independent variable. Based on the given interpolation parameters, the current point coordinate position of the target point can be determined.

[0102] Furthermore, the following operations in this embodiment provide specific implementations of the current location information of the target point.

[0103] Figure 2b A flowchart for determining the location information of a target point in the game scene presentation method provided in the second embodiment of the present invention is given. Figure 2b As shown, in this embodiment, the current position information of the target point can be determined according to the current character position information and the previous position information as follows:

[0104] S2041. Extract the current character moving direction and the current character coordinate position from the current character position information, and determine the current character moving direction as the current point moving direction of the target point.

[0105] This step can extract the current character moving direction and the current character coordinate position contained in the current character position information. The target point is the follower of the game character, so the current character moving direction of the game character can be directly regarded as the current point moving direction of the target point.

[0106] S2042. Use the current character coordinate position as the objective function value, substitute the objective function value and the previous target point coordinate position in the previous position information into a given linear interpolation function, and obtain the current point coordinate position of the target point.

[0107] This step can directly call a pre-built linear interpolation function and implement the function calculation of the linear interpolation function to determine the current point coordinate position of the target point. The interpolation parameters in the linear interpolation function can be set by the game designer according to the different effects to be achieved. For example, the speed of the interpolation process can be controlled by adjusting the size of the interpolation parameters.

[0108] S2043: Determine the moving direction of the current point and the coordinate position of the current point as the current position information of the target point.

[0109] In this step, the moving direction of the current point and the coordinate position of the current point can be directly used as the current position information of the target point when it follows the changes of the game character in the current frame.

[0110] S205. Determine the current camera position information of the virtual camera according to the current position information, and obtain the previous camera position information of the virtual camera.

[0111] In this embodiment, the presentation of the game scene in the shooting game is related to the virtual camera following the game character. When the position of the game character changes, the position of the virtual camera changes accordingly. Through the current position information of the target point introduced in this embodiment, combined with the positional association between the target point and the virtual camera, the current camera position information of the virtual camera when following the movement of the game character in the current frame can be determined.

[0112] The previous camera position information can be specifically understood as the camera position information of the virtual camera after following the game character in the previous frame. In this embodiment, the camera position information determined in the previous frame can be directly obtained in the current frame. It should be noted that in this embodiment, the position association relationship between the target point and the virtual camera can be set so that the virtual camera follows the target point in the same direction at a fixed distance. Therefore, after determining the current position information, the current camera position information of the virtual camera can be determined by combining the fixed distance value pre-set for the two.

[0113] Furthermore, the following operations in this embodiment provide a specific implementation of the current camera position information of the virtual camera.

[0114] Figure 2c A flowchart for implementing the determination of the position information of the virtual camera in the game scene presentation method provided in the second embodiment of the present invention is given. Figure 2c As shown, in this embodiment, the current camera position information of the virtual camera can be determined according to the current position information as follows:

[0115] S2051. Determine the moving direction of the current point in the current position information as the current camera moving direction of the virtual camera, and obtain the coordinate position of the current point in the current position information.

[0116] It can be understood that the virtual camera can be regarded as following the target point, so the moving direction of the virtual camera can be considered to be the same as the moving direction of the target point. In this step, the moving direction of the current point in the current position information can be directly determined as the current camera moving direction of the virtual camera. At the same time, the coordinate position of the current point included in the current position information can also be extracted.

[0117] S2052. Determine a target position that is a set distance away from the coordinate position of the current point along a direction opposite to the moving direction of the current point, and use the coordinates corresponding to the target position as the current camera coordinate position of the virtual camera.

[0118] This step mainly realizes the determination of the current camera coordinate position of the virtual camera. Specifically, the actual coordinate position of the virtual camera should be behind the target point. Therefore, we can take the current point coordinate position as the reference point in the opposite direction of the current point's movement, and then determine a target position that is a set distance away from the reference point. Finally, the coordinates corresponding to the target position can be used as the current camera coordinate position of the virtual camera.

[0119] It can be understood that, considering that the virtual camera follows the target point and the distance between it and the target point is also short, the first set distance value often takes a smaller value, wherein the smaller value can be selected from a set distance range, and the set distance range can be set according to the height range that the game character may present under the virtual camera lens. Preferably, the set distance range can be set to [20cm, 100cm].

[0120] S2053: Determine the current camera movement direction and the current camera coordinate position as the current camera position information of the virtual camera.

[0121] In this step, the current camera movement direction and the current camera coordinate position can be directly used as the current camera position information that the virtual camera should have in order to follow the changes of the target point in the current frame.

[0122] S206: Control the virtual camera to transform from a previous posture corresponding to the previous camera position information to a current posture corresponding to the current camera position information.

[0123] In this embodiment, the game character will change in the current frame according to the current direction information input by the user, and the corresponding target point and virtual camera also need to change to the determined position. This step specifically provides the operation of moving and changing the virtual camera based on the position information in the current frame. Among them, the posture can be specifically understood as the state of combining information such as direction and coordinate position.

[0124] In this embodiment, it can be considered that the virtual camera can have the previous posture state in the previous frame through the previous camera position information (including the previous camera movement direction and the previous camera coordinate position). In the current frame, it is necessary to control the virtual camera to change from the previous posture to the current posture corresponding to the current camera position information (current camera movement direction and current camera coordinate position).

[0125] It can be known that, while the posture state of the virtual camera is controlled to change through this step, the posture of the game character and the target point are also changed through the corresponding position information.

[0126] S207, obtaining current rendering data corresponding to the virtual camera being in the current position, and presenting the current game scene where the game character is located on the terminal screen through the current rendering data.

[0127] In this embodiment, the game scene in the shooting game is rendered by a virtual camera. When the virtual camera is in the current position in the current frame, it is necessary to obtain the current rendering data corresponding to the current position of the virtual camera through this step, and finally the current game scene where the game character is located can be presented on the terminal screen through the current rendering data. Thus, a visual effect that the game scene changes smoothly with the changes of the game character is provided to the shooting game player user.

[0128] The second embodiment of the present application provides a method for presenting a game scene in a shooting game, which specifies the operation of determining the current position information of the target point, and also specifies the operation of presenting the current game scene in which the game character is located through the current position information. The above technical solution of the present application adds a target point for buffering in the implementation of controlling the virtual camera to follow the movement of the game character and presenting the corresponding game scene after the movement. Therefore, the position information of the virtual camera when the game character moves can be determined by determining the current position information of the target point. The determined position information has the characteristic of relatively smooth changes, thereby achieving a smooth and coherent presentation of the game scene when the game character moves. It effectively avoids the problem of jittering of the game scene screen caused by the oscillation of the virtual camera position in the existing game scene presentation, thereby improving the user experience of players in shooting games.

[0129] Embodiment 3

[0130] Figure 3 A structural block diagram of a game scene presentation device in a shooting game provided in the third embodiment of the present application is provided. The device is suitable for presenting a game scene when a game character moves in a shooting game, and can be executed by a computer device loaded with shooting game software. Figure 3 As shown, the device includes: an information receiving module 31, an information determining module 32 and a scene presenting module 33.

[0131] The information receiving module 31 is used to receive the current direction information input by the user controlling the game character, and obtain the previous position information of the set target point;

[0132] An information determination module 32, configured to determine the current position information of the target point according to the current direction information and the previous position information;

[0133] The scene presentation module 33 is used to present the current game scene where the game character is located according to the current position information.

[0134] The third embodiment of the present application provides a game scene presentation device in a shooting game, which is integrated into the shooting software as a plug-in. It can add a shock-absorbing target point in the implementation of controlling the virtual camera to follow the movement of the game character and present the corresponding game scene after the movement. Therefore, the position information of the virtual camera when the game character moves can be determined by determining the current position information of the target point. The determined position information has the characteristics of relatively smooth changes, thereby realizing the smooth and coherent presentation of the game scene when the game character moves. It effectively avoids the problem of game scene screen jitter caused by the vibration of the virtual camera position in the existing game scene presentation, thereby improving the user experience of players in shooting games.

[0135] Further, the information determination module 32 includes:

[0136] An information acquisition unit, used to acquire the previous role position information of the game role;

[0137] A character position determination unit, configured to determine current character position information of the game character according to the current direction information and the previous character position information;

[0138] The target point determination unit is used to determine the current position information of the target point according to the current character position information and the previous position information.

[0139] Furthermore, the character position determination unit can be specifically used to regularize the current direction information, and determine the regularized current direction information as the current character movement direction of the game character; determine the change distance value of the game character moving along the current character movement direction based on the movement attribute information set relative to the game character and the previous character coordinate position in the previous character position information; determine the current character coordinate position of the game character based on the change distance value, and record the current character movement direction and the current character coordinate position as the current character position information of the game character.

[0140] Furthermore, the target point determination unit can be specifically used to extract the current character movement direction and the current character coordinate position in the current character position information, and determine the current character movement direction as the current point movement direction of the target point; use the current character coordinate position as the objective function value, substitute the objective function value and the previous target point coordinate position in the previous position information into a given linear interpolation function to obtain the current point coordinate position of the target point; determine the current point movement direction and the current point coordinate position as the current position information of the target point.

[0141] Furthermore, the scene presentation module 33 may specifically include:

[0142] A camera position determination unit, configured to determine the current camera position information of the virtual camera according to the current position information, and obtain the previous camera position information of the virtual camera;

[0143] A mobile control unit, used for controlling the virtual camera to transform from a previous posture corresponding to the previous camera position information to a current posture corresponding to the current camera position information;

[0144] The scene presentation unit is used to obtain the current rendering data corresponding to the virtual camera when it is in the current posture, and present the current game scene where the game character is located on the terminal screen through the current rendering data.

[0145] Based on the above embodiment, the camera position determination unit can be specifically used to determine the current point moving direction in the current position information as the current camera moving direction of the virtual camera, and obtain the current point coordinate position in the current position information; along the opposite direction of the current point moving direction, determine the target position that is a set distance value away from the current point coordinate position, and use the coordinates corresponding to the target position as the current camera coordinate position of the virtual camera; determine the current camera moving direction and the current camera coordinate position as the current camera position information of the virtual camera.

[0146] Furthermore, the device also includes: a loop execution module, which can be used to use the current position information as the new previous position information of the target point, return to continue the operation of receiving the current direction information input by the user relative to the game character, until the shooting end condition is met.

[0147] On the basis of the above embodiment, the initial position information of the target point is: the starting moving direction and the starting coordinate position of the game character.

[0148] Embodiment 4

[0149] Figure 4 The structure diagram of a computer device provided in the fourth embodiment of the present invention. The computer device includes: a processor 40, a memory 41, a display screen 42, an input device 43 and an output device 44. The number of processors 40 in the computer device can be one or more. Figure 4 A processor 40 is taken as an example. The number of memories 41 in the computer device can be one or more. Figure 4 A memory 41 is taken as an example. The processor 40, memory 41, display screen 42, input device 43 and output device 44 of the computer device can be connected through a bus or other means. Figure 4 In the embodiment, the computer device may be a computer, a notebook or a smart tablet.

[0150] The memory 41, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the computer device described in any embodiment of the present invention (for example, the information receiving module 31, the information determining module 32 and the scene presenting module 33 in the game scene presenting device in the shooting game). The memory 41 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory 41 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 41 may further include a memory remotely arranged relative to the processor 40, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.

[0151] The display screen 42 may be a display screen 42 with a touch function, which may be a capacitive screen, an electromagnetic screen, or an infrared screen. Generally speaking, the display screen 42 is used to display data according to the instructions of the processor 40, and is also used to receive a touch operation acting on the display screen 42 and send a corresponding signal to the processor 40 or other devices.

[0152] The input device 43 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the display device. It can also be a camera for acquiring images and a sound pickup device for acquiring audio data. The output device 44 can include audio devices such as speakers. It should be noted that the specific composition of the input device 43 and the output device 44 can be set according to actual conditions.

[0153] The processor 40 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 41, that is, realizes the above-mentioned game scene presentation method in the shooting game.

[0154] The computer device provided above can be used to execute the game scene presentation method in the shooting game provided in any of the above embodiments, and has corresponding functions and beneficial effects.

[0155] Embodiment 5

[0156] Embodiment 5 of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for presenting a game scene in a shooting game when executed by a computer processor, including:

[0157] Receive the current direction information input by the user to control the game character, and obtain the previous position information of the set target point;

[0158] Determine the current position information of the target point according to the current direction information and the previous position information;

[0159] The current game scene where the game character is located is presented according to the current position information.

[0160] Of course, the storage medium containing computer executable instructions provided by an embodiment of the present invention is not limited to the operations of the game scene presentation method in the shooting game as described above, and can also execute related operations in the game scene presentation method in the shooting game provided by any embodiment of the present invention, and has corresponding functions and beneficial effects.

[0161] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a robot, a personal computer, a server, or a network device, etc.) to execute the game scene presentation method in the shooting game described in any embodiment of the present invention.

[0162] It is worth noting that in the game scene presentation device in the above-mentioned shooting game, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0163] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0164] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.

[0165] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for presenting a game scene in a shooting game, characterized in that: include: Receive current direction information input by the user to control the game character, and obtain the previous position information of the set target point; wherein the current direction information is information received in the current frame for controlling the change of the posture of the game character, and the target point is a shock absorbing point for reducing the vibration of the virtual camera position; Determine the current position information of the target point according to the current direction information and the previous position information; Presenting the current game scene where the game character is located according to the current position information; The determining the current position information of the target point according to the current direction information and the previous position information includes: Obtaining the previous role position information of the game role; Determining the current character position information of the game character according to the current direction information and the previous character position information; Determine the current position information of the target point according to the current character position information and the previous position information; The step of determining the current position information of the target point according to the current character position information and the previous position information includes: The current character moving direction and the current character coordinate position in the current character position information are extracted, and the current character moving direction is determined as the current point moving direction of the target point.

2. The method according to claim 1, characterized in that The step of determining the current role position information of the game role according to the current direction information and the previous role position information includes: Regularizing the current direction information, and determining the regularized current direction information as the current character moving direction of the game character; Determining a change distance value of the game character moving along the current character moving direction according to the movement attribute information set relative to the game character and the previous character coordinate position in the previous character position information; The current character coordinate position of the game character is determined according to the change distance value, and the current character moving direction and the current character coordinate position are recorded as the current character position information of the game character.

3. The method according to claim 1, characterized in that The step of determining the current position information of the target point according to the current character position information and the previous position information includes: Taking the current character coordinate position as the objective function value, substituting the objective function value and the previous target point coordinate position in the previous position information into a given linear interpolation function to obtain the current point coordinate position of the target point; The moving direction of the current point and the coordinate position of the current point are determined as the current position information of the target point.

4. The method according to claim 1, characterized in that: The current game scene where the game character is located is presented according to the current position information, including: Determine the current camera position information of the virtual camera according to the current position information, and obtain the previous camera position information of the virtual camera; Controlling the virtual camera to transform from a previous posture corresponding to the previous camera position information to a current posture corresponding to the current camera position information; The current rendering data corresponding to the virtual camera being in the current posture is obtained, and the current game scene in which the game character is located is presented on the terminal screen through the current rendering data.

5. The method according to claim 4, characterized in that The step of determining the current camera position information of the virtual camera according to the current position information includes: Determine the moving direction of the current point in the current position information as the current camera moving direction of the virtual camera, and obtain the coordinate position of the current point in the current position information; Determine a target position that is a set distance away from the coordinate position of the current point along the opposite direction of the moving direction of the current point, and use the coordinates corresponding to the target position as the current camera coordinate position of the virtual camera; The current camera movement direction and the current camera coordinate position are determined as the current camera position information of the virtual camera.

6. The method according to claim 1, characterized in that After presenting the current game scene where the game character is located according to the current position information, the method further includes: The current position information is used as the new previous position information of the target point, and the operation of receiving the current direction information input by the user relative to the game character is returned to continue until the shooting end condition is met.

7. The method according to any one of claims 1 to 6, characterized in that: The initial position information of the target point is: the starting moving direction and the starting coordinate position of the game character.

8. A game scene presentation device in a shooting game, characterized in that: include: An information receiving module, used to receive the current direction information input by the user to control the game character, and obtain the previous position information of the set target point; wherein the current direction information is the information received in the current frame for controlling the change of the posture of the game character, and the target point is a cushioning point for reducing the vibration of the virtual camera position; An information determination module, used to determine the current position information of the target point according to the current direction information and the previous position information; A scene presentation module, used for presenting the current game scene where the game character is located according to the current position information; The information determination module comprises: An information acquisition unit, used to acquire the previous role position information of the game role; A character position determination unit, configured to determine current character position information of the game character according to the current direction information and the previous character position information; A target point determination unit, configured to determine the current position information of the target point according to the current character position information and the previous position information; The target point determination unit is specifically used to extract the current character moving direction and the current character coordinate position from the current character position information, and determine the current character moving direction as the current point moving direction of the target point.

9. A computer device, characterized in that: include: memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Game apparatus, storing medium that stores control program of virtual camera, and control method of virtual camera

    US20040224761A1