Game screen display methods, devices, equipment, and computer programs
By processing game screens to enlarge objects within the aiming reticle and maintain a smaller scale outside, the method optimizes resource usage and enhances game experience by differentiating reticle areas, addressing suboptimal display issues in existing technologies.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2024-01-15
- Publication Date
- 2026-05-08
AI Technical Summary
Existing game screen display methods fail to effectively differentiate and enhance the display of game objects within and outside the aiming reticle, leading to suboptimal game experience and inefficient resource utilization on terminal devices.
A method and device that processes the game screen by enlarging objects within the aiming reticle while maintaining a smaller scale outside, utilizing different magnification ratios to differentiate the reticle area, thereby reducing computational load and resource usage.
Enhances game display by enlarging objects within the reticle, improving visual differentiation and reducing performance requirements on terminal devices, thus optimizing resource usage and enhancing game experience.
Smart Images

Figure 2026514277000001_ABST
Abstract
Description
Technical Field
[0001] This application claims the priority of a Chinese patent application filed on March 7, 2023, with the application number 202310248919.1 and the invention title "Game Screen Display Method, Device, Equipment, and Computer-Readable Storage Medium", and all of its contents are incorporated herein by reference.
[0002] Embodiments of this application relate to the field of computer technology, and particularly to game screen display methods, devices, equipment, and computer-readable storage media.
Background Art
[0003] With the continuous development of computer technology, the types of games operating on terminal devices such as smartphones are increasing. In the process of game operation, a game screen display method is required to display the game screen on the terminal device.
Summary of the Invention
Problems to be Solved by the Invention
[0004] Embodiments of this application provide a game screen display method, device, equipment, and computer-readable storage medium. The above technical solutions include the following aspects.
Means for Solving the Problems
[0005] In a first aspect, embodiments of this application provide a game screen display method, which is executed by a terminal device, and the method includes: displaying a first game screen, where the first game screen includes a first scene screen, a sight, and a conversion control component (also called a control), the sight is in an off state, and the conversion control component is used to perform state conversion on the sight; The steps include: In response to a trigger operation on the conversion control component, processing the first scene screen based on the magnification of the aiming scope to obtain a reference scene screen; The steps include: displaying a second game screen, wherein the second game screen includes the aiming mirror, the aiming mirror is in the ON state, the screen in the mirror of the aiming mirror includes the reference scene screen, the screen out of the mirror of the aiming mirror is obtained based on the first scene screen, and the size of the objects included in the screen out of the mirror of the aiming mirror is smaller than the size of the objects included in the reference scene screen.
[0006] In a second aspect, an embodiment of the present application provides a method for displaying a game screen, the method being performed by a terminal device, and the method is A step of displaying a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror. The steps include: displaying a second game screen in response to a trigger operation on the conversion control component, wherein the second game screen includes the aiming mirror, the aiming mirror is in the ON state, the screen in the mirror of the aiming mirror includes a reference scene screen, the magnification of objects included in the screen outside the mirror of the aiming mirror is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
[0007] In a third aspect, an embodiment of the present application provides a display device for a game screen, the device is A display module used to display a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror. A processing module used to process the first scene screen and obtain a reference scene screen in response to a trigger operation on the conversion control component, based on the magnification of the aiming scope, is included, The display module is further used to display a second game screen, the second game screen includes the aiming mirror, the aiming mirror is in the ON state, the screen inside the aiming mirror includes the reference scene screen, the screen outside the aiming mirror is obtained based on the first scene screen, and the size of the objects included in the screen outside the aiming mirror is smaller than the size of the objects included in the reference scene screen.
[0008] In a fourth aspect, an embodiment of the present application provides a display device for a game screen, the device is A display module used to display a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror, the display module includes The display module is further used to display a second game screen in response to a trigger operation on the conversion control component, the second game screen includes the aiming mirror, the aiming mirror is in the ON state, the screen in the mirror of the aiming mirror includes a reference scene screen, the magnification of objects included in the screen outside the mirror of the aiming mirror is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
[0009] In a fifth aspect, an embodiment of the present application provides an electronic device comprising a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, thereby enabling the electronic device to implement the method of displaying a game screen described in any of the above.
[0010] In the sixth embodiment, a non-temporary computer-readable storage medium is further provided, wherein at least one program code is stored in the non-temporary computer-readable storage medium, and the at least one program code is loaded and executed by a processor, thereby enabling the computer to realize the method of displaying the game screen described in any of the above embodiments.
[0011] In the seventh aspect, a computer program or computer program product is further provided, wherein at least one computer instruction is stored in the computer program or computer program product, and the at least one computer instruction is loaded and executed by a processor, thereby enabling the computer to realize any of the methods for displaying the game screen. [Effects of the Invention]
[0012] The technical solution provided by the embodiment of the present invention, after receiving a trigger operation on the conversion control component, performs an enlargement process on the first scene screen to obtain a reference scene screen, thereby displaying a second game screen where the size of objects included in the reference screen is larger than the size of objects included in the first scene screen. In the second game screen, the screen inside the reticle is the reference scene screen, and the screen outside the reticle is determined based on the first scene screen. The size of objects included in the screen inside the reticle is larger than the size of objects included in the screen outside the reticle. Furthermore, the magnification ratios of the screen inside and outside the reticle are made different, thereby differentiating the screen inside and outside the reticle, further improving the display effect of the game screen, and thereby enhancing the game experience of game objects. Moreover, the computational amount of the scene screen is relatively small, the performance requirements of the terminal device displaying the game screen are relatively low, and resources can be saved. [Brief explanation of the drawing]
[0013] [Figure 1] This is a schematic diagram of the implementation environment for the game screen display method provided by the embodiment of the present invention. [Figure 2] It is a flowchart of a method for displaying a game screen provided by an embodiment of the present application. [Figure 3] It is a schematic diagram of the display of the first game screen provided by an embodiment of the present application. [Figure 4] It is a schematic diagram of the display of the third scene screen provided by an embodiment of the present application. [Figure 5] It is a schematic diagram for obtaining the third scene screen provided by an embodiment of the present application. [Figure 6] It is a schematic diagram for obtaining the fourth scene screen provided by an embodiment of the present application. [Figure 7] It is a schematic diagram for obtaining a reference scene screen provided by an embodiment of the present application. [Figure 8] It is a schematic diagram for obtaining a reference scene screen provided by an embodiment of the present application. [Figure 9] It is a schematic diagram of the display of the second game screen provided by an embodiment of the present application. [Figure 10] It is a schematic diagram of the display of another second game screen provided by an embodiment of the present application. [Figure 11] It is a flowchart of a method for displaying a game screen provided by an embodiment of the present application. [Figure 12] It is a flowchart of a method for obtaining a reference scene screen provided by an embodiment of the present application. [Figure 13] It is a structural schematic diagram of a game screen display device provided by an embodiment of the present application. [Figure 14] It is a structural schematic diagram of a game screen display device provided by an embodiment of the present application. [Figure 15] It is a structural schematic diagram of a terminal device provided by an embodiment of the present application. [Figure 16] It is a structural schematic diagram of a server provided by an embodiment of the present application.
Embodiments for Carrying Out the Invention
[0014] To make the objectives, technical solutions, and advantages of the present application clearer, the embodiments of the present application will be described in more detail below in conjunction with the drawings.
[0015] It should be explained that the terms “First,” “Second,” etc., used in this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this manner can be interchanged where appropriate, so that the embodiments of this application described herein may be carried out in an order other than that illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of apparatuses and methods consistent with some aspects of this application, which are described in detail in the appended claims.
[0016] Figure 1 is a schematic diagram of an implementation environment for a game screen display method provided by an embodiment of the present invention, and as shown in Figure 1, the implementation environment includes a terminal device 101 and a server 102.
[0017] Here, an application program capable of providing a game screen is installed and running on terminal device 101, and terminal device 101 is used to execute the game screen display method provided by the embodiment of the present invention.
[0018] The embodiments of this application do not limit the type of application program that can provide a game screen. Exemplarily, an application program that can provide a game screen refers to a game application program. Examples include third-person shooting (TPS) games, first-person shooting (FPS) games, multiplayer online battle arena (MOBA) games, multiplayer shooting survival games, and massive multiplayer online role-playing games (MMOs). In the exemplary embodiments, the game application program involved in the embodiments of this application is a frame-synchronization-based game application program; that is, the method of displaying a game screen provided in the embodiments of this application can be applied to frame-synchronization-based game application programs.
[0019] Of course, in addition to game application programs, application programs that can provide game screens may also be other types of application programs, such as virtual reality (VR) application programs, augmented reality (AR) application programs, 3D map programs, map simulation programs, social application programs, and interactive entertainment application programs.
[0020] Server 102 is used to provide background services to an application program that can enhance the game screen installed on terminal device 101. In one possible implementation, server 102 handles the main computational tasks, and terminal device 101 handles the secondary computational tasks. Alternatively, server 102 handles the secondary computational tasks, and terminal device 101 handles the main computational tasks. Furthermore, computations are performed collaboratively between terminal device 101 and server 102 using a distributed computing architecture.
[0021] Selectively, terminal device 101 is one type of electronic product capable of human-machine interaction with the user by one or more methods such as a keyboard, touchpad, touch panel, remote control, voice interaction, or handwriting device. Examples include PCs (Personal Computers), mobile phones, smartphones, PDAs (Personal Digital Assistants), wearable devices, PPCs (Pocket PCs), tablet computers, smart in-car infotainment systems, smart TVs, and smart speakers.
[0022] Server 102 may be a single server, a server cluster consisting of multiple server units, or a single cloud computing service center. Server 102 can be connected directly or indirectly to terminal equipment 101 by wired or wireless communication.
[0023] As those skilled in the art will understand, the terminal device 101 and server 102 described above are merely illustrative examples, and other existing or potentially emerging terminal devices or servers should be included within the scope of this application, where applicable, and are incorporated herein by reference.
[0024] The embodiment of the present application provides a method for displaying a game screen, which can be applied to the above-described implementation environment. Taking the flowchart of the method for displaying a game screen provided by the embodiment of the present application shown in Figure 2 as an example, the method can be executed by the terminal device 101 in Figure 1. As shown in Figure 2, the method includes the following steps 201 to 203.
[0025] In step 201, the first game screen is displayed, which includes the first scene screen, a sighting scope, and a conversion control component (also called a control).
[0026] In the exemplary embodiment of the present application, a target game capable of providing a game screen is installed and running on a terminal device, and the target game may be any type of game, and the embodiment of the present application is not limited thereto. Exemplarily, the target game provided in the embodiment of the present application is a MOBA type game.
[0027] In one possible implementation, the display interface of a terminal device displays related information for multiple application programs, the types of each application program may be the same or different, and the related information for an application program may be an icon for an application program or the name of an application program, and the embodiments of the present invention are not limited to these. In response to a user selecting related information for a target game from among the multiple application programs displayed, the terminal device receives a selection command for the related information for the target game, starts the target game, and further displays the page for the target game, on which a game start control component is displayed, and the game start control component is used to enter the target game.
[0028] When a user wants to enter a target game, the user selects the game start control component. At this time, the terminal device receives a selection command for the game start control component and displays the first game screen, which includes the first scene screen, a sighting scope, and a conversion control component. Here, the sighting scope is in the off state, and the conversion control component is used to perform a state conversion on the sighting scope, or the conversion control component is used to convert the state of the sighting scope. The state of the sighting scope includes, but is not limited to, the off state and the on state, and the conversion control component is used to convert between the off state and the on state. For example, if the sighting scope is in the off state, the conversion control component is used to convert the state of the sighting scope to the on state, and further, if the sighting scope is in the on state, the conversion control component is used to convert the state of the sighting scope to the off state. Exemplaryly, the conversion control component may be a single control component. Alternatively, the conversion control component may include a scope on control component and a scope off control component. The scope-on control component is used to convert the state of the scope to the on state when the scope is off, or to turn the scope on. The scope-off control component is used to convert the state of the scope to the off state when the scope is on. Exemplaryly, the first game screen may include the scope-on control component. The scope may be a separate tool or a scope included in a virtual tool, and the embodiments of this application are not limited thereto. Optionally, the virtual tool may be any type of tool, which can be used by a target object, and the target object is an object controlled by the user. Optionally, the conversion control component may be displayed in a second form, which is used to indicate that the scope included in the first game screen is off. For example, the conversion control component being displayed in a second form means that the conversion control component is displayed in white.
[0029] Figure 3 is a schematic diagram of the display of the first game screen provided by an embodiment of the present invention. Here, the first scene screen 301, the aiming reticle 302, and the conversion control component 303 are displayed, the aiming reticle being an aiming reticle included in the virtual tool 304, and the aiming reticle is in the off state.
[0030] Optionally, the first game screen further includes a firing control component 305, a jump control component 306, a prone control component 307, a crouching control component 308, and a direction control component 309. Here, the firing control component 305 is used to fire virtual resources using a virtual tool; the jump control component 306 is used to instruct the target object to jump; the prone control component 307 is used to instruct the target object to lie prone; the crouching control component 308 is used to instruct the target object to crouch; and the direction control component 309 is used to determine the direction of movement of the target object. Of course, other content may be further displayed on the first game screen, and the embodiments of the present invention are not limited thereto.
[0031] In step 202, in response to a trigger operation on the conversion control component, the first scene screen is processed based on the magnification of the aiming scope to obtain a reference scene screen.
[0032] For example, the size of an object included in the reference scene screen is larger than the size of an object included in the first scene screen. In an exemplary embodiment, the embodiment of the present application can process a second scene screen corresponding to a reticle in the first scene screen, and the second scene screen may belong to a part of the first scene, in which case the size of an object included in the second scene screen is the same as the size of an object included in the first scene screen, and consequently the size of an object included in the reference scene screen is also larger than the size of an object included in the second scene screen. Here, since it is only necessary to process the second scene screen corresponding to the reticle in the first scene screen, the computational amount of the scene screen can be made relatively small, the performance requirements of the terminal device displaying the game screen are relatively low, and resources can be saved.
[0033] Exemplary, the magnification of the reference scene screen relative to the first scene screen is determined based on the magnification of the sighting scope. In some embodiments, the magnification of the sighting scope is the magnification of the reference scene screen relative to the first scene screen, or the magnification of the sighting scope is the same as the magnification of the reference scene screen relative to the first scene screen. In some other embodiments, the magnification of the sighting scope is modified based on actual needs to obtain a modified magnification, which is the magnification of the reference scene screen relative to the first scene screen. For example, the magnification is modified based on the screen size of the terminal device, thereby the reference scene screen has a relatively good display effect on a terminal device having that screen size.
[0034] When a user wants to turn on the aiming scope, the user selects the conversion control component, and the terminal device receives a trigger operation on the conversion control component. The embodiments of the present invention are not limited to the method by which the user selects the conversion control component; the method by which the user selects the conversion control component may be by clicking on the conversion control component, or by voice.
[0035] In one possible implementation method, the process of processing the second scene screen corresponding to the aiming reticle in the first scene screen based on the magnification of the aiming reticle, and obtaining a reference scene screen, includes, but is not limited to, the following three types.
[0036] Method for obtaining the first type of reference scene screen: The first scene screen is adjusted to obtain the third scene screen, and based on the magnification of the aiming scope, the fourth scene screen corresponding to the aiming scope in the third scene screen is processed to obtain the reference scene screen.
[0037] Here, the size of objects in the third scene screen is greater than the size of objects in the first scene screen, and the field of view of the third scene screen is smaller than the field of view of the first scene screen. The size of objects in the reference scene screen is greater than the size of objects in the fourth scene screen. The size of the reference scene screen is the same as the size of the aiming reticle. Exemplaryly, the fact that the size of the reference scene screen is the same as the size of the screen in the reticle after the aiming reticle is turned on (or while the aiming reticle is turned on) includes the fact that the size of the reference scene screen is the same as the size of the screen in the reticle after the aiming reticle is turned on.
[0038] The embodiments of this application do not limit the method for adjusting the first scene screen and obtaining the third scene screen. Selectively, the embodiments of this application provide at least two implementation methods described below for adjusting the first scene screen and obtaining the third scene screen.
[0039] Implementation Method 1: Obtain the first viewpoint and the magnification of the aiming reticle corresponding to the first scene screen, adjust the first scene screen based on the first viewpoint and the magnification of the aiming reticle, and obtain the third scene screen.
[0040] Here, the first viewpoint corresponding to the first scene screen is the viewpoint set by the target game's developer when developing the target game. Selectively, the first viewpoint corresponding to the first scene screen is stored in the terminal device's memory space, and the terminal device retrieves the first viewpoint corresponding to the first scene screen from that memory space. Alternatively, the server stores the correspondence between the game identifier and the game's viewpoint, and the terminal device and the server communicate via a wired or wireless network. The terminal device sends a first acquisition request to the server, which includes the game identifier of the target game. The server receives the first acquisition request, parses it, obtains the game identifier of the target game, and determines the viewpoint corresponding to the target game based on the game identifier and the correspondence between the game identifier and the game's viewpoint. The viewpoint corresponding to the target game is the first viewpoint. The server sends the first viewpoint to the terminal device, causing the terminal device to acquire the first viewpoint.
[0041] When a sighting scope is a sighting scope included in a virtual tool, the magnification of the sighting scope corresponds to the virtual tool. Optionally, a first correspondence between each tool identifier and each magnification is stored in the terminal device, where the tool identifier is the tool identifier of the virtual tool, and the magnification is the magnification of the sighting scope included in the virtual tool. The terminal device queries the first correspondence based on the tool identifier of the virtual tool (e.g., a virtual tool used by the target user) to obtain the magnification of the sighting scope included in the virtual tool. Alternatively, the first correspondence is stored in the server. The terminal device sends a second retrieval request to the server, which includes the tool identifier of the virtual tool. The server receives the second retrieval request, parses it, obtains the tool identifier of the virtual tool, queries the first correspondence based on the tool identifier of the virtual tool, and obtains the magnification of the sighting scope included in the virtual tool. The server then transmits the magnification of the sighting scope to the terminal device, causing the terminal device to obtain the magnification of the sighting scope.
[0042] When a sighting scope is a separate tool, there is a one-to-one correspondence between the sighting scope and its magnification; that is, a second correspondence exists between the sighting scope's identifier and its magnification. The terminal device queries this second correspondence based on the identifier of the sighting scope (e.g., the sighting scope used by the target object) to obtain the sighting scope's magnification. Of course, the server may determine the sighting scope's magnification and send it to the terminal device, allowing the terminal device to obtain the sighting scope's magnification. This process is similar to the process of obtaining the sighting scope's magnification when the sighting scope is attached to a virtual tool, that is, when a sighting scope is included in a virtual tool, and will not be described in detail again here.
[0043] In one possible implementation, the process of adjusting the first scene screen to obtain the third scene screen based on the first viewpoint and the magnification of the aiming scope includes determining the second viewpoint based on the first viewpoint and the magnification of the aiming scope, and adjusting the first scene screen to obtain the third scene screen based on the second viewpoint. Exemplarily, the second viewpoint is the viewpoint corresponding to the target magnification corresponding to the magnification of the aiming scope.
[0044] Here, the process of determining the second viewpoint based on the first viewpoint and the magnification of the aiming scope includes determining the target magnification corresponding to the magnification of the aiming scope, and determining the second viewpoint based on the first viewpoint and the target magnification. Here, the target magnification is the magnification of the third scene screen relative to the first scene screen.
[0045] Selectively, a third correspondence between the magnification of the sight and the target magnification is stored in the terminal device. The terminal device queries the third correspondence based on the magnification of the sight to obtain the target magnification corresponding to the magnification of the sight. Table 1 below is an exemplary table of third correspondences provided by embodiments of the present invention, and this table is merely an example; the format of the third correspondence is not limited to a table.
[0046] [Table 1]
[0047] As can be seen from Table 1 above, when the magnification of the sight is 3x, the target magnification corresponding to the sight's magnification is 2.7x. When the magnification of the sight is 4x, the target magnification corresponding to the sight's magnification is 3.6x. When the magnification of the sight is a magnification other than 3x or 4x, the target magnification corresponding to the sight's magnification is as shown in Table 1 above, and will not be explained in detail again here.
[0048] Alternatively, the server stores a third correspondence. The terminal device sends a third acquisition request to the server, which includes the magnification of the sight. The server receives the third acquisition request, parses it, and obtains the magnification of the sight. Based on the magnification of the sight, the server queries the third correspondence and determines the target magnification corresponding to the magnification of the sight. The server sends the determined target magnification to the terminal device, causing the terminal device to acquire the target magnification corresponding to the magnification of the sight.
[0049] The process of determining a second viewpoint based on a first viewpoint and target magnification, after selecting a target magnification corresponding to the magnification of the aiming scope, includes determining a reference value based on the first viewpoint, determining a target value based on the reference value and target magnification, and determining a second viewpoint based on the target value. For example, the reference value may be the tangent of half the first viewpoint, the target value may be the quotient between the target magnification and the reference value (for example, the quotient obtained by dividing the reference value by the target magnification), and the second viewpoint may be twice the arctangent of the target value.
[0050] Selectively, the second viewpoint is determined according to the following formula (1) based on the first viewpoint and target magnification.
number
[0051] In equation (1) above, FOV2 is the second viewpoint, FOV1 is the first viewpoint, and A is the target magnification.
[0052] For example, if the first viewpoint is 75 degrees and the target magnification is 3.6, then based on equation (1) above, the second viewpoint is determined to be 23.966 degrees.
[0053] In one possible implementation, after determining a second viewpoint, the content included in the first scene screen is rendered based on the second viewpoint to obtain a third scene screen. Figure 4 is a schematic diagram of the display of the third scene screen provided by an embodiment of the present invention. As is clear from Figures 4 and 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.
[0054] Implementation Method 2: Determine the target magnification corresponding to the magnification of the aiming scope. Based on the target magnification, stretch the first scene screen to obtain the second target scene screen. Crop the second target scene screen to obtain the third scene screen. The target magnification is the magnification of the third scene screen relative to the first scene screen.
[0055] Here, the process of determining the target magnification corresponding to the magnification of the aiming scope has already been described in the above implementation method 1, and will not be explained in detail again here. The size of the second target scene screen is the target magnification multiple of the size of the first scene screen. For example, if the target magnification is 3.6, then the size of the second target scene screen is 3.6 times the size of the first scene screen. The third scene screen is obtained by cropping the second target scene screen with its center point as the center. The center point of the third scene screen is the center point of the second target scene screen. Exemplarily, the size of the third scene screen is the same as or different from the size of the first scene screen, and the embodiments of this application are not limited thereto. However, the size of the objects included in the third scene screen is larger than the size of the objects included in the first scene screen. For example, the objects included in the third scene screen are of size 1, the objects included in the first scene screen are of size 2, and size 1 is the target magnification multiple of size 2.
[0056] In one possible implementation method, the process of obtaining a third scene screen by cropping a second target scene screen includes determining a candidate region centered on the center point of the second target scene screen, wherein the length of the candidate region is the length of the first scene screen, the width of the candidate region is the width of the first scene screen, and the center point of the candidate region is the center point of the second target scene screen, and the third scene screen is the scene screen covered by the candidate region in the second target scene screen.
[0057] Figure 5 is a schematic diagram showing how to obtain the third scene screen provided by the embodiment of the present application. Here, (1) in Figure 5 is the first scene screen, (2) in Figure 5 is the second target scene screen, the area included in the dashed line in (2) is the candidate area, and (3) in Figure 5 is the third scene screen.
[0058] It is important to note that the third scene screen may be obtained using the above implementation method 1, or the third scene screen may be obtained using the above implementation method 2, and the embodiments of this application are not limited to these.
[0059] Selectively, after acquiring the third scene screen, the fourth scene screen corresponding to the sight in the third scene screen is processed based on the magnification of the sight, and a reference scene screen is obtained. Before processing the fourth scene screen, it is necessary to acquire it first. Exemplarily, if the fourth scene screen to be acquired is circular, the process of acquiring the fourth scene screen includes determining a reference area centered on the center point of the third scene screen with the target length as the radius, and defining the scene screen covered by the reference area in the third scene screen as the fourth scene screen. Here, the target length is the radius of the sight. Alternatively, if the fourth scene screen to be acquired is a shape other than circular, the process of acquiring the fourth scene screen includes determining an area with a reference size centered on the center point of the third scene screen, and defining the scene screen covered by the area with the reference size in the third scene screen as the fourth scene screen. Here, the reference size is the size of the screen in the sight's mirror.
[0060] Figure 6 is a schematic diagram showing how to obtain the fourth scene screen provided by the embodiment of the present application. Here, taking the fourth scene screen as an example, (1) in Figure 6 is the third scene screen, the area included in the dashed line in (2) in Figure 6 is the reference area, and (3) in Figure 6 is the fourth scene screen.
[0061] In one possible implementation, after acquiring the fourth scene screen, the fourth scene screen is processed based on the magnification of the aiming scope to obtain a reference scene screen. Embodiments of the present application provide two processing methods for processing the fourth scene screen and obtaining a reference scene screen based on the magnification of the aiming scope.
[0062] Type 1 processing method: Based on the magnification of the aiming reticle, a reference magnification is determined, the first image coordinate of the center point of the aiming reticle and the second image coordinate of each pixel point in the fourth scene screen are obtained, and the pixel information of each pixel point is adjusted based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point to obtain the reference scene screen.
[0063] Here, the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen. The process for determining the magnification of the aiming scope has already been described in implementation method 1 above, and will not be explained in detail again here.
[0064] The process of determining the reference magnification based on the magnification of the sighting scope, as selectable, includes determining the target magnification corresponding to the magnification of the sighting scope, and determining the reference magnification based on the magnification of the sighting scope and the target magnification. Exemplaryly, the reference magnification is the quotient between the magnification of the sighting scope and the target magnification (for example, the quotient obtained by dividing the magnification of the sighting scope by the target magnification). Here, the process of determining the target magnification has already been described in step 202 above and will not be described in detail again here.
[0065] For example, if the magnification of the sight is 4x, and the target magnification corresponding to the sight's magnification is 3.6x, then the reference magnification is:
number
[0066] In one possible implementation, the process of obtaining the first image coordinates of the center point of the aiming reticle includes obtaining the coordinates of the center point of the aiming reticle in the world coordinate system, and transforming the coordinates of the center point of the aiming reticle in the world coordinate system based on a transformation matrix to obtain the first image coordinates of the center point of the aiming reticle.
[0067] The process of obtaining a reference scene screen by adjusting the pixel information of each pixel point based on the selectable reference magnification, first image coordinates, and second image coordinates of each pixel point includes: determining the offset third image coordinate of each pixel point based on the reference magnification, first image coordinates, and second image coordinates of each pixel point; adjusting the pixel information of the reference pixel point to the pixel information of any of the pixel points based on the fact that for any of the multiple pixel points there exists a reference pixel point whose offset third image coordinate is the same as that of any of the multiple pixel points; traversing (also called "iterative processing" or "scanning") the multiple pixel points to obtain a reference scene screen. Here, the pixel information includes, but is not limited to, 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.
[0068] The process of determining the offset third image coordinate of each pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point includes determining a target offset vector for any of the pixel points based on the reference magnification, the first image coordinate, and the second image coordinate of any of the pixel points, wherein the target offset vector of any of the pixel points is used to indicate the offset between the second image coordinate of any of the pixel points and the image coordinate after any of the pixel points have been magnified according to the reference magnification, wherein the target offset vector of any of the pixel points includes a first offset value in the first direction and a second offset value in the second direction of any of the pixel points, and determining the offset third image coordinate of any of the pixel points based on the second image coordinate of any of the pixel points, the first offset value in the first direction and the second offset value in the second direction of any of the pixel points.
[0069] The process of determining the target offset vector of any pixel point based on a selectable reference magnification, a first image coordinate, and the second image coordinate of any pixel point includes: determining the reference offset vector of any pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of any pixel point; and 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.
[0070] In one possible implementation, the reference offset vector of any pixel point is determined according to equation (2) below, based on the reference magnification, the first image coordinate, and the second image coordinate of any pixel point.
number
[0071] In equation (2) above, P is the reference offset vector of any pixel point, B is the reference magnification factor, U is the first image coordinate, and V is the second image coordinate of any pixel point.
[0072] For example, the reference magnification is
number
[0073] Here, based on the reference offset vector of any of the pixel points, the target offset vector of any of the pixel points is determined using one of the following two methods.
[0074] Method 1: Determine the encoded intermediate vector of any pixel point based on the reference offset vector of any pixel point, and then determine the target offset vector of any pixel point based on the encoded intermediate vector of any pixel point.
[0075] Here, the encoded intermediate vector is the vector obtained by normalizing the reference offset vector. Selectively, the encoded intermediate vector for any pixel point is determined according to equation (3) below, based on the reference offset vector of any of the pixel points.
number
[0076] In equation (3) above, Q is the encoded intermediate vector of any pixel point, P is the reference offset vector of any pixel point, and float is a floating-point function.
[0077] The encoded intermediate vector of any pixel point includes a third offset value in the first direction and a fourth offset value in the second direction of any pixel point, and 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.
[0078] The process of determining the target offset vector of any pixel point based on a third offset value and a fourth offset value, as selectable, involves encoding the third offset value to obtain a first binary number, encoding the fourth offset value to obtain a second binary number, obtaining the third and fourth binary numbers based on the first binary number, obtaining the fifth and sixth binary numbers based on the second binary number, and determining the target offset vector of any pixel point based on the third, fourth, fifth, and sixth binary numbers.
[0079] Here, the number of digits of the first binary number and the second binary number are the same. For example, the number of digits of the first binary number and the second binary number are both 16 digits. The number of digits of the third binary number and the fourth binary number may be the same or different, and the number of digits of the fifth binary number and the sixth binary number may be the same or different; the embodiments of this application are not limited to these.
[0080] The process of selectively obtaining a third binary number and a fourth binary number based on a first binary number includes dividing the first binary number to obtain the third binary number and the fourth binary number. For example, the first binary number has 16 digits, the first 8 digits of the first binary number become the third binary number, and the last 8 digits of the first binary number become the fourth binary number.
[0081] For example, based on the first binary number, the third binary number is obtained according to equation (4) below, and the fourth binary number is obtained according to equation (5) below.
number
number
[0082] In equation (4) above, L is the third binary number, M is the first S digits of the first binary number, frac is a kind of function, S is set based on experience or adjusted based on the environment in which it is implemented, and the embodiments of the present application are not limited thereto, S is greater than zero and less than the number of digits in the first binary number, and 255.0f refers to the largest number that can be represented in 8-digit binary. In equation (5) above, K is the fourth binary number, and N is the digits other than the first S digits in the first binary number.
[0083] The process of obtaining the fifth and sixth binary numbers based on the second binary number includes dividing the second binary number to obtain the fifth and sixth binary numbers. For example, the second binary number has 16 digits, the first 8 digits of the second binary number are used as the fifth binary number, and the last 8 digits of the second binary number are used as the sixth binary number. Selectively, the fifth binary number is obtained based on the second binary number according to formula (4) above, and the sixth binary number is obtained according to formula (5) above.
[0084] In one possible implementation, the process of determining the target offset vector of any pixel point based on a third binary number, a fourth binary number, a fifth binary number, and a sixth binary number includes: decoding the third binary number to obtain a first number; encoding the fourth binary number to obtain a second number; decoding the fifth binary number to obtain a third number; decoding the sixth binary number to obtain a fourth number; and determining the target offset vector of any pixel point based on the first number, the second number, the third number, and the fourth number.
[0085] For example, the decimal value corresponding to the third binary number is designated as the first number. The decimal value corresponding to the fourth binary number is designated as the second number. The decimal value corresponding to the fifth binary number is designated as the third number. The decimal value corresponding to the sixth binary number is designated as the fourth number.
[0086] In one possible implementation, the process of determining the target offset vector of any pixel point based on a first numerical value, a second numerical value, a third numerical value, and a fourth numerical value includes: determining a first coordinate based on a first numerical value and a second numerical value, wherein the numerical value of the first coordinate in the first direction is the first numerical value and the numerical value in the second direction is the second numerical value; determining a second coordinate based on a third numerical value and a fourth numerical value, wherein the numerical value of the second coordinate in the first direction is the third numerical value and the numerical value in the second direction is the fourth numerical value; and determining the target offset vector of any pixel point based on the first coordinate and the second coordinate.
[0087] For example, based on the first, second, third, and fourth values, the target offset vector of any pixel point is determined according to equation (6) below.
number
[0088] In equation (6) above, W is the target offset vector of any pixel point, M is the first coordinate, and N is the second coordinate.
[0089] Method 2: The reference offset vector of any pixel point includes a fifth offset value in the first direction and a sixth offset value in the second direction of any pixel point, and the target offset vector of any pixel point is determined based on the fifth and sixth offset values.
[0090] The process of determining the target offset vector of any pixel point based on the fifth and sixth offset values is similar to the process of determining the target offset vector of any pixel point based on the third and fourth offset values in Method 1 described above, and will not be explained in detail again here.
[0091] It is important to note that the target offset vector of any pixel point may be determined by selecting Method 1 above, or by selecting Method 2 above, and the embodiments of this application are not limited to these.
[0092] Further explanation is needed regarding the process. After obtaining the reference offset vector for a pixel point, it is necessary to store this reference offset vector in the Render Target (RT). Due to the limited memory capacity of the Render Target, the 2-channel reference offset vector needs to be converted to a 4-channel value. This 4-channel value is then stored in the Render Target. Subsequently, another 4-channel value is retrieved from the Render Target, processed, and a 2-channel target offset vector is obtained. Based on this target offset vector, the second image coordinate of the pixel point is adjusted to obtain the third image coordinate of the pixel point after the offset.
[0093] Second processing method: Based on the magnification of the aiming scope, a reference magnification is determined, the fourth scene screen is stretched based on the reference magnification to obtain the first target scene screen, the first target scene screen is cropped to obtain the reference scene screen.
[0094] Here, the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen, and the size of the first target scene screen is the reference magnification of the size of the fourth scene screen. The center point of the reference scene screen is the center point of the first target scene screen, and the size of the reference scene screen is the same as the size of the aiming reticle. Exemplaryly, the fact that the size of the reference scene screen is the same as the size of the screen in the aiming reticle's mirror includes the fact that the size of the reference scene screen is the same as the size of the screen in the aiming reticle's mirror. The screen in the aiming reticle's mirror is the screen that is displayed after the aiming reticle is turned on (or in an aiming reticle that is already turned on).
[0095] The process of obtaining the magnification of the aiming scope, and the process of determining the reference magnification based on the magnification of the aiming scope, have already been described in the first type of processing method described above, and will not be explained in detail again here.
[0096] In one possible implementation, exemplary, if the reference scene screen is circular, the process of obtaining the reference scene screen by cropping the first target scene screen includes determining a target area with the center point of the first target scene screen as the center and the target length as the radius, and making the scene screen covered by the target area in the first target scene screen the reference scene screen. Here, the target length is the radius of the aiming scope. Alternatively, if the reference scene screen is a shape other than circular, the process of obtaining the reference scene screen includes determining an area having a reference size with the center point of the first target scene screen as the center and making the scene screen covered by the area having the reference size in the first target scene screen the reference scene screen. Here, the reference size is the size of the screen within the mirror of the aiming scope.
[0097] Figure 7 is a schematic diagram of the acquisition of a reference scene screen provided by an embodiment of the present application. As an example, if the reference scene screen is circular, then (1) in Figure 7 is the fourth scene screen, (2) in Figure 7 is the first target scene screen, the area included in the dashed line in (2) is the target area, and (3) in Figure 7 is the reference scene screen.
[0098] The first type of reference scene screen acquisition method allows for the acquisition of a reference scene screen, and the difference between the size of objects in the reference scene screen and the size of objects in the third scene screen is relatively small. Later, when the reference scene screen is displayed within the mirror of the aiming reticle, and scene screens other than the fourth scene screen in the third scene screen are displayed outside the mirror of the aiming reticle, a difference is created between the size of the screen inside the mirror and the size of the screen outside the mirror, thereby realizing the difference between the inside and outside of the aiming reticle. The size of objects in the screen outside the mirror of the aiming reticle is larger than the size of objects in the first scene screen, and as a result, the difference between the screen inside the mirror and the screen outside the mirror is not large. Furthermore, after turning on the aiming reticle, the blind spots of the game screen are made relatively small, and blind spots refer to areas in the displayed game screen where game objects are not visible. By enlarging the first scene screen, the third scene screen is obtained, and then the fourth scene screen corresponding to the aiming scope in the third scene screen is enlarged to obtain the reference scene screen. Therefore, a transition magnification ratio (i.e., the magnification ratio of the third scene screen relative to the first scene screen) is introduced in the process of obtaining the reference scene screen, and as a result, the difference in clarity between the screen inside the scope and the screen outside the scope is relatively small. Compared to a method that displays scene screens other than the second scene screen in the first scene screen outside the scope, a method that displays scene screens other than the fourth scene screen in the third scene screen outside the scope has a relatively small difference in magnification between the screen inside the scope and the screen outside the scope, thus making the display of the screen inside the scope even clearer.
[0099] Furthermore, after processing the first scene screen to obtain the third scene screen, it is not necessary to continue processing the first scene screen, but to process the fourth scene screen corresponding to the aiming reticle in the third scene screen. Since the fourth scene screen is, for example, a part of the third scene screen, the number of scene screens that need to be processed is relatively small, and for example, it is not necessary to process the first scene screen two or more times, thereby saving hardware and computing resources of the terminal device that displays the game screen and improving the display speed of the game screen.
[0100] For example, when the image inside the aiming scope (reference scene screen) is 20 times the magnification of the first scene screen, and the image outside the aiming scope (scene screens other than the second scene screen in the first scene screen) is 1 times the magnification of the first scene screen, the difference in magnification between the images inside and outside the scope is relatively large, resulting in a relatively large difference in clarity between the images inside and outside the scope, and furthermore, the displayed image inside the scope becomes blurry. When the image inside the aiming scope (reference scene screen) is 20 times the magnification of the first scene screen, and the image outside the aiming scope (scene screens other than the fourth scene screen in the third scene screen) is 16 times the magnification of the first scene screen, the difference in magnification between the images inside and outside the scope is small, resulting in a relatively small difference in clarity between the images inside and outside the scope, and furthermore, the displayed image inside the scope becomes relatively clear.
[0101] Method for acquiring the second type of reference scene screen: Based on the magnification of the aiming reticle, the first image coordinate of the aiming reticle's center point, and the fourth image coordinate of each pixel point in the second scene screen, the pixel information of each pixel point in the second scene screen is adjusted to obtain the reference scene screen. The second scene screen is the screen corresponding to the aiming reticle in the first scene screen.
[0102] The implementation process for the second type of reference scene screen acquisition method is similar to that for the first type of processing method described above, and will not be explained in detail again here.
[0103] Method for acquiring the third type of reference scene screen: The second scene screen is stretched based on the magnification of the aiming scope to obtain the third target scene screen, and the third target scene screen is cropped to obtain the reference scene screen. The second scene screen is the screen corresponding to the aiming scope in the first scene screen.
[0104] Here, the size of the third target scene screen is the magnification factor of the second scene screen, the center point of the reference scene screen is the center point of the third target scene screen, and the size of the reference scene screen is the same as the size of the sight.
[0105] The implementation process for the third type of reference scene screen acquisition method is similar to that for the second type of processing method described above, and will not be explained in detail again here.
[0106] Figure 8 is a schematic diagram of the acquisition of a reference scene screen provided by an embodiment of the present application. In Figure 8, (1) is the first scene screen, (2) is the third target scene screen, and (3) is the reference scene screen.
[0107] One point that needs to be explained is that when acquiring a reference scene screen using the second type of reference scene screen acquisition method or the third type of reference scene screen acquisition method, it is first necessary to acquire the second scene screen. The process of acquiring the second scene screen is similar to the process of acquiring the fourth scene screen in the above process, and will not be explained in detail again here.
[0108] A difference exists between the size of objects in the reference scene screen acquired by the second or third type of reference scene screen acquisition method and the size of objects in the first scene screen. Furthermore, when the reference scene screen is later displayed within the scope of the aiming reticle, and a scene screen other than the second scene screen in the first scene screen is displayed outside the scope of the aiming reticle, the difference between the inside and outside of the scope is realized. Moreover, processing is performed only on the second scene screen corresponding to the aiming reticle in the first scene screen (or it is not necessary to process the entire first scene screen), saving hardware and computing resources of the terminal device displaying the game screen and improving the display speed of the game screen.
[0109] In step 203, a second game screen is displayed, which includes a sighting scope, the sighting scope is turned on, the screen inside the sighting scope is a reference scene screen, and the screen outside the sighting scope is obtained based on the first scene screen.
[0110] Here, the size of an object included in the screen outside the scope is smaller than the size of an object included in the reference scene screen; that is, the size of an object included in the screen outside the scope is smaller than the size of an object included in the screen inside the scope.
[0111] In one possible implementation method, when the reference scene screen is acquired by the second type of reference scene screen acquisition method or the third type of reference scene screen acquisition method described above, the screen outside the scope of the sight is a screen other than the second scene screen in the first scene screen. Figure 9 is a schematic diagram of the display of the second game screen provided by the embodiment of the present invention. In the second game screen, the scope 901 is displayed, the scope 901 is in the ON state, the screen inside the scope of the sight is the reference scene screen 902, and the screen outside the scope of the sight is a screen other than the second scene screen in the first scene screen.
[0112] Alternatively, when the reference scene screen is acquired by the first type of reference scene screen acquisition method in step 202 above, the screen outside the scope is a screen other than the fourth scene screen in the third scene screen. Here, the third scene screen is obtained by adjusting the first scene screen, and the process of acquiring the third scene screen has already been described in step 202 above and will not be described in detail again here. Figure 10 is a schematic diagram of the display of another second game screen provided by an embodiment of the present invention. In the second game screen, the scope 1001 is displayed, the scope 1001 is in the ON state, the screen inside the scope is the reference scene screen 1002, and the screen outside the scope is a screen other than the fourth scene screen in the third scene screen.
[0113] Optionally, the second game screen further includes a conversion control component, which is displayed in a first form, and is used to indicate that the sight displayed on the second game screen is turned on. For example, the conversion control component being displayed in the first form means that the conversion control component is displayed in gray. Of course, the second game screen may further include other control components, and the embodiments of the present application are not limited thereto.
[0114] The above method, after receiving a trigger operation on the conversion control component, performs an enlargement process on the second scene screen corresponding to the aiming reticle in the first scene screen to obtain a reference scene screen. As a result, the size of objects included in the reference screen is larger than the size of objects included in the first scene screen, and the second game screen is displayed. In the second game screen, the screen inside the aiming reticle is the reference scene screen, and the screen outside the aiming reticle is determined based on the first scene screen. The size of objects included in the screen inside the aiming reticle is larger than the size of objects included in the screen outside the aiming reticle. Furthermore, the magnification ratio of the screen inside and outside the aiming reticle is made different, achieving differentiation between the inside and outside of the aiming reticle, further improving the display effect of the game screen, and thereby enhancing the game experience of game objects. Moreover, in some implementation methods, it is only necessary to process the second scene screen corresponding to the aiming reticle in the first scene screen, so the computational amount of the scene screen is relatively small, the performance requirements of the terminal device displaying the game screen are relatively low, and resources can be saved.
[0115] The embodiments of the present application provide a method for displaying a game screen, which can be applied to the above-described implementation environment. Taking the flowchart of the method for displaying a game screen provided by the embodiments of the present application shown in Figure 11 as an example, the method can be executed by the terminal device 101 in Figure 1. As shown in Figure 11, the method includes the following steps 1101 to 1102.
[0116] In step 1101, the first game screen is displayed, which includes the first scene screen, a sighting scope, and a transformation control component. The sighting scope is in the off state, and the transformation control component is used to perform state transformations on the sighting scope.
[0117] In one possible implementation, the process of displaying the first game screen is similar to the process in step 201 above and will not be described in detail again here.
[0118] In step 1102, in response to a trigger operation on the conversion control component, a second game screen is displayed, the second game screen includes a sighting scope, the sighting scope is in the ON state, the screen inside the sighting scope includes a reference scene screen, the magnification of objects included in the screen outside the sighting scope is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
[0119] In one possible implementation, the process of displaying the second game screen is similar to the process in step 203 above and will not be described in detail again here. Here, the magnification of an object included in the screen outside the scope is obtained based on the size of the object included in the screen outside the scope and the size of the object included in the first scene screen. For example, the magnification of an object included in the screen outside the scope is the quotient between the size of the object included in the screen outside the scope and the size of the object included in the first scene screen. The magnification of an object included in the reference scene screen is obtained based on the size of the object included in the reference scene screen and the size of the object included in the first scene screen. For example, the magnification of an object included in the reference scene screen is the quotient between the size of the object included in the reference scene screen and the size of the object included in the first scene screen. Exemplarily, the magnification of an object included in the first scene screen is 1. The size of an object included in the screen outside the scope is smaller than the size of an object included in the reference scene screen, and the size of an object included in the reference scene screen is larger than the size of an object included in the first scene screen.
[0120] Selectively, the magnification of objects in the second game screen that are outside the scope of the sight is greater than the magnification of objects in the first scene screen, or the magnification of objects in the second game screen that are outside the scope of the sight is equal to the magnification of objects in the first scene screen. The size of objects in the second game screen that are outside the scope of the sight is greater than the size of objects in the first scene screen, or the size of objects in the second game screen that are outside the scope of the sight is equal to the size of objects in the first scene screen.
[0121] In one possible implementation, the second game screen further includes a directional control component, which is used to adjust the displayed game screen. After displaying the second game screen, in response to a trigger operation on the directional control component, the third game screen is displayed, the third game screen includes a sighting scope, the sighting scope is in the ON state, the screen inside the sighting scope includes a fifth scene screen, the magnification of objects included in the screen outside the sighting scope in the third game screen is less than the magnification of objects included in the fifth scene screen, and the magnification of objects included in the fifth scene screen is the same as the magnification of objects included in the reference scene screen. The magnification of objects included in the screen outside the sighting scope in the third game screen is the same as the magnification of objects included in the screen outside the sighting scope in the second game screen.
[0122] For example, the fifth scene screen is the scene screen located on the side indicated by the direction control component of the reference scene screen, or the fifth scene screen is the scene screen in the direction indicated by the direction control component. For instance, if the direction indicated by the direction control component in the second game screen is to the left, then the screen in the scope of the third game screen (i.e., the fifth scene screen) is the scene screen located to the left of the reference scene screen.
[0123] Selectively, the second game screen further includes a conversion control component, which is displayed in the first form, or the second game screen further includes a conversion control component in the first form, which is used to indicate that the sight included in the second game screen is in the ON state. After displaying the second game screen, in response to a trigger operation on the conversion control component, the first game screen is displayed, and the conversion control component displayed on the first game screen is displayed in the second form, or the first game screen includes a conversion control component in the second form, which is used to indicate that the sight included in the first game screen is in the OFF state. Embodiments of the present application are not limited to the first and second forms. Exemplarily, the conversion control component being displayed in the first form means that the conversion control component is displayed in gray, and the conversion control component being displayed in the second form means that the conversion control component is displayed in white.
[0124] The above method, after receiving a trigger operation on the conversion control component, ensures that in the second game screen displayed, the magnification of objects contained within the reticle's mirror is greater than the magnification of objects contained outside the reticle's mirror. Furthermore, by ensuring that the magnification ratios of the screen inside and outside the reticle's mirror are different, differentiation between the inside and outside of the reticle's mirror is achieved, further improving the display effect of the game screen and thereby enhancing the game experience of game objects.
[0125] Figure 12 is a flowchart of a method for obtaining a reference scene screen provided by an embodiment of the present application. As shown in Figure 12, the method includes the following steps.
[0126] Step 1201: Adjust the first scene screen to obtain the third scene screen.
[0127] In one possible implementation, the size of the objects in the third scene is larger than the size of the objects in the first scene, the size of the third scene is a reference magnification factor of the size of the first scene, and the reference magnification factor is determined based on the magnification factor of the aiming scope.
[0128] Step 1202: Determine the fourth scene screen that corresponds to the aiming scope in the third scene screen.
[0129] In one possible implementation, the fourth scene screen is part of the third scene screen.
[0130] Step 1203: Determine the reference magnification based on the magnification of the aiming scope.
[0131] Step 1204: Obtain the first image coordinates of the center point of the aiming scope, and the second image coordinates of each pixel point in the fourth scene screen.
[0132] Step 1205: Determine the 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.
[0133] Step 1206: Based on the target offset vector for each pixel point and the second image coordinate for each pixel point, determine the third image coordinate after the offset for each pixel point.
[0134] Step 1207: Based on the existence of a reference pixel point among multiple pixel points that has the same third image coordinate after offset as any of the other pixel points, the pixel information of the reference pixel point is adjusted to match the pixel information of any of the other pixel points, the multiple pixel points are traversed, and a reference scene screen is obtained.
[0135] The implementation methods for steps 1201 to 1207 above have already been described in step 202, and will not be explained in detail again here.
[0136] Figure 13 shows a schematic diagram of the structure of a game screen display device provided by an embodiment of the present application, and as shown in Figure 13, the device is A display module 1301 used to display a first game screen, the first game screen including a first scene screen, a sighting scope, and a conversion control component, wherein the sighting scope is in an off state, and the conversion control component is used to perform a state conversion on the sighting scope, the display module 1301 and It includes a processing module 1302 used to process a first scene screen and obtain a reference scene screen in response to a trigger operation on a conversion control component, based on the magnification of the aiming scope, The display module 1301 is further used to display a second game screen, the second game screen includes a sighting scope, the sighting scope is in the ON state, the screen inside the sighting scope includes a reference scene screen, the screen outside the sighting scope is obtained based on the first scene screen, and the size of objects included in the screen outside the sighting scope is smaller than the size of objects included in the reference scene screen.
[0137] In one possible implementation, the processing module 1302 is used to respond to a trigger operation on a conversion control component by adjusting a first scene screen to obtain a third scene screen, wherein the size of objects included in the third scene screen is larger than the size of objects included in the first scene screen, and to process a fourth scene screen corresponding to the aiming reticle in the third scene screen based on the magnification of the aiming reticle to obtain a reference scene screen, wherein the size of objects included in the reference scene screen is larger than the size of objects included in the fourth scene screen, and the screen outside the aiming reticle is a screen other than the fourth scene screen in the third scene screen.
[0138] In one possible implementation, the processing module 1302 is used to determine a reference magnification based on the magnification of the aiming scope, wherein the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen; to obtain the first image coordinate of the center point of the aiming scope and the second image coordinate of each pixel point in the fourth scene screen; and to adjust the pixel information of each pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point to obtain the reference scene screen.
[0139] In one possible implementation, the processing module 1302 is used to determine the offset third image coordinate of each pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point, and to adjust the pixel information of the reference pixel point to the pixel information of any of the pixel points, based on the fact that for any of the multiple pixel points there exists a reference pixel point whose offset third image coordinate is the same as that of any of the multiple pixel points, traverse the multiple pixel points, and obtain a reference scene screen.
[0140] In one possible implementation, the processing module 1302 determines a target offset vector for any of the multiple pixel points based on a reference magnification factor, a first image coordinate, and a second image coordinate of the pixel point, wherein the target offset vector for any of the pixel points is used to indicate the offset between the second image coordinate of the pixel point and the image coordinate after the pixel point has been magnified according to the reference magnification factor, and the target offset vector for any of the pixel points includes a first offset value in a first direction and a second offset value in a second direction of the pixel point, and determines a third image coordinate after the offset of any of the pixel points based on the second image coordinate of the pixel point, the first offset value in a first direction, and the second offset value in a second direction of the pixel point.
[0141] In one possible implementation, the processing module 1302 is used to determine 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, and to determine the target offset vector of any pixel point according to one of the following methods: a method in which the reference offset vector of any pixel point is set as the target offset vector of any pixel point based on the reference offset vector of any pixel point, or a method in which the target offset vector of any pixel point is determined based on the reference offset vector of any pixel point.
[0142] In one possible implementation, the processing module 1302 is used to determine an encoded intermediate vector for any pixel point based on the reference offset vector of any pixel point, and to determine a target offset vector for any pixel point based on the encoded intermediate vector of any pixel point, wherein the encoded intermediate vector is a vector obtained by normalizing the reference offset vector, or to determine a target offset vector for any pixel point based on a fifth offset value and a sixth offset value included in the reference offset vector of any pixel point, wherein the fifth offset value is the offset value in the first direction of any pixel point, and the sixth offset value is the offset value in the second direction of any pixel point.
[0143] In one possible implementation, the encoded intermediate vector of any pixel point includes a third offset value in the first direction and a fourth offset value in the second direction of any pixel point.
[0144] The processing module 1302 is used to perform encoding on the third offset value to obtain a first binary number, and to perform encoding on the fourth offset value to obtain a second binary number, wherein the number of digits of the first binary number and the second binary number are the same; to obtain the third binary number and the fourth binary number based on the first binary number, and to obtain the fifth binary number and the sixth binary number based on the second binary number; and to determine the target offset vector of any pixel point based on the third binary number, the fourth binary number, the fifth binary number, and the sixth binary number.
[0145] In one possible implementation, the processing module 1302 is used to decode a third binary number to obtain a first number, decode a fourth binary number to obtain a second number, decode a fifth binary number to obtain a third number, decode a sixth binary number to obtain a fourth number, and determine a target offset vector for any pixel point based on the first, second, third, and fourth numbers.
[0146] In one possible implementation, the processing module 1302 is used to determine a reference magnification based on the magnification of the aiming scope, wherein the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen; to stretch the fourth scene screen based on the reference magnification to obtain a first target scene screen, wherein the size of the first target scene screen is the reference magnification multiple of the size of the fourth scene screen; and to crop the first target scene screen to obtain a reference scene screen, wherein the center point of the reference scene screen is the center point of the first target scene screen, and the size of the reference scene screen is the same as the size of the screen in the aiming scope's mirror.
[0147] In one possible implementation, the processing module 1302 is used to determine a target area with the center point of the first target scene screen as the center and the target length as the radius, where the target length is the radius of the aiming scope, and to designate the scene screen covered by the target area in the first target scene screen as the reference scene screen.
[0148] In one possible implementation, the processing module 1302 is further used to determine a reference area centered on the center point of the third scene screen and with the target length as its radius, where the target length is the radius of the aiming scope, and to define the scene screen covered by the reference area in the third scene screen as the fourth scene screen.
[0149] In one possible implementation, the processing module 1302 is used to obtain a first viewpoint corresponding to a first scene screen and the magnification of the aiming reticle, to determine a second viewpoint based on the first viewpoint and the magnification of the aiming reticle, for example, the second viewpoint being a viewpoint corresponding to the target magnification corresponding to the magnification of the aiming reticle, and to adjust the first scene screen based on the second viewpoint to obtain a third scene screen.
[0150] In one possible implementation, the processing module 1302 is used to determine a target magnification corresponding to the magnification of the aiming scope, wherein the target magnification is the magnification of the third scene screen relative to the first scene screen; to determine a reference value based on the first viewpoint; to determine a target value based on the reference value and the target magnification; and to determine a second viewpoint based on the target value.
[0151] In one possible implementation, the processing module 1302 is used to determine a target magnification corresponding to the magnification of the aiming scope, where the target magnification is the magnification of the third scene screen relative to the first scene screen; to stretch the first scene screen based on the target magnification to obtain a second target scene screen, where the size of the second target scene screen is the target magnification multiple of the size of the first scene screen; and to crop the second target scene screen to obtain a third scene screen, where the center point of the third scene screen is the center point of the second target scene screen, and for example, the size of the third scene screen is the same as the size of the first scene screen.
[0152] In one possible implementation, the processing module 1302 is used to respond to a trigger operation on the conversion control component by adjusting the pixel information of each pixel point in the second scene screen based on the magnification of the aiming mirror, the first image coordinate of the center point of the aiming mirror, and the fourth image coordinate of each pixel point in the second scene screen to obtain a reference scene screen, or to respond to a trigger operation on the conversion control component by stretching the second scene screen based on the magnification of the aiming mirror to obtain a third target scene screen, and then cropping the third target scene screen to obtain a reference scene screen, where the second scene screen is the scene screen corresponding to the aiming mirror in the first scene screen, and the screen outside the aiming mirror is the screen in the first scene screen other than the second scene screen.
[0153] The above device, after receiving a trigger operation on the scope-on control component, performs a magnification process on the first scene screen to obtain a reference scene screen and displays the second game screen. In the second game screen, the screen inside the reticle is the reference scene screen, and the screen outside the reticle is determined based on the first scene screen. The size of objects included in the screen inside the reticle is larger than the size of objects included in the screen outside the reticle. Furthermore, the magnification ratios of the screen inside and outside the reticle are different, thereby differentiating the screen inside and outside the reticle, further improving the display effect of the game screen, and thereby enhancing the game experience of game objects. For example, in some implementations, it is only necessary to process the second scene screen corresponding to the reticle in the first scene screen, so the computational amount of the scene screen is relatively small, the performance requirements of the terminal equipment displaying the game screen are relatively low, and resources can be saved.
[0154] Figure 14 shows a schematic diagram of the structure of a game screen display device provided by an embodiment of the present application, and as shown in Figure 14, the device is A display module 1401 used to display a first game screen, the first game screen includes a first scene screen, a sighting scope, and a conversion control component, wherein the sighting scope is in an off state, and the conversion control component is used to perform a state conversion on the sighting scope, the display module 1401 includes, The display module 1401 is further used to display a second game screen in response to a trigger operation on the conversion control component, the second game screen includes a sighting scope, the sighting scope is in the ON state, the screen inside the sighting scope includes a reference scene screen, the magnification of objects included in the screen outside the sighting scope is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
[0155] In one possible implementation, the magnification of an object in the out-of-scope field of view in the second game screen is greater than the magnification of an object in the first scene screen, or the magnification of an object in the out-of-scope field of view in the second game screen is equal to the magnification of an object in the first scene screen.
[0156] In one possible implementation, the second game screen further includes a directional control component, which is used to adjust the displayed game screen. The display module 1401 is further used to display a third game screen in response to a trigger operation on the direction control component, the third game screen includes a sighting scope, the sighting scope is in the ON state, the screen in the sighting scope includes a fifth scene screen, the magnification of objects included in the screen outside the sighting scope on the third game screen is less 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, the fifth scene screen is a scene screen on the side of the direction indicated by the direction control component of the reference scene screen, or the fifth scene screen is a scene screen in the direction indicated by the direction control component.
[0157] In one possible implementation, the second game screen further includes a scope-on control component, which is displayed in the first form, or the second game screen further includes a conversion control component in the first form, which is used to indicate that the sight displayed on the second game screen is in the on state.
[0158] The display module 1401 is further used to display a first game screen in response to a trigger operation on the conversion control component, the scope-on control component displayed on the first game screen is displayed in a second form, or the first game screen includes a conversion control component in a second form, the second form is used to indicate that the sight included in the first game screen is in an off state.
[0159] The above device, after receiving a trigger operation on the scope-on control component, displays a second game screen where the magnification of objects within the scope's mirror is greater than the magnification of objects outside the scope's mirror. Furthermore, it ensures that the magnification of the screen within and outside the scope's mirror are different, thereby differentiating the screen within and outside the scope's mirror, improving the display effect of the game screen, and thereby enhancing the game experience of game objects.
[0160] It should be understood that, while the above-described apparatus was explained using only the division of each functional module as an example when realizing its functions, in actual applications, the above functions can be completed by assigning them to different functional modules as needed. That is, all or some of the functions described above can be completed by dividing the internal structure of the device into different functional modules. Furthermore, the apparatus provided in the above embodiment belongs to the same concept as the embodiment of the method, and its specific implementation process is not described in detail here, as it should be referred to in detail in the embodiment of the method.
[0161] Figure 15 shows a structural block diagram of a terminal device 1500 provided by one exemplary embodiment of the present invention. The terminal device 1500 may be a portable mobile terminal, such as a smartphone, tablet PC, MP3 player (Moving Picture Experts Group Audio Layer III), MP4 player (Moving Picture Experts Group Audio Layer IV), notebook computer, or desktop computer. The terminal device 1500 may also be referred to by other names such as user device, portable terminal, laptop terminal, and desktop terminal.
[0162] Typically, terminal equipment 1500 includes a processor 1501 and memory 1502.
[0163] The processor 1501 may include one or more processing cores, such as a 4-core processor and an 8-core processor. The processor 1501 can be implemented using at least one hardware form from among DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor 1501 may include a main processor and a coprocessor, the main processor being a processor used to process data in a wake state and also called a CPU (Central Processing Unit), and the coprocessor being a low-power processor used to process data in a standby state. In some embodiments, the processor 1501 may integrate a GPU (Graphics Processing Unit), which is used to render and draw content that needs to be displayed on a display screen. In some embodiments, the processor 1501 may further include an AI (Artificial Intelligence) processor, which is used to process computational operations related to machine learning.
[0164] The memory 1502 may include one or more non-temporary computer-readable storage media, which may be non-transitional (or non-temporary). The memory 1502 may further include high-speed random-access memory and non-volatile memory, such as one or more magnetic disk storage devices and flash memory storage devices. In some embodiments, the non-transitional computer-readable storage media in the memory 1502 are used to store at least one instruction, which is executed by the processor 1501 to realize the method of displaying a game screen provided by embodiments of the method of the present invention.
[0165] In some embodiments, the terminal device 1500 further optionally includes a peripheral device port 1503 and at least one peripheral device. A processor 1501 and memory 1502 can be connected to the peripheral device port 1503 via a bus or signal lines. Each peripheral device can be connected to the peripheral device port 1503 via a bus, signal lines, or circuit board. Exemplarily, the peripheral device includes a display screen 1505.
[0166] The peripheral port 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, memory 1502, and peripheral port 1503 are integrated on the same chip or circuit board, and in some other embodiments, any one or two of the processor 1501, memory 1502, and peripheral port 1503 can be implemented on a single chip or circuit board, and this embodiment is not limited thereto.
[0167] The display screen 1505 is used to display a UI (User Interface). The UI may include shapes, text, icons, videos, and any combination thereof. When the display screen 1505 is a touch display screen, the display screen 1505 further has the ability to collect touch signals on or above the surface of the display screen 1505. These touch signals can be input to the processor 1501 as control signals for processing. In this case, the display screen 1505 can further be used to provide virtual buttons, also called soft buttons and / or soft keyboards, and / or virtual keyboards. In some embodiments, the display screen 1505 may be a single screen mounted on the front panel of the terminal device 1500; in some other embodiments, the display screen 1505 may be at least two screens mounted on different surfaces of the terminal device 1500, or designed to be foldable; and in some other embodiments, the display screen 1505 may be a flexible display screen mounted on a curved surface or a foldable surface of the terminal device 1500. Furthermore, the display screen 1505 may be mounted on a non-rectangular, irregular shape, i.e., a non-rectangular screen. The display screen 1505 can be manufactured using materials such as LCD (Liquid Crystal Display) and OLED (Organic Light-Emitting Diode).
[0168] As those skilled in the art will understand, the structure shown in Figure 15 is not limited to the terminal device 1500 and may include more or fewer components than those shown, or may be a combination of certain components, or may use a different arrangement of components.
[0169] Figure 16 is a schematic diagram of the structure of a server provided by an embodiment of the present invention. The server 1600 can vary considerably due to differences in configuration or performance, and may include one or more processors (Central Processing Units, CPUs) 1601 and one or more memories 1602, where at least one program code is stored in the one or more memories 1602, and this at least one program code is loaded and executed by the one or more processors 1601 to realize the game screen display method provided by each embodiment of the above method. Of course, the server 1600 may have components such as wired or wireless network ports, a keyboard, and input / output ports, thereby performing input and output, and the server 1600 may further include other components used to realize device functions, which will not be described in detail here.
[0170] In an exemplary embodiment, a non-temporary computer-readable storage medium is further provided, wherein at least one program code is stored in the non-temporary computer-readable storage medium, and the at least one program code is loaded and executed by a processor to enable a computer to display any of the above-described game screens.
[0171] The non-temporary computer-readable storage medium may optionally include read-only memory (ROM), random access memory (RAM), compact disc read-only memory (CD-ROM), magnetic tape, floppy disk, and optical data storage devices.
[0172] In an exemplary embodiment, a computer program or computer program product is further provided, wherein at least one computer instruction is stored in the computer program or computer program product, and the at least one computer instruction is loaded and executed by a processor, thereby causing the computer to realize any of the above-mentioned methods for displaying a game screen.
[0173] It is important to explain that the information (including, but not limited to, user device information and user personal information), data (including, but not limited to, data for analysis, data for storage, and data for presentation), and signals related to this application are all authorized by the user or fully authorized by each party, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. For example, the first game screen related to this application was obtained only if fully authorized.
[0174] It should be understood that “plural” as used herein refers to two or more. “And / or” describes the relationship between related objects and indicates that three relationships are possible; for example, A, and / or, B can indicate three situations: A existing alone, A and B existing together, and B existing alone. The letter “ / ” generally indicates that the preceding and succeeding related objects are in an “or” relationship.
[0175] The numbering of the embodiments in the present application above is for descriptive purposes only and does not imply any superiority or inferiority among the embodiments.
[0176] The foregoing are merely exemplary embodiments of the present application and are not intended to limit it. Any modifications, equivalent substitutions, and improvements made within the principles of the present application should all be included within the scope of protection. [Explanation of Symbols]
[0177] 101 Terminal equipment 102 Servers 301 First Scene Screen 302 Sight 303 Conversion control component 304 Virtual Tools 305 Launch Control Components 306 Jump control component 307 Control Components 308 Control Components 309 Directional control components 901 Sight 902 Reference Scene Screen 1001 Aiming scope 1002 Reference Scene Screen 1301 Display Module 1302 Processing Module 1401 Display Module 1500 terminal devices 1501 Processor 1502 memory 1503 Peripheral Ports 1505 Display Screen 1600 Servers 1601 Processor 1602 memory
Claims
1. A method for displaying a game screen, wherein the method is performed by a terminal device, and the method is A step of displaying a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror. The steps include: In response to a trigger operation on the conversion control component, processing the first scene screen based on the magnification of the aiming scope to obtain a reference scene screen; A method for displaying a game screen, comprising the step of displaying a second game screen, wherein the second game screen includes the aiming mirror, the aiming mirror is in an ON state, the screen in the mirror of the aiming mirror includes the reference scene screen, the screen outside the mirror of the aiming mirror is obtained based on the first scene screen, and the size of the objects included in the screen outside the mirror of the aiming mirror is smaller than the size of the objects included in the reference scene screen.
2. The step of processing the first scene screen and obtaining a reference scene screen based on the magnification of the aiming scope in response to a trigger operation on the conversion control component is as follows: A step of adjusting the first scene screen in response to a trigger operation on the conversion control component to obtain a third scene screen, wherein the size of the objects included in the third scene screen is larger than the size of the objects included in the first scene screen. The method according to claim 1, comprising the steps of processing a fourth scene screen corresponding to the aiming mirror in the third scene screen based on the magnification of the aiming mirror to obtain a reference scene screen, wherein the size of the objects included in the reference scene screen is greater than the size of the objects included in the fourth scene screen, and the screen outside the aiming mirror is a screen in the third scene screen other than the fourth scene screen.
3. The step of processing the fourth scene screen corresponding to the aiming scope in the third scene screen based on the magnification of the aiming scope, and obtaining the reference scene screen, is: A step of determining a reference magnification based on the magnification of the aiming scope, wherein the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen. The steps include obtaining the first image coordinates of the center point of the aiming mirror and the second image coordinates of each pixel point in the fourth scene screen, The method according to claim 2, comprising the step 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 the reference scene screen.
4. The step 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 the reference scene screen is as follows: A step of determining the offset third image coordinate of each pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point, The method according to claim 3, comprising the steps of: adjusting the pixel information of a reference pixel point to the pixel information of any of the pixel points based on the existence of a reference pixel point among the plurality of pixel points whose third image coordinates are the same as those of any of the pixel points after an offset; traversing the plurality of pixel points; and obtaining the reference scene screen.
5. The step of determining the offset third image coordinate of each pixel point based on the reference magnification, the first image coordinate, and the second image coordinate of each pixel point is as follows: A step of determining a target offset vector for any of the plurality of pixel points based on the reference magnification, the first image coordinate, and the second image coordinate of the pixel point, wherein the target offset vector for the pixel point is used to indicate the offset between the second image coordinate of the pixel point and the image coordinate after the pixel point has been magnified according to the reference magnification, and the target offset vector for the pixel point includes a first offset value in a first direction and a second offset value in a second direction of the pixel point. The method according to claim 4, comprising the step of determining a third image coordinate after offsetting the pixel point based on the second image coordinate of any of the pixel points, a first offset value of any of the pixel points in a first direction, and a second offset value in a second direction.
6. The step of determining the target offset vector of any of the pixel points based on the reference magnification, the first image coordinates, and the second image coordinates of any of the pixel points is as follows: A step of determining the reference offset vector of any of the pixel points based on the reference magnification, the first image coordinates, and the second image coordinates of any of the pixel points, Based on the reference offset vector of any of the aforementioned pixel points, A method in which the reference offset vector of any of the aforementioned pixel points is used as the target offset vector of any of the aforementioned pixel points. The method according to claim 5, comprising the step of determining the target offset vector of any of the pixel points according to any of the methods, or a method of determining the target offset vector of any of the pixel points based on the reference offset vector of any of the pixel points.
7. The step of determining the target offset vector of any of the pixel points based on the reference offset vector of any of the pixel points is: A step of determining an encoded intermediate vector for any of the pixel points based on the reference offset vector of any of the pixel points, and determining a target offset vector for any of the pixel points based on the encoded intermediate vector of any of the pixel points, wherein the encoded intermediate vector is a vector obtained by normalizing the reference offset vector. The method according to claim 6, further comprising the step of determining a target offset vector for any of the pixel points based on a fifth offset value and a sixth offset value included in the reference offset vector of any of the pixel points, wherein the fifth offset value is an offset value in a first direction of any of the pixel points, and the sixth offset value is an offset value in a second direction of any of the pixel points.
8. The encoded intermediate vector of any of the aforementioned pixel points includes a third offset value in the first direction and a fourth offset value in the second direction of any of the aforementioned pixel points. The step of determining the target offset vector of any of the pixel points based on the encoded intermediate vector of any of the pixel points is: A step of performing an encoding process on the third offset value to obtain a first binary number, and a step of performing an encoding process on the fourth offset value to obtain a second binary number, wherein the number of digits of the first binary number and the second binary number are the same. The steps include obtaining a third binary number and a fourth binary number based on the first binary number, and obtaining a fifth binary number and a sixth binary number based on the second binary number, The method according to claim 7, comprising the step of determining a target offset vector for any of the pixel points based on the third binary value, the fourth binary value, the fifth binary value, and the sixth binary value.
9. The step of determining the target offset vector of any of the pixel points based on the third binary value, the fourth binary value, the fifth binary value, and the sixth binary value is: The steps include: decrypting the third binary number to obtain the first number; decrypting the fourth binary number to obtain the second number; decrypting the fifth binary number to obtain the third number; and decrypting the sixth binary number to obtain the fourth number. The method according to claim 8, comprising the step of determining a target offset vector for any of the pixel points based on the first numerical value, the second numerical value, the third numerical value, and the fourth numerical value.
10. The step of processing the fourth scene screen corresponding to the aiming scope in the third scene screen based on the magnification of the aiming scope, and obtaining the reference scene screen, is: A step of determining a reference magnification based on the magnification of the aiming scope, wherein the reference magnification is the magnification of the reference scene screen relative to the fourth scene screen. A step of stretching the fourth scene screen based on the aforementioned reference magnification ratio to obtain a first target scene screen, wherein the size of the first target scene screen is the reference magnification ratio of the size of the fourth scene screen, The method according to claim 2, comprising the step of cropping the first target scene screen to obtain the reference scene screen, wherein the center point of the reference scene screen is the center point of the first target scene screen, and the size of the reference scene screen is the same as the size of the screen in the mirror of the aiming scope.
11. The step of extracting the first target scene screen to obtain the reference scene screen is: A step of determining a target area with the center point of the first target scene screen as the center and the target length as the radius, wherein the target length is the radius of the aiming scope, The method according to claim 10, comprising the step of making the scene screen covered by the target region in the first target scene screen the reference scene screen.
12. Before the step of processing the fourth scene screen corresponding to the aiming scope in the third scene screen based on the magnification of the aiming scope and obtaining the reference scene screen, the method: A step of determining a reference area with the center point of the third scene screen as the center and the target length as the radius, wherein the target length is the radius of the aiming scope, The method according to any one of claims 2 to 11, further comprising the step of making the scene screen covered by the reference region in the third scene screen the fourth scene screen.
13. The step of adjusting the first scene screen to obtain the third scene screen is, The steps include obtaining a first viewpoint corresponding to the first scene screen and the magnification of the aiming scope, A step of determining a second viewpoint based on the first viewpoint and the magnification of the aiming scope, The method according to any one of claims 2 to 11, comprising the step of adjusting the first scene screen based on the second viewpoint to obtain the third scene screen.
14. The step of determining a second viewpoint based on the first viewpoint and the magnification of the aiming scope is: A step of determining a target magnification corresponding to the magnification of the aiming scope, wherein the target magnification is the magnification of the third scene screen relative to the first scene screen. Based on the first perspective described above, the steps are to determine the reference value and A step of determining a target value based on the aforementioned reference value and the aforementioned target magnification factor, The method according to claim 13, comprising the step of determining the second viewpoint based on the target numerical value.
15. The step of adjusting the first scene screen to obtain the third scene screen is, A step of determining a target magnification corresponding to the magnification of the aiming scope, wherein the target magnification is the magnification of the third scene screen relative to the first scene screen. A step of stretching the first scene screen based on the target magnification ratio to obtain a second target scene screen, wherein the size of the second target scene screen is the target magnification ratio of the size of the first scene screen, The method according to any one of claims 2 to 11, comprising the step of cropping the second target scene screen to obtain the third scene screen, wherein the center point of the third scene screen is the center point of the second target scene screen.
16. The step of processing the first scene screen and obtaining a reference scene screen based on the magnification of the aiming scope in response to a trigger operation on the conversion control component is as follows: In response to a trigger operation on the conversion control component, the pixel information of each pixel point in the second scene screen is adjusted based on the magnification of the aiming mirror, the first image coordinate of the center point of the aiming mirror, and the fourth image coordinate of each pixel point in the second scene screen, thereby obtaining the reference scene screen. Alternatively, the process includes the steps of responding to a trigger operation on the conversion control component, stretching the second scene screen based on the magnification of the aiming scope to obtain a third target scene screen, cropping the third target scene screen to obtain the reference scene screen, The method according to claim 1, wherein the second scene screen is a scene screen corresponding to the aiming mirror in the first scene screen, and the screen outside the aiming mirror is a screen other than the second scene screen in the first scene screen.
17. A method for displaying a game screen, wherein the method is performed by a terminal device, and the method is A step of displaying a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror. A method for displaying a game screen, comprising the steps of: displaying a second game screen in response to a trigger operation on the conversion control component, wherein the second game screen includes the aiming mirror, the aiming mirror is in an ON state, the screen in the mirror of the aiming mirror includes a reference scene screen, the magnification of objects included in the screen outside the mirror of the aiming mirror is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
18. The method according to claim 17, wherein the magnification of an object included in the screen outside the scope of the aiming mirror in the second game screen is greater than the magnification of an object included in the first scene screen, or the magnification of an object included in the screen outside the scope of the aiming mirror in the second game screen is equal to the magnification of an object included in the first scene screen.
19. The second game screen further includes a direction control component, which is used to adjust the displayed game screen. After the step of displaying the second game screen, the method, The method according to claim 17 or 18, further comprising the step of displaying a third game screen in response to a trigger operation on the direction control component, wherein the third game screen includes the sighting mirror, the sighting mirror is in an ON state, the screen in the sighting mirror includes a fifth scene screen, the magnification of an object included in the screen out of the sighting mirror on the third game screen is less than the magnification of an object included in the fifth scene screen, the magnification of an object included in the fifth scene screen is the same as the magnification of an object included in the reference scene screen, and the fifth scene screen is a scene screen in the direction indicated by the direction control component.
20. The second game screen further includes the first form of the conversion control component, the first form being used to indicate that the aiming reticle included in the second game screen is in the ON state. After the step of displaying the second game screen, the method, The method according to claim 17 or 18, further comprising the step of displaying the first game screen in response to a trigger operation on the conversion control component, wherein the first game screen includes a second form of the conversion control component, the second form being used to indicate that the aiming reticle included in the first game screen is in an off state.
21. A display device for a game screen, wherein the device is A display module used to display a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror. A processing module used to process the first scene screen and obtain a reference scene screen in response to a trigger operation on the conversion control component, based on the magnification of the aiming scope, wherein the size of the objects included in the reference scene screen is larger than the size of the objects included in the first scene screen, and includes: A display module is further used to display a second game screen, the second game screen includes the aiming mirror, the aiming mirror is in an ON state, the screen inside the aiming mirror includes the reference scene screen, the screen outside the aiming mirror is obtained based on the first scene screen, and the size of objects included in the screen outside the aiming mirror is smaller than the size of objects included in the reference scene screen, the display device for a game screen.
22. A display device for a game screen, wherein the device is A display module used to display a first game screen, wherein the first game screen includes a first scene screen, a sighting mirror, and a conversion control component, wherein the sighting mirror is in an off state, and the conversion control component is used to perform a state conversion on the sighting mirror, the display module includes A display module for a game screen, which is used to display a second game screen in response to a trigger operation on the conversion control component, wherein the second game screen includes the aiming mirror, the aiming mirror is in an ON state, the screen in the mirror of the aiming mirror includes a reference scene screen, the magnification of objects included in the screen outside the mirror of the aiming mirror is less than the magnification of objects included in the reference scene screen, and the magnification of objects included in the reference scene screen is greater than the magnification of objects included in the first scene screen.
23. An electronic device comprising a processor and a memory, wherein at least one program code is stored in the memory, and the at least one program code is loaded and executed by the processor, thereby enabling the electronic device to implement the method of displaying a game screen according to any one of claims 1 to 20.
24. A non-temporary computer-readable storage medium wherein at least one program code is stored in the non-temporary computer-readable storage medium, and the at least one program code is loaded and executed by a processor to cause a computer to realize the method of displaying a game screen according to any one of claims 1 to 20.
25. A computer program product wherein at least one computer instruction is stored in the computer program product, and the at least one computer instruction is loaded and executed by a processor, thereby causing a computer to realize the method of displaying a game screen according to 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
Accessory selection method in virtual environment, and its device, equipment, and computer program
JP2021520286A