Game picture display method and apparatus, device, and computer-readable storage medium
In the game screen display method, the scene screen is processed using the magnification of the scope, and a reference scene screen is generated to achieve differentiated display inside and outside the scope, solving the problem of poor game screen display, improving the game experience and saving resources. .
Patent Information
- Application Number
- PCT/CN2024/072241
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-03-07
- Filing Date
- 2024-01-15
- Publication Date
- 2024-09-12
AI Technical Summary
It is difficult for the existing technology to effectively improve the display effect of the game screen, resulting in poor game experience, high performance requirements for the terminal device, and high resource consumption.
In the game screen display method, the magnification of the sight is used to process the scene screen and a reference scene screen is generated, so that the magnification of the inside and outside of the scope is different, achieving differentiated display and reducing the calculation of the scene screen. quantity and save resources.
It improves the display effect of the game screen, enhances the game experience, reduces the performance requirements of the terminal device, and saves resources.
Smart Images

Figure CN2024072241_12092024_PF_FP_ABST
Abstract
Description
Game screen display method, device, equipment and computer-readable storage medium
[0001] This application claims priority to Chinese patent application No. 202310248919.1 filed on March 7, 2023, entitled “Method, device, apparatus and computer-readable storage medium for displaying game screens,” the entire contents of which are incorporated herein by reference. Technical Field
[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a method, apparatus, device, and computer-readable storage medium for displaying a game screen. Background Art
[0003] With the continuous development of computer technology, the types of games running on terminal devices such as smart phones are also increasing. During the game running process, a method for displaying the game screen is needed to display the game screen on the terminal device.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a method, apparatus, device, and computer-readable storage medium for displaying a game screen. The technical solution includes the following aspects.
[0006] In a first aspect, an embodiment of the present application provides a method for displaying a game screen, the method being executed by a terminal device, the method comprising:
[0007] Displaying a first game screen, the first game screen including a first scene screen, a sight, and a conversion control, the sight being in a closed state, and the conversion control being used to convert the state of the sight;
[0008] In response to a trigger operation on the conversion control, processing the first scene image according to the magnification of the sight to obtain a reference scene image;
[0009] A second game screen is displayed, wherein the second game screen includes the scope, the scope is in an open state, the in-scope screen of the scope includes the reference scene screen, the out-of-scope screen of the scope is obtained based on the first scene screen, and the size of the objects included in the out-of-scope screen of the scope is smaller than the size of the objects included in the reference scene screen.
[0010] In a second aspect, an embodiment of the present application provides a method for displaying a game screen, the method being executed by a terminal device, the method comprising:
[0011] Displaying a first game screen, the first game screen including a first scene screen, a sight, and a conversion control, the sight being in a closed state, and the conversion control being used to convert the state of the sight;
[0012] In response to a trigger operation on the conversion control, a second game screen is displayed, wherein the second game screen includes the scope, the scope is in an open state, the in-scope screen of the scope includes a reference scene screen, the magnification of the objects included in the out-of-scope screen of the scope is smaller than the magnification of the objects included in the reference scene screen, and the magnification of the objects included in the reference scene screen is greater than the magnification of the objects included in the first scene screen.
[0013] In a third aspect, an embodiment of the present application provides a device for displaying a game screen, the device comprising:
[0014] A display module is configured to display a first game screen, wherein the first game screen includes a first scene screen, a sight, and a conversion control, wherein the sight is in a closed state, and the conversion control is configured to convert the state of the sight;
[0015] a processing module, configured to, in response to a triggering operation on the conversion control, process the first scene image according to the magnification of the sight to obtain a reference scene image;
[0016] The display module is also used to display a second game screen, which includes the sight. The sight is in an open state, the in-scope screen of the sight includes the reference scene screen, the out-of-scope screen of the sight is obtained based on the first scene screen, and the size of the objects included in the out-of-scope screen of the sight is smaller than the size of the objects included in the reference scene screen.
[0017] In a fourth aspect, an embodiment of the present application provides a device for displaying a game screen, the device comprising:
[0018] A display module is configured to display a first game screen, wherein the first game screen includes a first scene screen, a sight, and a conversion control, wherein the sight is in a closed state, and the conversion control is configured to convert the state of the sight;
[0019] The display module is also used to display a second game screen in response to a trigger operation on the conversion control, wherein the second game screen includes the sight, the sight is in an open state, the in-scope screen of the sight includes a reference scene screen, the magnification of the objects included in the out-of-scope screen of the sight is smaller than the magnification of the objects included in the reference scene screen, and the magnification of the objects included in the reference scene screen is greater than the magnification of the objects included in the first scene screen.
[0020] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor to enable the electronic device to implement any of the above-mentioned methods for displaying a game screen.
[0021] In the sixth aspect, a non-temporary computer-readable storage medium is also provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable the computer to implement any of the above-mentioned game screen display methods.
[0022] In the seventh aspect, a computer program or computer program product is also provided, wherein the computer program or computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor to enable the computer to implement any of the above-mentioned game screen display methods.
[0023] The technical solution provided by the embodiment of the present application, after receiving a trigger operation for a conversion control, amplifies the first scene screen to obtain a reference scene screen, so that the size of the objects included in the reference screen is larger than the size of the objects included in the first scene screen, and displays the second game screen. In the second game screen, the internal screen of the scope is the reference scene screen, and the external screen of the scope is determined based on the first scene screen. The size of the objects included in the internal screen of the scope is larger than the size of the objects included in the external screen of the scope, thereby making the magnification of the internal screen and the external screen of the scope different, realizing the differentiation of the internal and external screens of the scope, thereby improving the display effect of the game screen, thereby improving the gaming experience of the game object. Moreover, the computational complexity of the scene screen is small, and the performance requirements of the terminal device displaying the game screen are low, thereby saving resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] FIG1 is a schematic diagram of an implementation environment of a method for displaying a game screen provided by an embodiment of the present application;
[0025] FIG2 is a flowchart of a method for displaying a game screen according to an embodiment of the present application;
[0026] FIG3 is a schematic diagram showing a first game screen according to an embodiment of the present application;
[0027] FIG4 is a schematic diagram showing a display of a third scene image provided by an embodiment of the present application;
[0028] FIG5 is a schematic diagram of obtaining a third scene image provided by an embodiment of the present application;
[0029] FIG6 is a schematic diagram of obtaining a fourth scene image provided by an embodiment of the present application;
[0030] FIG7 is a schematic diagram of obtaining a reference scene image provided by an embodiment of the present application;
[0031] FIG8 is a schematic diagram of obtaining a reference scene image provided by an embodiment of the present application;
[0032] FIG9 is a schematic diagram showing a second game screen according to an embodiment of the present application;
[0033] FIG10 is a schematic diagram showing another display of a second game screen provided in an embodiment of the present application;
[0034] FIG11 is a flowchart of a method for displaying a game screen according to an embodiment of the present application;
[0035] FIG12 is a flowchart of a method for obtaining a reference scene image provided by an embodiment of the present application;
[0036] FIG13 is a schematic structural diagram of a device for displaying a game screen according to an embodiment of the present application;
[0037] FIG14 is a schematic structural diagram of a device for displaying a game screen according to an embodiment of the present application;
[0038] FIG15 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
[0039] FIG16 is a schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.
[0041] It should be noted that the terms "first," "second," and the like in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices and methods consistent with certain aspects of the present application as detailed in the appended claims.
[0042] FIG1 is a schematic diagram of an implementation environment of a method for displaying a game screen provided in an embodiment of the present application. As shown in FIG1 , the implementation environment includes: a terminal device 101 and a server 102 .
[0043] Among them, an application program capable of providing a game screen is installed and run in the terminal device 101, and the terminal device 101 is used to execute the method for displaying a game screen provided in an embodiment of the present application.
[0044] The embodiments of the present application do not limit the types of applications that can provide game screens. Exemplarily, the applications that can provide game screens refer to game applications. For example, third-person shooting (TPS) games, first-person shooting (FPS) games, multiplayer online tactical competitive (MOBA) games, multiplayer shooting survival games, massively multiplayer online role-playing games (MMO), etc. In an exemplary embodiment, the game application involved in the embodiments of the present application is a game application based on frame synchronization, that is, the game screen display method provided in the embodiments of the present application can be applied to game applications based on frame synchronization.
[0045] Of course, in addition to game applications, applications that can provide game images can also be other types of applications, such as virtual reality (VR) applications, augmented reality (AR) applications, three-dimensional map programs, map simulation programs, social applications, interactive entertainment applications, etc.
[0046] Server 102 provides background services for applications installed on terminal device 101 that enhance gaming graphics. In one possible implementation, server 102 performs primary computing tasks, while terminal device 101 performs secondary computing tasks. Alternatively, server 102 performs secondary computing tasks, while terminal device 101 performs primary computing tasks. Alternatively, terminal device 101 and server 102 utilize a distributed computing architecture for collaborative computing.
[0047] Optionally, the terminal device 101 is any electronic product that can interact with a user through one or more methods such as a keyboard, a touchpad, a touch screen, a remote control, voice interaction, or a handwriting device. For example, a PC (Personal Computer), a mobile phone, a smart phone, a PDA (Personal Digital Assistant), a wearable device, a PPC (Pocket PC), a tablet computer, a smart car computer, a smart TV, a smart speaker, etc.
[0048] The server 102 may be a single server, a server cluster consisting of multiple server units, or a cloud computing service center. The server 102 and the terminal device 101 may be directly or indirectly connected via wired or wireless communication.
[0049] Those skilled in the art should understand that the above-mentioned terminal device 101 and server 102 are merely examples, and other existing or future terminal devices or servers, if applicable to the present application, should also be included in the scope of protection of the present application and are incorporated herein by reference.
[0050] The present application provides a method for displaying a game screen, which can be applied to the above-mentioned implementation environment. For example, FIG2 shows a flowchart of a method for displaying a game screen provided by the present application. The method can be executed by the terminal device 101 in FIG1. As shown in FIG2, the method includes the following steps 201 to 203.
[0051] In step 201, a first game screen is displayed, where the first game screen includes a first scene screen, a sight, and a conversion control.
[0052] In an exemplary embodiment of the present application, a target game capable of providing game screens is installed and running in the terminal device. The target game can be any type of game, and the present embodiment of the application does not limit this. For example, the target game provided in the embodiment of the present application is a MOBA game.
[0053] In one possible implementation, the display interface of the terminal device displays relevant information of multiple applications, and the types of each application can be the same or different. The relevant information of the application can be an application icon or an application name, and the embodiments of the present application do not limit this. In response to the user selecting the relevant information of the target game from the multiple applications displayed, the terminal device receives a selection instruction for the relevant information of the target game, runs the target game, and then displays a page of the target game, on which a start game control is displayed, and the start game control is used to enter the target game.
[0054] When a user wishes to enter a target game, they select the start game control. Upon receiving the selection, the terminal device displays the first game screen, which includes a first scene, a scope, and a switch control. The scope is in a closed state, and the switch control is used to switch the scope's state, or in other words, to change the scope's state. Scope states include, but are not limited to, closed and open states, and the switch control is used to switch between closed and open states. For example, the switch control is used to switch the scope's state from closed to open, and also to switch the scope's state from open to closed. Exemplarily, the switch control can be a single control. Alternatively, the switch control can include a scope open control and a scope close control. The scope open control is used to switch the scope's state from closed to open, or in other words, the scope open control is used to turn the scope on. The scope close control is used to switch the scope's state from open to closed. Exemplarily, the first game screen can include the scope open control. The scope can be a standalone item or a virtual item, and this is not limited in this embodiment of the present application. Alternatively, the virtual item can be any item, and the virtual item can be used by a target object, which is an object controlled by a user. Optionally, the conversion control is displayed in a second form, and the second form is used to indicate that the scope included in the first game screen is in a closed state. For example, the conversion control displayed in the second form means that the conversion control is displayed in white.
[0055] FIG3 is a schematic diagram of a first game screen provided by an embodiment of the present application, wherein a first scene screen 301, a sight 302, and a conversion control 303 are displayed. The sight is a sight included on a virtual prop 304 and is in a closed state.
[0056] Optionally, the first game screen further includes a launch control 305, a jump control 306, a crouch control 307, a squat control 308, and a direction control 309. The launch control 305 is used to launch virtual resources using virtual props, the jump control 306 is used to instruct the target object to jump, the crouch control 307 is used to instruct the target object to crouch, the squat control 308 is used to instruct the target object to squat, and the direction control 309 is used to determine the target object's direction of travel. Of course, other content may also be displayed in the first game screen, and this embodiment of the application is not limited thereto.
[0057] In step 202, in response to a trigger operation on a conversion control, the first scene image is processed according to the magnification of the sight to obtain a reference scene image.
[0058] Exemplarily, the size of the objects included in the reference scene picture is larger than the size of the objects included in the first scene picture. In an exemplary embodiment, the embodiment of the present application can process the second scene picture corresponding to the sight in the first scene picture, and the second scene picture can be part of the first scene. Then, the size of the objects included in the second scene picture is the same as the size of the objects included in the first scene picture, so that the size of the objects included in the reference scene picture is also larger than the size of the objects included in the second scene picture. Since only the second scene picture corresponding to the sight in the first scene picture needs to be processed, the amount of calculation of the scene picture is small, the performance requirements of the terminal device displaying the game picture are low, and thus resources can be saved.
[0059] Exemplarily, the magnification of the reference scene picture relative to the first scene picture is determined based on the magnification of the sight. In some embodiments, the magnification of the sight is the magnification of the reference scene picture relative to the first scene picture, or in other words, the magnification of the sight is the same as the magnification of the reference scene picture relative to the first scene picture. In other embodiments, the magnification of the sight is corrected according to actual needs to obtain a corrected magnification, and the corrected magnification is the magnification of the reference scene picture relative to the first scene picture. For example, the magnification is corrected according to the screen size of the terminal device so that the reference scene picture has a better display effect on a terminal device with that screen size.
[0060] When the user wants to open the scope, the user selects the conversion control, and the terminal device receives a trigger operation for the conversion control. The embodiment of the present application does not limit the method in which the user selects the conversion control. Optionally, the user can select the conversion control by clicking the conversion control or by voice.
[0061] In one possible implementation, the second scene picture corresponding to the sight in the first scene picture is processed according to the magnification of the sight, and the process of obtaining the reference scene picture includes but is not limited to the following three methods.
[0062] The first method of obtaining a reference scene picture is to adjust the first scene picture to obtain a third scene picture; and according to the magnification of the sight, a fourth scene picture corresponding to the sight in the third scene picture is processed to obtain a reference scene picture.
[0063] The size of the objects included in the third scene picture is larger than the size of the objects included in the first scene picture, and the field of view of the third scene picture is smaller than the field of view of the first scene picture. The size of the objects included in the reference scene picture is larger than the size of the objects included in the fourth scene picture. The size of the reference scene picture is the same as the size of the sight. Exemplarily, the size of the reference scene picture is the same as the size of the sight, including: the size of the reference scene picture is the same as the size of the image within the sight after the sight is opened (or the sight is in the opened state).
[0064] The embodiment of the present application does not limit the method of adjusting the first scene image to obtain the third scene image. Optionally, the embodiment of the present application provides at least the following two implementation methods to adjust the first scene image to obtain the third scene image.
[0065] Implementation method 1: obtaining a first viewing angle and a magnification of a sight corresponding to the first scene image, and adjusting the first scene image according to the first viewing angle and the magnification of the sight to obtain a third scene image.
[0066] The first perspective corresponding to the first scene screen is the perspective set by the developer of the target game when developing the target game. Optionally, the first perspective corresponding to the first scene screen is stored in the storage space of the terminal device, and the terminal device obtains the first perspective corresponding to the first scene screen from its storage space. Alternatively, the server stores the correspondence between the game identifier and the game perspective, and the terminal device and the server are communicatively connected via a wired network or a wireless network. The terminal device sends a first acquisition request to the server, and the first acquisition request includes the game identifier of the target game. The server receives the first acquisition request, parses the first acquisition request, and obtains the game identifier of the target game; based on the game identifier of the target game and the correspondence between the game identifier and the game perspective, the server determines the perspective corresponding to the target game, and the perspective corresponding to the target game is the first perspective. The server sends the first perspective to the terminal device so that the terminal device obtains the first perspective.
[0067] When the scope is included on a virtual prop, the magnification of the scope corresponds to the virtual prop. Optionally, the terminal device stores a first correspondence between each prop identifier and each magnification. In the first correspondence, the prop identifier is the prop identifier of the virtual prop, and the magnification is the magnification of the scope included in the virtual prop. The terminal device queries the first correspondence based on the prop identifier of the virtual prop (e.g., the virtual prop used by the target user) to obtain the magnification of the scope included in the virtual prop. Alternatively, the server stores the first correspondence. The terminal device sends a second acquisition request to the server, the second acquisition request including the prop identifier of the virtual prop. The server receives the second acquisition request, parses the second acquisition request, obtains the prop identifier of the virtual prop, and queries the first correspondence based on the prop identifier of the virtual prop to obtain the magnification of the scope included in the virtual prop. The server sends the magnification of the scope to the terminal device, so that the terminal device obtains the magnification of the scope.
[0068] When the sight is an independent prop, the sight and the magnification of the sight are one-to-one corresponding, that is, there is a second correspondence between the identification of the sight and the magnification of the sight. The terminal device queries the second correspondence based on the identification of the sight (for example, the sight used by the target object) to obtain the magnification of the sight. Of course, the magnification of the sight can also be determined by the server and sent to the terminal device so that the terminal device obtains the magnification of the sight. This process is similar to the process of obtaining the magnification of the sight when the sight is attached to a virtual prop, that is, when the virtual prop includes a sight, and will not be repeated here.
[0069] In one possible implementation, adjusting the first scene image based on the first viewing angle and the magnification of the scope to obtain the third scene image includes: determining a second viewing angle based on the first viewing angle and the magnification of the scope; and adjusting the first scene image based on the second viewing angle to obtain the third scene image. Exemplarily, the second viewing angle is a viewing angle corresponding to a target magnification corresponding to the magnification of the scope.
[0070] The process of determining the second viewing angle based on the first viewing angle and the magnification of the scope includes: determining a target magnification corresponding to the magnification of the scope; and determining the second viewing angle based on the first viewing angle and the target magnification. The target magnification is the magnification of the third scene relative to the first scene.
[0071] Optionally, the terminal device stores a third correspondence between the magnification of the scope and the target magnification. The terminal device queries the third correspondence based on the magnification of the scope to obtain the target magnification corresponding to the magnification of the scope. Table 1 below is an exemplary table of the third correspondence provided in an embodiment of the present application. This table is merely an example, and the form of the third correspondence is not limited to a table.
[0072] Table 1
[0073] As can be seen from Table 1 above, when the magnification of the scope is 3x, the target magnification corresponding to the scope magnification is 2.7x. When the magnification of the scope is 4x, the target magnification corresponding to the scope magnification is 3.6x. When the magnification of the scope is other than 3x or 4x, the target magnification corresponding to the scope magnification is shown in Table 1 above and will not be repeated here.
[0074] Alternatively, a third correspondence is stored in the server. The terminal device sends a third acquisition request to the server, the third acquisition request including the magnification of the sight. The server receives the third acquisition request, parses the third acquisition request, and obtains the magnification of the sight. The server queries the third correspondence based on the magnification of the sight, and determines a target magnification corresponding to the magnification of the sight. The server sends the determined target magnification to the terminal device, so that the terminal device obtains the target magnification corresponding to the magnification of the sight.
[0075] Optionally, after determining the target magnification corresponding to the magnification of the scope, determining the second viewing angle based on the first viewing angle and the target magnification includes: determining a reference value based on the first viewing angle; determining a target value based on the reference value and the target magnification; and determining the second viewing angle based on the target value. Exemplarily, the tangent of one-half the first viewing angle is used as the reference value, the quotient between the target magnification and the reference value (e.g., the quotient obtained by dividing the reference value by the target magnification) is used as the target value, and twice the arctangent of the target value is used as the second viewing angle.
[0076] Optionally, the second viewing angle is determined according to the following formula (1) based on the first viewing angle and the target magnification.
[0077] In the above formula (1), FOV2 is the second viewing angle, FOV1 is the first viewing angle, and A is the target magnification.
[0078] For example, the first viewing angle is 75 degrees, the target magnification is 3.6, and the second viewing angle is determined to be 23.966 degrees according to the above formula (1).
[0079] In one possible implementation, after determining the second perspective, the content included in the first scene image is rendered according to the second perspective to obtain a third scene image. Figure 4 is a schematic diagram of a display of a third scene image provided by an embodiment of the present application. As can be seen from Figure 4 and Figure 3, the size of the objects included in Figure 4 is larger than the size of the objects included in Figure 3, and the field of view of Figure 4 is smaller than the field of view of Figure 3.
[0080] Implementation method 2: Determine a target magnification corresponding to the magnification of the scope; stretch the first scene image according to the target magnification to obtain a second target scene image; and capture the second target scene image to obtain a third scene image. The target magnification is the magnification of the third scene image relative to the first scene image.
[0081] Among them, the process of determining the target magnification corresponding to the magnification of the sight has been described in the above-mentioned implementation method one and will not be repeated here. The size of the second target scene picture is the target magnification times the size of the first scene picture. For example, if the target magnification is 3.6, the size of the second target scene picture is 3.6 times the size of the first scene picture. The third scene picture is obtained by intercepting with the center point of the second target scene picture as the center. The center point of the third scene picture is the center point of the second target scene picture. Exemplarily, the size of the third scene picture is the same as or different from the size of the first scene picture, and this embodiment of the present application does not limit this. However, the size of the object included in the third scene picture is larger than the size of the object included in the first scene picture. For example, the object included in the third scene picture is of the first size, the object included in the first scene picture is of the second size, and the first size is the target magnification times the second size.
[0082] In one possible implementation, the process of capturing the second target scene picture to obtain the third scene picture includes: determining a candidate area with the center point of the second target scene picture as the center, the length of the candidate area being the length of the first scene picture, the width of the candidate area being the width of the first scene picture, the center point of the candidate area being the center point of the second target scene picture, and the scene picture covered by the candidate area in the second target scene picture being the third scene picture.
[0083] FIG5 is a schematic diagram of obtaining a third scene image provided by an embodiment of the present application. In FIG5 , (1) is the first scene image, (2) is the second target scene image, the area enclosed by the dotted line in (2) is the candidate area, and (3) is the third scene image.
[0084] It should be noted that the third scene picture can be obtained by adopting the above-mentioned implementation method 1 or the above-mentioned implementation method 2, and this embodiment of the present application does not limit this.
[0085] Optionally, after acquiring the third scene image, the fourth scene image corresponding to the sight in the third scene image is processed according to the magnification of the sight to obtain a reference scene image. Before processing the fourth scene image, it is necessary to first acquire the fourth scene image. Exemplarily, in the case where the fourth scene image to be acquired is a circle, the process of acquiring the fourth scene image includes: determining a reference area with the center point of the third scene image as the center and the target length as the radius; and using the scene image covered by the reference area in the third scene image as the fourth scene image. The target length is the radius of the sight. Alternatively, in the case where the fourth scene image to be acquired is a shape other than a circle, the process of acquiring the fourth scene image includes: determining an area with a reference size with the center point of the third scene image as the center, and using the scene image covered by the area with the reference size in the third scene image as the fourth scene image. The reference size is the size of the image within the sight.
[0086] FIG6 is a schematic diagram of obtaining a fourth scene image provided by an embodiment of the present application. Taking the fourth scene image as a circle as an example, (1) in FIG6 is the third scene image, the area enclosed by the dotted line in (2) in FIG6 is the reference area, and (3) in FIG6 is the fourth scene image.
[0087] In one possible implementation, after acquiring the fourth scene image, the fourth scene image is processed according to the magnification of the sight to obtain a reference scene image. The embodiment of the present application provides two processing methods for processing the fourth scene image according to the magnification of the sight to obtain a reference scene image.
[0088] The first processing method is to determine the reference magnification according to the magnification of the sight; obtain the first image coordinates of the center point of the sight and the second image coordinates of each pixel point in the fourth scene picture; adjust the pixel information of each pixel point according to the reference magnification, the first image coordinates and the second image coordinates of each pixel point to obtain the reference scene picture.
[0089] The reference magnification is the magnification of the reference scene image relative to the fourth scene image. The process of determining the magnification of the sight has been described in the above implementation method 1 and will not be repeated here.
[0090] Optionally, the process of determining the reference magnification based on the magnification of the scope includes: determining a target magnification corresponding to the magnification of the scope; and determining the reference magnification based on the magnification of the scope and the target magnification. Exemplarily, the quotient between the magnification of the scope and the target magnification (e.g., the quotient obtained by dividing the magnification of the scope by the target magnification) is used as the reference magnification. The process of determining the target magnification has been described in step 202 above and will not be repeated here.
[0091] For example, the magnification of the scope is 4 times, and the target magnification corresponding to the magnification of the scope is 3.6 times, then the reference magnification is
[0092] In one possible implementation, the process of obtaining the first image coordinates of the center point of the sight includes: obtaining the coordinates of the center point of the sight in the world coordinate system; transforming the coordinates of the center point of the sight in the world coordinate system according to the transformation matrix to obtain the first image coordinates of the center point of the sight.
[0093] Optionally, the process of adjusting the pixel information of each pixel point based on the reference magnification, the first image coordinates, and the second image coordinates of each pixel point to obtain a reference scene image includes: determining the third image coordinates of each pixel point after offset based on the reference magnification, the first image coordinates, and the second image coordinates of each pixel point; for any pixel point among a plurality of pixels, based on the presence of a reference pixel point among the plurality of pixels that has the same third image coordinates as the offset pixel point, adjusting the pixel information of the reference pixel point to the pixel information of the any pixel point, traversing the plurality of pixels to obtain the reference scene image. The pixel information includes, but is not limited to, at least one of color information and transparency information of the pixel point, and the color information of the pixel point includes the red value, green value, and blue value of the pixel point.
[0094] The process of determining the third image coordinates of each pixel point after being offset based on the reference magnification, the first image coordinates, and the second image coordinates of each pixel point includes: for any pixel point among the multiple pixels, determining a target offset vector for any pixel point based on the reference magnification, the first image coordinates, and the second image coordinates of any pixel point, the target offset vector of any pixel point being used to indicate the offset between the second image coordinates of any pixel point and the image coordinates of any pixel point after being magnified according to the reference magnification, the target offset vector of any pixel point including a first offset value of any pixel point in a first direction and a second offset value in a second direction; and determining the third image coordinates of any pixel point after being offset based on the second image coordinates of any pixel point, the first offset value of any pixel point in the first direction, and the second offset value in the second direction.
[0095] Optionally, the process of determining the target offset vector of any pixel point based on the reference magnification, the first image coordinates and the second image coordinates of any pixel point includes: determining the reference offset vector of any pixel point based on the reference magnification, the first image coordinates and the second image coordinates of any pixel point; using the reference offset vector of any pixel point as the target offset vector of any pixel point, or determining the target offset vector of any pixel point based on the reference offset vector of any pixel point.
[0096] In a possible implementation, a reference offset vector of any pixel point is determined according to the following formula (2) based on the reference magnification, the first image coordinates, and the second image coordinates of any pixel point.
[0097] In the above formula (2), P is the reference offset vector of any pixel point, B is the reference magnification, U is the first image coordinate, and V is the second image coordinate of any pixel point.
[0098] For example, the reference magnification is The first image coordinates are (10, 10), the second image coordinates of any pixel are (6, 4), and the reference offset vector of any pixel is determined to be (0.4, 0.6) according to the above formula (2).
[0099] There are two ways to determine the target offset vector of any pixel point based on the reference offset vector of any pixel point.
[0100] Method 1: Determine the coding intermediate vector of any pixel point based on the reference offset vector of any pixel point; and determine the target offset vector of any pixel point based on the coding intermediate vector of any pixel point.
[0101] The coding intermediate vector is the vector obtained by normalizing the reference offset vector. Optionally, the coding intermediate vector of any pixel is determined according to the following formula (3) based on the reference offset vector of any pixel. Q = (P + float2 (1.0.1.0)) * 0.5 Formula (3)
[0102] In the above formula (3), Q is the encoding intermediate vector of any pixel point, P is the reference offset vector of any pixel point, and float is a floating-point function.
[0103] The encoded intermediate vector of any pixel point includes the third offset value of any pixel point in the first direction and the fourth offset value of any pixel point in the second direction. The process of determining the target offset vector of any pixel point based on the encoded intermediate vector of any pixel point includes: determining the target offset vector of any pixel point based on the third offset value and the fourth offset value.
[0104] Optionally, the process of determining the target offset vector of any pixel point based on the third offset value and the fourth offset value includes: encoding the third offset value to obtain a first binary value, encoding the fourth offset value to obtain a second binary value; obtaining a third binary value and a fourth binary value based on the first binary value, and obtaining a fifth binary value and a sixth binary value based on the second binary value; determining the target offset vector of any pixel point based on the third binary value, the fourth binary value, the fifth binary value and the sixth binary value.
[0105] The first binary value and the second binary value have the same number of bits. For example, the first binary value and the second binary value both have 16 bits. The third binary value and the fourth binary value may have the same or different number of bits, and the fifth binary value and the sixth binary value may have the same or different number of bits, which is not limited in the embodiments of the present application.
[0106] Optionally, the process of obtaining the third and fourth binary values based on the first binary value includes: splitting the first binary value to obtain the third and fourth binary values. For example, if the first binary value has 16 bits, the first eight bits of the first binary value are used as the third binary value, and the last eight bits of the first binary value are used as the fourth binary value.
[0107] For example, based on the first binary value, the third binary value is obtained according to the following formula (4), and the fourth binary value is obtained according to the following formula (5). L = frac(M) - frac(M*255.0f) / 255.0f Formula (4) K = frac(N*255.0f) Formula (5)
[0108] In the above formula (4), L is the third binary value, M is the first S digits of the first binary value, frac is a function, S is set based on experience or adjusted according to the implementation environment, and is not limited in the present embodiment, S is greater than zero and less than the number of digits included in the first binary value, and 255.0f refers to the maximum value that can be expressed in eight binary bits. In the above formula (5), K is the fourth binary value, and N is the number of digits in the first binary value other than the first S digits.
[0109] The process of obtaining the fifth binary value and the sixth binary value based on the second binary value includes: splitting the second binary value to obtain the fifth binary value and the sixth binary value. For example, if the second binary value has 16 bits, the first eight bits of the second binary value are used as the fifth binary value, and the last eight bits of the second binary value are used as the sixth binary value. Optionally, based on the second binary value, the fifth binary value is obtained according to the above formula (4), and the sixth binary value is obtained according to the above formula (5).
[0110] In one possible implementation, the process of determining the target offset vector of any pixel point based on the third binary value, the fourth binary value, the fifth binary value and the sixth binary value includes: decoding the third binary value to obtain a first value, encoding the fourth binary value to obtain a second value, decoding the fifth binary value to obtain a third value, and decoding the sixth binary value to obtain a fourth value; determining the target offset vector of any pixel point based on the first value, the second value, the third value and the fourth value.
[0111] For example, the decimal value corresponding to the third binary value is used as the first value. The decimal value corresponding to the fourth binary value is used as the second value. The decimal value corresponding to the fifth binary value is used as the third value. The decimal value corresponding to the sixth binary value is used as the fourth value.
[0112] In one possible implementation, the process of determining the target offset vector of any pixel point based on the first value, the second value, the third value and the fourth value includes: determining the first coordinate based on the first value and the second value, the value of the first coordinate in the first direction is the first value, and the value of the first coordinate in the second direction is the second value; determining the second coordinate based on the third value and the fourth value, the value of the second coordinate in the first direction is the third value, and the value of the second direction is the fourth value; determining the target offset vector of any pixel point based on the first coordinate and the second coordinate.
[0113] Exemplarily, the target offset vector of any pixel point is determined according to the first value, the second value, the third value, and the fourth value according to the following formula (6).
[0114] In the above formula (6), W is the target offset vector of any pixel point, M is the first coordinate, and N is the second coordinate.
[0115] Method 2: The reference offset vector of any pixel point includes the fifth offset value of any pixel point in the first direction and the sixth offset value of any pixel point in the second direction, and the target offset vector of any pixel point is determined according to the fifth offset value and the sixth offset value.
[0116] The process of determining the target offset vector of any pixel point based on the fifth offset value and the sixth offset value is similar to the process of determining the target offset vector of any pixel point based on the third offset value and the fourth offset value in the above method one, and will not be repeated here.
[0117] It should be noted that the target offset vector of any pixel point can be determined by the above-mentioned method 1 or the above-mentioned method 2, and the embodiment of the present application does not limit this.
[0118] It should also be noted that after obtaining the reference offset vector of the pixel point, the reference offset vector of the pixel point needs to be stored in the rendering target (Render Target, RT). Due to the limited storage capacity of the rendering target, the dual-channel reference offset vector needs to be adjusted to a four-channel value, and then the four-channel value is stored in the rendering target. After that, the four-channel value is obtained from the rendering target, and the four-channel value is processed to obtain the dual-channel target offset vector. The second image coordinate of the pixel point is adjusted according to the target offset vector to obtain the third image coordinate after the pixel point is offset.
[0119] The second processing method is to determine the reference magnification according to the magnification of the sight; stretch the fourth scene image according to the reference magnification to obtain the first target scene image; and intercept the first target scene image to obtain the reference scene image.
[0120] The reference magnification is the magnification of the reference scene image relative to the fourth scene image, and the size of the first target scene image is the reference magnification times the size of the fourth scene image. The center point of the reference scene image is the center point of the first target scene image, and the size of the reference scene image is the same as the size of the sight. Exemplarily, the size of the reference scene image is the same as the size of the sight, including: the size of the reference scene image is the same as the size of the in-scope image of the sight. The in-scope image of the sight is the image displayed after the sight is turned on (or in the sight that is in the turned on state).
[0121] The process of obtaining the magnification of the sight and the process of determining the reference magnification based on the magnification of the sight have been described in the first processing method mentioned above and will not be repeated here.
[0122] In one possible implementation, exemplarily, when the reference scene picture is a circle, the first target scene picture is intercepted, and the process of obtaining the reference scene picture includes: determining the target area with the center point of the first target scene picture as the center and the target length as the radius, and using the scene picture covered by the target area in the first target scene picture as the reference scene picture. The target length is the radius of the sight. Alternatively, when the reference scene picture is a shape other than a circle, the process of obtaining the reference scene picture includes: determining an area with a reference size with the center point of the first target scene picture as the center, and using the scene picture covered by the area with the reference size in the first target scene picture as the reference scene picture. The reference size is the size of the image within the sight.
[0123] FIG7 is a schematic diagram of obtaining a reference scene image provided by an embodiment of the present application. Taking the reference scene image as a circle as an example, (1) in FIG7 is the fourth scene image, (2) in FIG7 is the first target scene image, the area enclosed by the dotted line in (2) is the target area, and (3) in FIG7 is the reference scene image.
[0124] The first method of obtaining a reference scene image can obtain a reference scene image, and the difference between the size of the objects included in the reference scene image and the size of the objects included in the third scene image is small. When the reference scene image is subsequently displayed inside the scope, and the scene images in the third scene image other than the fourth scene image are displayed outside the scope, there is a difference between the size of the image inside the scope and the size of the image outside the scope, thereby achieving a difference between the inside and outside of the scope. The size of the objects included in the image outside the scope is larger than the size of the objects included in the first scene image, so that the difference between the image inside the scope and the image outside the scope is not large, and thus after the scope is turned on, the blind area of the game screen is small. The blind area refers to the area in the displayed game screen where the game object cannot be seen. It is precisely because the first scene image is enlarged to obtain the third scene image, and then the fourth scene image corresponding to the scope in the third scene image is enlarged to obtain the reference scene image, that a transition magnification is introduced in the process of obtaining the reference scene image (i.e., the magnification of the third scene image relative to the first scene image), so that the difference in clarity between the image inside the scope and the image outside the scope is small. Compared with the method of displaying the scene pictures of the first scene picture except the second scene picture outside the scope, the method of displaying the scene pictures of the third scene picture except the fourth scene picture outside the scope is clearer because the magnification difference between the picture inside the scope and the picture outside the scope is smaller.
[0125] Moreover, after processing the first scene picture to obtain the third scene picture, the first scene picture may no longer be processed, but the fourth scene picture corresponding to the sight in the third scene picture may be processed. The fourth scene picture is, for example, a part of the third scene picture, so that fewer scene pictures need to be processed. For example, there is no need to process the first scene picture twice or more, which saves the hardware and computing resources of the terminal device that displays the game screen and improves the display speed of the game screen.
[0126] For example, when the scope's in-scope image (reference scene image) is 20 times the size of the first scene image, and the scope's out-of-scope image (scene images excluding the second scene image in the first scene image) is 1 time the size of the first scene image, the large difference in magnification between the in-scope image and the out-of-scope image results in a large difference in clarity between the in-scope image and the out-of-scope image, which in turn causes the displayed in-scope image to be blurry. However, when the scope's in-scope image (reference scene image) is 20 times the size of the first scene image, and the scope's out-of-scope image (scene images excluding the fourth scene image in the third scene image) is 16 times the size of the first scene image, the small difference in magnification between the in-scope image and the out-of-scope image results in a small difference in clarity between the in-scope image and the out-of-scope image, which in turn causes the displayed in-scope image to be clearer.
[0127] The second method of obtaining the reference scene picture: according to the magnification of the sight, the first image coordinates of the center point of the sight and the fourth image coordinates of each pixel point in the second scene picture, the pixel information of each pixel point in the second scene picture is adjusted to obtain the reference scene picture. The second scene picture is the picture in the first scene picture corresponding to the sight.
[0128] The implementation process of the second method of obtaining the reference scene picture is similar to the implementation process of the first processing method mentioned above, and will not be repeated here.
[0129] The third method of obtaining the reference scene picture is to stretch the second scene picture according to the magnification of the sight to obtain the third target scene picture, and to capture the third target scene picture to obtain the reference scene picture. The second scene picture is the picture corresponding to the sight in the first scene picture.
[0130] Among them, the size of the third target scene picture is the magnification of the sighting scope times the size of the second scene picture, the center point of the reference scene picture is the center point of the third target scene picture, and the size of the reference scene picture is the same as the size of the sighting scope.
[0131] The implementation process of the third method of obtaining the reference scene picture is similar to the implementation process of the second processing method mentioned above, and will not be repeated here.
[0132] FIG8 is a schematic diagram of obtaining a reference scene picture provided by an embodiment of the present application. FIG8 (1) is a first scene picture, FIG8 (2) is a third target scene picture, and FIG8 (3) is a reference scene picture.
[0133] It should be noted that when obtaining the reference scene picture through the second method of obtaining the reference scene picture and the third method of obtaining the reference scene picture, it is necessary to obtain the second scene picture first. The process of obtaining the second scene picture is similar to the process of obtaining the fourth scene picture in the above process, and will not be repeated here.
[0134] There is a difference between the size of the objects included in the reference scene image obtained by the second method or the third method of obtaining the reference scene image and the size of the objects included in the first scene image. Therefore, when the reference scene image is subsequently displayed inside the scope and the scene images of the first scene image other than the second scene image are displayed outside the scope, the difference between the inside and outside of the scope is achieved. In addition, only the second scene image corresponding to the scope in the first scene image is processed (in other words, there is no need to process the entire first scene image), which saves hardware and computing resources of the terminal device displaying the game image and improves the display speed of the game image.
[0135] In step 203, the second game screen is displayed, which includes a sight, which is in an open state. The screen inside the sight is the reference scene screen, and the screen outside the sight is obtained based on the first scene screen.
[0136] Among them, the size of the object included in the image outside the scope of the sight is smaller than the size of the object included in the image of the reference scene, that is, the size of the object included in the image outside the scope of the sight is smaller than the size of the object included in the image inside the scope of the sight.
[0137] In one possible implementation, when the reference scene image is obtained using the second method or the third method for obtaining the reference scene image described above, the image outside the scope of the sight is the image in the first scene image excluding the second scene image. FIG9 is a schematic diagram of a display of a second game image provided by an embodiment of the present application. A sight 901 is displayed in the second game image, and the sight 901 is in an open state. The image inside the sight is the reference scene image 902, and the image outside the sight is the image in the first scene image excluding the second scene image.
[0138] Alternatively, when the reference scene picture is obtained by the first method of obtaining the reference scene picture in step 202 above, the picture outside the scope of the sight is the picture in the third scene picture excluding the fourth scene picture. The third scene picture is obtained by adjusting the first scene picture, and the acquisition process of the third scene picture has been described in step 202 above, and will not be repeated here. Figure 10 is a display schematic diagram of another second game picture provided by an embodiment of the present application. A sight 1001 is displayed in the second game picture, and the sight 1001 is in an open state. The picture inside the sight is the reference scene picture 1002, and the picture outside the sight is the picture in the third scene picture excluding the fourth scene picture.
[0139] Optionally, the second game screen further includes a conversion control, which is displayed in a first form, and the first form is used to indicate that the scope displayed in the second game screen is in an open state. For example, displaying the conversion control in the first form means that the conversion control is displayed in gray. Of course, the second game screen may also include other controls, and this embodiment of the application is not limited thereto.
[0140] After receiving a trigger operation for a conversion control, the above method amplifies the second scene picture corresponding to the sight in the first scene picture to obtain a reference scene picture, so that the size of the objects included in the reference picture is larger than the size of the objects included in the first scene picture, and displays the second game picture. In the second game picture, the inner picture of the sight is the reference scene picture, and the outer picture of the sight is determined based on the first scene picture. The size of the objects included in the inner picture of the sight is larger than the size of the objects included in the outer picture of the sight, thereby making the magnification of the inner picture and the outer picture of the sight different, realizing the differentiation of the inner and outer pictures of the sight, thereby improving the display effect of the game picture, and thus improving the gaming experience of the game object. Moreover, in some implementations, since only the second scene picture corresponding to the sight in the first scene picture needs to be processed, the amount of calculation of the scene picture is small, and the performance requirements of the terminal device displaying the game picture are low, thereby saving resources.
[0141] The present application provides a method for displaying a game screen, which can be applied to the above-mentioned implementation environment. For example, FIG11 shows a flowchart of a method for displaying a game screen provided by the present application. The method can be executed by the terminal device 101 in FIG1 . As shown in FIG11 , the method includes the following steps 1101 to 1102.
[0142] In step 1101, a first game screen is displayed, which includes a first scene screen, a sight and a conversion control. The sight is in a closed state, and the conversion control is used to convert the state of the sight.
[0143] In a possible implementation, the process of displaying the first game screen is similar to the process of step 201 above, and will not be described in detail here.
[0144] In step 1102, in response to a trigger operation on a conversion control, a second game screen is displayed, the second game screen includes a scope, the scope is in an open state, the in-scope screen of the scope includes a reference scene screen, the magnification of the objects included in the out-of-scope screen of the scope is smaller than the magnification of the objects included in the reference scene screen, and the magnification of the objects included in the reference scene screen is greater than the magnification of the objects included in the first scene screen.
[0145] In one possible implementation, the process of displaying the second game screen is similar to the process of step 203 above, and will not be described in detail here. The magnification of the object included in the out-of-scope image of the scope is obtained based on the size of the object included in the out-of-scope image of the scope and the size of the object included in the first scene image. For example, the magnification of the object included in the out-of-scope image of the scope is the quotient between the size of the object included in the out-of-scope image of the scope and the size of the object included in the first scene image. The magnification of the object included in the reference scene image is obtained based on the size of the object included in the reference scene image and the size of the object included in the first scene image. For example, the magnification of the object included in the reference scene image is the quotient between the size of the object included in the reference scene image and the size of the object included in the first scene image. Exemplarily, the magnification of the object included in the first scene image is 1. The size of the object included in the out-of-scope image of the scope is smaller than the size of the object included in the reference scene image, and the size of the object included in the reference scene image is larger than the size of the object included in the first scene image.
[0146] Optionally, the magnification of the object included in the image outside the scope of the scope in the second game screen is greater than the magnification of the object included in the first scene screen, or the magnification of the object included in the image outside the scope of the scope in the second game screen is equal to the magnification of the object included in the first scene screen. The size of the object included in the image outside the scope of the scope in the second game screen is greater than the size of the object included in the first scene screen, or the size of the object included in the image outside the scope of the scope in the second game screen is equal to the size of the object included in the first scene screen.
[0147] In one possible implementation, the second game screen further includes a directional control for adjusting the displayed game screen. After the second game screen is displayed, in response to a trigger operation on the directional control, a third game screen is displayed. The third game screen includes a scope, the scope is in an open state, the scope's in-scope screen includes a fifth scene screen, the magnification of the objects included in the scope's out-of-scope screen in the third game screen is less than the magnification of the objects included in the fifth scene screen, and the magnification of the objects included in the fifth scene screen is the same as the magnification of the objects included in the reference scene screen. The magnification of the objects included in the scope's out-of-scope screen included in the third game screen is the same as the magnification of the objects included in the scope's out-of-scope screen included in the second game screen.
[0148] Exemplarily, the fifth scene screen is the scene screen on the side of the direction indicated by the direction control of the reference scene screen, or in other words, the fifth scene screen is the scene screen in the direction indicated by the direction control. For example, if the direction indicated by the direction control included in the second game screen is the left side, then the scene in the scope of the third game screen (i.e., the fifth scene screen) is the scene screen on the left side of the reference scene screen.
[0149] Optionally, the second game screen also includes a conversion control, and the conversion control is displayed in a first form, or in other words, the second game screen also includes a conversion control in a first form, and the first form is used to indicate that the scope included in the second game screen is in an open state. After the second game screen is displayed, in response to a trigger operation on the conversion control, the first game screen is displayed, and the conversion control displayed in the first game screen is displayed in a second form, or in other words, the first game screen includes a conversion control in a second form, and the second form is used to indicate that the scope included in the first game screen is in a closed state. The embodiment of the present application does not limit the first form and the second form. For example, the conversion control displayed in the first form means that the conversion control is displayed in gray, and the conversion control displayed in the second form means that the conversion control is displayed in white.
[0150] After receiving the trigger operation for the conversion control, the above method displays the second game screen in which the magnification of the object included in the image inside the scope is greater than the magnification of the object included in the image outside the scope, thereby making the magnification of the image inside and outside the scope different, realizing the differentiation between the inside and outside of the scope, thereby improving the display effect of the game screen, and thus being able to improve the gaming experience of the game object.
[0151] FIG12 is a flow chart of a method for obtaining a reference scene image provided by an embodiment of the present application. As shown in FIG12 , the method includes:
[0152] Step 1201: Adjust the first scene image to obtain a third scene image.
[0153] In one possible implementation, the size of the object included in the third scene picture is larger than the size of the object included in the first scene picture, and the size of the third scene picture is a reference magnification times the size of the first scene picture, where the reference magnification is determined based on the magnification of the sight.
[0154] Step 1202: Determine a fourth scene picture corresponding to the sight in the third scene picture.
[0155] In a possible implementation, the fourth scene picture is a part of the third scene picture.
[0156] Step 1203: Determine a reference magnification according to the magnification of the scope.
[0157] Step 1204: Obtain the first image coordinates of the center point of the sight and the second image coordinates of each pixel point in the fourth scene image.
[0158] Step 1205 : Determine a target offset vector for each pixel point based on the reference magnification, the first image coordinates, and the second image coordinates of each pixel point.
[0159] Step 1206: Determine the third image coordinates of each pixel point after the offset according to the target offset vector of each pixel point and the second image coordinates of each pixel point.
[0160] Step 1207: Based on the existence of a reference pixel point in multiple pixels having the same coordinates as the third image after any pixel point is offset, the pixel information of the reference pixel point is adjusted to the pixel information of any pixel point, and multiple pixel points are traversed to obtain a reference scene picture.
[0161] The implementation of the above steps 1201 to 1207 has been described in the above step 202 and will not be repeated here.
[0162] FIG13 is a schematic diagram showing the structure of a device for displaying a game screen according to an embodiment of the present application. As shown in FIG13 , the device includes:
[0163] Display module 1301, used to display a first game screen, the first game screen including a first scene screen, a sight, and a conversion control, the sight is in an off state, and the conversion control is used to switch the state of the sight;
[0164] The processing module 1302 is configured to process the first scene image according to the magnification of the scope in response to a trigger operation on the conversion control to obtain a reference scene image;
[0165] Display module 1301 is also used to display a second game screen, which includes a sight. The sight is in an open state, the in-scope image of the sight includes a reference scene image, the out-of-scope image of the sight is obtained based on the first scene image, and the size of the objects included in the out-of-scope image of the sight is smaller than the size of the objects included in the reference scene image.
[0166] In one possible implementation, the processing module 1302 is used to adjust the first scene picture in response to a trigger operation on the conversion control to obtain a third scene picture, where the size of the object included in the third scene picture is larger than the size of the object included in the first scene picture; and process the fourth scene picture corresponding to the sight in the third scene picture according to the magnification of the sight to obtain a reference scene picture, where the size of the object included in the reference scene picture is larger than the size of the object included in the fourth scene picture, and the off-scope picture of the sight is the picture in the third scene picture excluding the fourth scene picture.
[0167] In one possible implementation, the processing module 1302 is used to determine a reference magnification based on the magnification of the sight, where the reference magnification is the magnification of the reference scene image relative to the fourth scene image; obtain the first image coordinates of the center point of the sight and the second image coordinates of each pixel point in the fourth scene image; and adjust the pixel information of each pixel point based on the reference magnification, the first image coordinates, and the second image coordinates of each pixel point to obtain the reference scene image.
[0168] In one possible implementation, the processing module 1302 is used to determine the third image coordinates of each pixel point after offset based on the reference magnification, the first image coordinates and the second image coordinates of each pixel point; for any pixel point among the multiple pixel points, based on the existence of a reference pixel point among the multiple pixel points that is the same as the third image coordinates after offset of any pixel point, the pixel information of the reference pixel point is adjusted to the pixel information of any pixel point, and the multiple pixel points are traversed to obtain a reference scene picture.
[0169] In one possible implementation, the processing module 1302 is used to determine, for any pixel point among a plurality of pixel points, a target offset vector of any pixel point based on a reference magnification, a first image coordinate, and a second image coordinate of any pixel point, where the target offset vector of any pixel point is used to indicate the offset between the second image coordinate of any pixel point and the image coordinate of any pixel point after being magnified according to the reference magnification, and the target offset vector of any pixel point includes a first offset value of any pixel point in a first direction and a second offset value in a second direction; and determine a third image coordinate of any pixel point after the offset based on the second image coordinate of any pixel point, the first offset value of any pixel point in the first direction, and the second offset value in the second direction.
[0170] In one possible implementation, the processing module 1302 is configured to determine a reference offset vector of any pixel point based on a reference magnification, the first image coordinates, and the second image coordinates of any pixel point; determine a target offset vector of any pixel point based on the reference offset vector of any pixel point in any of the following ways: use the reference offset vector of any pixel point as the target offset vector of any pixel point; or determine the target offset vector of any pixel point based on the reference offset vector of any pixel point.
[0171] In one possible implementation, the processing module 1302 is used to determine the coding intermediate vector of any pixel point based on the reference offset vector of any pixel point, and determine the target offset vector of any pixel point based on the coding intermediate vector of any pixel point, where the coding intermediate vector is the vector after the reference offset vector is normalized; or, determine the target offset vector of any pixel point based on the fifth offset value and the sixth offset value included in the reference offset vector of any pixel point, where the fifth offset value is the offset value of any pixel point in the first direction, and the sixth offset value is the offset value of any pixel point in the second direction.
[0172] In a possible implementation, the encoding intermediate vector of any pixel point includes a third offset value of the pixel point in the first direction and a fourth offset value in the second direction;
[0173] Processing module 1302 is used to encode the third offset value to obtain a first binary value, and encode the fourth offset value to obtain a second binary value, where the first binary value and the second binary value have the same number of bits; obtain a third binary value and a fourth binary value based on the first binary value, and obtain a fifth binary value and a sixth binary value based on the second binary value; and determine a target offset vector for any pixel point based on the third binary value, the fourth binary value, the fifth binary value, and the sixth binary value.
[0174] In one possible implementation, the processing module 1302 is used to decode the third binary value to obtain the first value, decode the fourth binary value to obtain the second value, decode the fifth binary value to obtain the third value, and decode the sixth binary value to obtain the fourth value; and determine the target offset vector of any pixel point based on the first value, the second value, the third value and the fourth value.
[0175] In one possible implementation, the processing module 1302 is used to determine a reference magnification based on the magnification of the sight, where the reference magnification is the magnification of the reference scene picture relative to the fourth scene picture; stretch the fourth scene picture according to the reference magnification to obtain a first target scene picture, where the size of the first target scene picture is the reference magnification times the size of the fourth scene picture; and capture the first target scene picture to obtain a reference scene picture, where the center point of the reference scene picture is the center point of the first target scene picture, and the size of the reference scene picture is the same as the size of the picture within the sight.
[0176] In one possible implementation, the processing module 1302 is used to determine the target area with the center point of the first target scene picture as the center and the target length as the radius, where the target length is the radius of the sight; and the scene picture covered by the target area in the first target scene picture is used as the reference scene picture.
[0177] In one possible implementation, the processing module 1302 is also used to determine a reference area with the center point of the third scene picture as the center and the target length as the radius, where the target length is the radius of the sight; and the scene picture covered by the reference area in the third scene picture is used as the fourth scene picture.
[0178] In one possible implementation, processing module 1302 is used to obtain a first viewing angle and a magnification of a scope corresponding to a first scene image; determine a second viewing angle based on the first viewing angle and the magnification of the scope, for example, the second viewing angle is a viewing angle corresponding to a target magnification corresponding to the magnification of the scope; and adjust the first scene image based on the second viewing angle to obtain a third scene image.
[0179] In one possible implementation, processing module 1302 is used to determine a target magnification corresponding to the magnification of the sight, where the target magnification is the magnification of the third scene image relative to the first scene image; determine a reference value based on the first perspective; determine a target value based on the reference value and the target magnification; and determine a second perspective based on the target value.
[0180] In one possible implementation, the processing module 1302 is used to determine a target magnification corresponding to the magnification of the sight, where the target magnification is the magnification of the third scene picture relative to the first scene picture; stretch the first scene picture according to the target magnification to obtain a second target scene picture, where the size of the second target scene picture is the target magnification times the size of the first scene picture; and capture the second target scene picture to obtain a third scene picture, where the center point of the third scene picture is the center point of the second target scene picture, for example, the size of the third scene picture is the same as the size of the first scene picture.
[0181] In one possible implementation, the processing module 1302 is used to, in response to a trigger operation on a conversion control, adjust the pixel information of each pixel point in the second scene picture according to the magnification of the sight, the first image coordinates of the center point of the sight, and the fourth image coordinates of each pixel point in the second scene picture to obtain a reference scene picture; or, in response to a trigger operation on a conversion control, stretch the second scene picture according to the magnification of the sight to obtain a third target scene picture, and capture the third target scene picture to obtain a reference scene picture; wherein the second scene picture is the scene picture in the first scene picture corresponding to the sight, and the off-scope picture of the sight is the picture in the first scene picture excluding the second scene picture.
[0182] After receiving a trigger operation for the scope control, the above-mentioned device amplifies the first scene screen to obtain a reference scene screen and displays the second game screen. The in-scope screen of the second game screen is the reference scene screen, and the out-scope screen of the scope is determined based on the first scene screen. The size of the objects included in the in-scope screen of the scope is larger than the size of the objects included in the out-scope screen of the scope, thereby making the magnification of the in-scope screen and the out-scope screen different, realizing the differentiation of the in-scope and out-scope of the scope, thereby improving the display effect of the game screen, and thus improving the gaming experience of the game object. For example, in some implementations, since only the second scene screen corresponding to the scope in the first scene screen needs to be processed, the calculation amount of the scene screen is small, the performance requirements of the terminal device displaying the game screen are low, and thus resources can be saved.
[0183] FIG14 is a schematic diagram showing the structure of a device for displaying a game screen according to an embodiment of the present application. As shown in FIG14 , the device includes:
[0184] Display module 1401, used to display a first game screen, the first game screen including a first scene screen, a sight, and a conversion control, the sight is in an off state, and the conversion control is used to switch the state of the sight;
[0185] The display module 1401 is also used to display a second game screen in response to a trigger operation on the conversion control. The second game screen includes a scope, the scope is in an open state, the in-scope picture of the scope includes a reference scene picture, the magnification of the objects included in the out-of-scope picture of the scope is smaller than the magnification of the objects included in the reference scene picture, and the magnification of the objects included in the reference scene picture is greater than the magnification of the objects included in the first scene picture.
[0186] In one possible implementation, the magnification of the objects included in the out-of-scope image of the scope in the second game screen is greater than the magnification of the objects included in the first scene screen, or the magnification of the objects included in the out-of-scope image of the scope in the second game screen is equal to the magnification of the objects included in the first scene screen.
[0187] In one possible implementation, the second game screen further includes a directional control, and the directional control is used to adjust the displayed game screen;
[0188] Display module 1401 is also used to display a third game screen in response to a trigger operation on the direction control. The third game screen includes a sight, and the sight is in an open state. The in-scope screen of the sight includes a fifth scene screen. The magnification of the objects included in the out-of-scope screen of the sight in the third game screen is smaller than the magnification of the objects included in the fifth scene screen. The magnification of the objects included in the fifth scene screen is the same as the magnification of the objects included in the reference scene screen. The fifth scene screen is a scene screen on the side of the direction indicated by the direction control of the reference scene screen, or in other words, the fifth scene screen is a scene screen in the direction indicated by the direction control.
[0189] In one possible implementation, the second game screen further includes a scope opening control, which is displayed in a first form. In other words, the second game screen further includes a conversion control in a first form, and the first form is used to indicate that the scope displayed in the second game screen is in an open state.
[0190] The display module 1401 is also used to display the first game screen in response to a trigger operation on the conversion control, and the scope control displayed in the first game screen is displayed in the second form, or in other words, the first game screen includes the conversion control of the second form, and the second form is used to indicate that the scope included in the first game screen is in the closed state.
[0191] After the above-mentioned device receives the trigger operation for the scope control, the magnification of the objects included in the in-scope picture of the scope in the second game screen displayed is greater than the magnification of the objects included in the out-scope picture of the scope, thereby making the magnification of the in-scope picture and the out-scope picture different, realizing the differentiation between the inside and outside of the scope, thereby improving the display effect of the game screen, and thus being able to improve the gaming experience of the game object.
[0192] It should be understood that the above-mentioned device is merely an example of the division of the above-mentioned functional modules when implementing its functions. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments are based on the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0193] FIG15 shows a block diagram of a terminal device 1500 according to an exemplary embodiment of the present application. Terminal device 1500 may be a portable mobile terminal, such as a smartphone, tablet computer, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), laptop computer, or desktop computer. Terminal device 1500 may also be referred to as user equipment, portable terminal, laptop terminal, desktop terminal, or other similar names.
[0194] Typically, the terminal device 1500 includes a processor 1501 and a memory 1502 .
[0195] The processor 1501 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 1501 may be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), or PLA (Programmable Logic Array). The processor 1501 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a CPU (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor 1501 may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor 1501 may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.
[0196] The memory 1502 may include one or more non-transitory computer-readable storage media, which may be non-transitory (or non-temporary). The memory 1502 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 1502 is used to store at least one instruction, which is executed by the processor 1501 to implement the method for displaying the game screen provided in the method embodiment of the present application.
[0197] In some embodiments, terminal device 1500 may optionally include a peripheral device interface 1503 and at least one peripheral device. Processor 1501, memory 1502, and peripheral device interface 1503 may be connected via a bus or signal lines. Each peripheral device may be connected to peripheral device interface 1503 via a bus, signal lines, or circuit boards. Exemplarily, the peripheral device includes display screen 1505.
[0198] The peripheral device interface 1503 can be used to connect at least one I / O (Input / Output)-related peripheral device to the processor 1501 and the memory 1502. In some embodiments, the processor 1501, the memory 1502, and the peripheral device interface 1503 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 1501, the memory 1502, and the peripheral device interface 1503 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.
[0199] The display screen 1505 is used to display a UI (User Interface). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch screen display, the display screen 1505 also has the ability to collect touch signals on the surface or above the surface of the display screen 1505. The touch signal can be input as a control signal to the processor 1501 for processing. In this case, the display screen 1505 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, there can be one display screen 1505, which is set on the front panel of the terminal device 1500; in other embodiments, there can be at least two display screens 1505, which are respectively set on different surfaces of the terminal device 1500 or in a folding design; in other embodiments, the display screen 1505 can be a flexible display screen, which is set on the curved surface or folding surface of the terminal device 1500. In fact, the display screen 1505 can also be set as a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 1505 can be made of materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0200] Those skilled in the art will understand that the structure shown in FIG15 does not constitute a limitation on the terminal device 1500 , and may include more or fewer components than shown in the figure, or combine certain components, or adopt a different component arrangement.
[0201] Figure 16 is a schematic diagram of the structure of the server provided in an embodiment of the present application. The server 1600 may have relatively large differences due to different configurations or performances, and may include one or more processors (Central Processing Units, CPU) 1601 and one or more memories 1602, wherein the one or more memories 1602 store at least one program code, and the at least one program code is loaded and executed by the one or more processors 1601 to implement the game screen display method provided by the above-mentioned various method embodiments. Of course, the server 1600 may also have components such as a wired or wireless network interface, a keyboard, and an input and output interface for input and output. The server 1600 may also include other components for implementing device functions, which will not be described in detail here.
[0202] In an exemplary embodiment, a non-temporary computer-readable storage medium is also provided, in which at least one program code is stored. The at least one program code is loaded and executed by a processor to enable the computer to implement any of the above-mentioned game screen display methods.
[0203] Optionally, the above-mentioned non-temporary computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc (CD-ROM), a magnetic tape, a floppy disk and an optical data storage device, etc.
[0204] In an exemplary embodiment, a computer program or computer program product is also provided, in which at least one computer instruction is stored, and the at least one computer instruction is loaded and executed by a processor to enable the computer to implement any of the above-mentioned methods for displaying game screens.
[0205] It should be noted that the information (including but not limited to user device information, user personal information, etc.), data (including but not limited to data used for analysis, stored data, displayed data, etc.), and signals involved in this application are all authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first game screen involved in this application was obtained with full authorization.
[0206] It should be understood that the term "plurality" used herein refers to two or more. "And / or" describes a relationship between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can mean: A exists alone, A and B exist simultaneously, or B exists alone. The character " / " generally indicates an "or" relationship between the associated objects.
[0207] The serial numbers of the above embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0208] The above description is merely an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for displaying a game screen, wherein: The method is performed by a terminal device, and the method includes: Displaying a first game screen, the first game screen including a first scene screen, a sight and a conversion control, the sight is in a closed state, and the conversion control is used to convert the state of the sight; In response to a trigger operation on the conversion control, the first scene image is processed according to the magnification of the sight to obtain a reference scene image; A second game screen is displayed, wherein the second game screen includes the sight, the sight is in an open state, the in-scope image of the sight includes the reference scene image, the out-of-scope image of the sight is obtained based on the first scene image, and the size of the object included in the out-of-scope image of the sight is smaller than the size of the object included in the reference scene image.
2. The method according to claim 1, wherein: In response to the triggering operation on the conversion control, the first scene picture is processed according to the magnification of the sight to obtain a reference scene picture, including: In response to a trigger operation on the conversion control, the first scene picture is adjusted to obtain a third scene picture, wherein the size of the object included in the third scene picture is greater than the size of the object included in the first scene picture; According to the magnification of the sight, the fourth scene picture corresponding to the sight in the third scene picture is processed to obtain the reference scene picture, the size of the object included in the reference scene picture is larger than the size of the object included in the fourth scene picture, and the out-of-scope picture of the sight is the picture in the third scene picture excluding the fourth scene picture.
3. The method according to claim 2, wherein: The step of processing, according to the magnification of the sight, a fourth scene picture corresponding to the sight in the third scene picture to obtain the reference scene picture comprises: Determine a reference magnification according to the magnification of the sight, wherein the reference magnification is the magnification of the reference scene picture relative to the fourth scene picture; Acquire the first image coordinates of the center point of the sight and the second image coordinates of each pixel point in the fourth scene picture; According to the reference magnification, the first image coordinates and the second image coordinates of the respective pixel points, the pixel information of the respective pixel points is adjusted to obtain the reference scene picture.
4. The method according to claim 3, wherein: The step of adjusting the pixel information of each pixel point according to the reference magnification, the first image coordinates, and the second image coordinates of each pixel point to obtain the reference scene picture includes: Determine, according to the reference magnification, the first image coordinates and the second image coordinates of the respective pixel points, the third image coordinates of the respective pixel points after being shifted; For any pixel point among the multiple pixel points, based on the existence of a reference pixel point among the multiple pixel points that has the same third image coordinates as the any pixel point after being offset, the pixel information of the reference pixel point is adjusted to the pixel information of the any pixel point, and the multiple pixel points are traversed to obtain the reference scene picture.
5. The method according to claim 4, wherein: The step of determining the third image coordinates of each pixel point after the pixel point is shifted according to the reference magnification, the first image coordinates, and the second image coordinates of each pixel point comprises: For any pixel point among the multiple pixel points, determine a target offset vector of the any pixel point according to the reference magnification, the first image coordinates, and the second image coordinates of the any pixel point, wherein the target offset vector of the any pixel point is used to indicate an offset between the second image coordinates of the any pixel point and the image coordinates of the any pixel point after being magnified according to the reference magnification, and the target offset vector of the any pixel point includes a first offset value of the any pixel point in a first direction and a second offset value in a second direction; The third image coordinates of the any pixel point after being offset are determined according to the second image coordinates of the any pixel point, the first offset value of the any pixel point in the first direction, and the second offset value in the second direction.
6. The method according to claim 5, wherein: The step of determining the target offset vector of any pixel point according to the reference magnification, the first image coordinates, and the second image coordinates of any pixel point comprises: Determine the reference magnification, the first image coordinates and the second image coordinates of any pixel point. A reference offset vector of any pixel point; According to the reference offset vector of any pixel point, a target offset vector of any pixel point is determined in any of the following ways: Using the reference offset vector of any pixel point as the target offset vector of any pixel point; Alternatively, the target offset vector of any pixel point is determined according to the reference offset vector of any pixel point.
7. The method according to claim 6, wherein: The determining the target offset vector of any pixel point according to the reference offset vector of any pixel point comprises: Determine a coding intermediate vector of any pixel point according to a reference offset vector of any pixel point, and determine a target offset vector of any pixel point according to the coding intermediate vector of any pixel point, wherein the coding intermediate vector is a vector obtained by normalizing the reference offset vector; Alternatively, the target offset vector of any pixel point is determined based on the fifth offset value and the sixth offset value included in the reference offset vector of any pixel point, the fifth offset value is the offset value of any pixel point in the first direction, and the sixth offset value is the offset value of any pixel point in the second direction.
8. The method according to claim 7, wherein: The encoded intermediate vector of any pixel point includes a third offset value of the any pixel point in the first direction and a fourth offset value in the second direction; The step of determining the target offset vector of any pixel point according to the encoded intermediate vector of any pixel point comprises: Encoding the third offset value to obtain a first binary value, encoding the fourth offset value to obtain a second binary value, wherein the first binary value and the second binary value have the same number of bits; According to the first binary value, obtain a third binary value and a fourth binary value, and according to the second binary value, obtain a fifth binary value and a sixth binary value; A target offset vector of any pixel point is determined according to the third binary value, the fourth binary value, the fifth binary value and the sixth binary value.
9. The method according to claim 8, wherein: The determining the target offset vector of any pixel point according to the third binary value, the fourth binary value, the fifth binary value, and the sixth binary value comprises: Decoding the third binary value to obtain a first value, decoding the fourth binary value to obtain a second value, decoding the fifth binary value to obtain a third value, and decoding the sixth binary value to obtain a fourth value; A target offset vector of any pixel point is determined according to the first value, the second value, the third value and the fourth value.
10. The method according to claim 2, wherein: The step of processing, according to the magnification of the sight, a fourth scene picture corresponding to the sight in the third scene picture to obtain the reference scene picture comprises: Determine a reference magnification according to the magnification of the sight, wherein the reference magnification is the magnification of the reference scene picture relative to the fourth scene picture; Stretching the fourth scene picture according to the reference magnification ratio to obtain a first target scene picture, wherein the size of the first target scene picture is the reference magnification ratio times the size of the fourth scene picture; The first target scene picture is intercepted to obtain the reference scene picture, the center point of the reference scene picture is the center point of the first target scene picture, and the size of the reference scene picture is the same as the size of the in-scope picture of the sight.
11. The method according to claim 10, wherein: The step of intercepting the first target scene picture to obtain the reference scene picture includes: Determine a target area with the center point of the first target scene image as the center and the target length as the radius, wherein the target length is the radius of the sight; The scene picture covered by the target area in the first target scene picture is used as the reference scene picture.
12. The method according to any one of claims 2 to 11, wherein: Before the fourth scene picture corresponding to the sight in the third scene picture is processed according to the magnification of the sight to obtain the reference scene picture, the method further includes: Determine a reference area with the center point of the third scene image as the center and the target length as the radius, wherein the target length is the radius of the sight; The scene picture covered by the reference area in the third scene picture is used as the fourth scene picture.
13. The method according to any one of claims 2 to 11, wherein: The adjusting the first scene picture to obtain a third scene picture includes: Acquire a first viewing angle corresponding to the first scene image and a magnification of the sight; Determining a second viewing angle according to the first viewing angle and the magnification of the sight; The first scene picture is adjusted according to the second viewing angle to obtain the third scene picture.
14. The method according to claim 13, wherein: The determining of the second viewing angle according to the first viewing angle and the magnification of the sight comprises: Determining a target magnification corresponding to the magnification of the sight, the target magnification being the magnification of the third scene picture relative to the first scene picture; Determining a reference value according to the first viewing angle; Determining a target value according to the reference value and the target magnification; The second viewing angle is determined according to the target value.
15. The method according to any one of claims 2 to 11, wherein: The adjusting the first scene picture to obtain a third scene picture includes: Determining a target magnification corresponding to the magnification of the sight, the target magnification being the magnification of the third scene picture relative to the first scene picture; Stretching the first scene picture according to the target magnification to obtain a second target scene picture, wherein the size of the second target scene picture is times the target magnification of the size of the first scene picture; The second target scene picture is intercepted to obtain the third scene picture, and the center point of the third scene picture is the center point of the second target scene picture.
16. The method according to claim 1, wherein: In response to the triggering operation on the conversion control, the first scene picture is processed according to the magnification of the sight to obtain a reference scene picture, including: In response to a trigger operation on the conversion control, pixel information of each pixel point in the second scene picture is adjusted according to the magnification of the sight, the first image coordinates of the center point of the sight, and the fourth image coordinates of each pixel point in the second scene picture to obtain the reference scene picture; Alternatively, in response to a trigger operation on the conversion control, the second scene picture is stretched according to the magnification of the sight to obtain a third target scene picture, and the third target scene picture is intercepted to obtain the reference scene picture; Among them, the second scene picture is the scene picture corresponding to the sight in the first scene picture, and the out-of-scope picture of the sight is the picture in the first scene picture except the second scene picture.
17. A method for displaying a game screen, wherein: The method is performed by a terminal device, and the method includes: Displaying a first game screen, the first game screen including a first scene screen, a sight and a conversion control, the sight is in a closed state, and the conversion control is used to convert the state of the sight; In response to a trigger operation on the conversion control, a second game screen is displayed, the second game screen including the scope, the scope is in an open state, the in-scope screen of the scope includes a reference scene screen, the magnification of the objects included in the out-of-scope screen of the scope is smaller than the magnification of the objects included in the reference scene screen, and the magnification of the objects included in the reference scene screen is greater than the magnification of the objects included in the first scene screen.
18. The method according to claim 17, wherein: The magnification of the objects included in the out-of-scope image of the sight in the second game screen is greater than the magnification of the objects included in the first scene screen, or the magnification of the objects included in the out-of-scope image of the sight in the second game screen is equal to the magnification of the objects included in the first scene screen.
19. The method according to claim 17 or 18, wherein: The second game screen also includes a direction control, and the direction control is used to adjust the displayed game screen; After displaying the second game screen, the method further includes: In response to a trigger operation on the direction control, a third game screen is displayed, the third game screen including the sight, the sight being in an open state, the in-scope screen of the sight including a fifth scene screen, the magnification of objects included in the out-of-scope screen of the sight in the third game screen is smaller than the magnification of objects included in the fifth scene screen, the magnification of objects included in the fifth scene screen is the same as the magnification of objects included in the reference scene screen, and the fifth scene screen is a scene screen in the direction indicated by the direction control.
20. The method according to claim 17 or 18, wherein: The second game screen further includes the conversion control in a first form, wherein the first form is used to indicate that the scope included in the second game screen is in an open state; After displaying the second game screen, the method further includes: In response to a trigger operation on the conversion control, the first game screen is displayed, and the first game screen includes the conversion control in a second form, and the second form is used to indicate that the scope included in the first game screen is in a closed state.
21. A device for displaying a game screen, wherein: The device comprises: A display module, used for displaying a first game screen, wherein the first game screen includes a first scene screen, a sight and a conversion control, wherein the sight is in a closed state, and the conversion control is used for converting the state of the sight; a processing module, configured to, in response to a trigger operation on the conversion control, process the first scene picture according to the magnification of the sight to obtain a reference scene picture, wherein the size of the object included in the reference scene picture is larger than the size of the object included in the first scene picture; The display module is also used to display a second game screen, which includes the sight. The sight is in an open state, the in-scope image of the sight includes the reference scene image, the out-of-scope image of the sight is obtained based on the first scene image, and the size of the objects included in the out-of-scope image of the sight is smaller than the size of the objects included in the reference scene image.
22. A device for displaying a game screen, wherein: The device comprises: A display module, used for displaying a first game screen, wherein the first game screen includes a first scene screen, a sight and a conversion control, wherein the sight is in a closed state, and the conversion control is used for converting the state of the sight; The display module is also used to display a second game screen in response to a trigger operation on the conversion control, wherein the second game screen includes the sight, the sight is in an open state, the in-scope screen of the sight includes a reference scene screen, the magnification of the objects included in the out-of-scope screen of the sight is smaller than the magnification of the objects included in the reference scene screen, and the magnification of the objects included in the reference scene screen is greater than the magnification of the objects included in the first scene screen.
23. An electronic device, wherein: The electronic device includes a processor and a memory, wherein the memory stores at least one program code, and the at least one program code is loaded and executed by the processor so that the electronic device implements the method for displaying a game screen as described in any one of claims 1 to 20.
24. A non-transitory computer-readable storage medium, wherein: The non-temporary computer-readable storage medium stores at least one program code, and the at least one program code is loaded and executed by a processor so that the computer implements the method for displaying a game screen as described in any one of claims 1 to 20.
25. A computer program product, wherein: The computer program product stores at least one computer instruction, and the at least one computer instruction is loaded and executed by a processor so that the computer implements the method for displaying a game screen as described in any one of claims 1 to 20.
Citation Information
Patent Citations
Game control method, mobile terminal and computer readable storage medium
CN109701279A
Picture display method and device based on virtual environment, equipment and medium
CN112221134A
Processing method of virtual sighting telescope, device thereof and equipment and storage medium
CN113769398A
Viewing angle adjustment method and device in game scene, electronic equipment and storage medium
CN115518373A
Game picture display method, device and equipment and computer readable storage medium
CN116943179A
