Game picture rendering method and device, storage medium and electronic equipment

By converting the game's visual style using a pre-configured color space image table, the conflict between game performance and rendering effects is resolved, achieving high-quality game visual rendering and simplified operation.

CN115738256BActive Publication Date: 2026-07-31NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
NETEASE (HANGZHOU) NETWORK CO LTD
Filing Date
2022-12-07
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

Existing technologies struggle to enhance the richness of game rendering while maintaining game performance, and it is difficult for players to generate high-quality rendering effects by adjusting combinations of graphics parameters.

Method used

By using a pre-configured color space image table, three-dimensional color space information is encoded into a two-dimensional image. By searching and replacing pixel values, the game screen style can be changed, reducing storage space usage and improving rendering quality.

Benefits of technology

It reduces the game's performance consumption, improves the richness and rendering quality of the game's visual effects, simplifies the complexity of player operations, and generates a natural and realistic game visual style.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115738256B_ABST
    Figure CN115738256B_ABST
Patent Text Reader

Abstract

This disclosure provides a game rendering method, a game rendering apparatus, a computer storage medium, and an electronic device, relating to the field of computer graphics technology. The game rendering method includes providing a current game screen generated in a first style; in response to a rendering confirmation operation that enables a second style, determining a first pixel value for each pixel in the current game screen; for each pixel in the current game screen, searching for a second pixel value of the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color image table contains multiple pixels located by pixel values; and replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style. This disclosure can improve the richness of the rendered game screen while ensuring game performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer graphics technology, and in particular to a game screen rendering method, a game screen rendering device, a computer storage medium, and an electronic device. Background Technology

[0002] In current 3D game scenes, in order to provide players with a richer visual experience, the overall color tone and atmosphere of the game screen are usually rendered to obtain a specific style of game screen, such as a dreamy and romantic pink tone, a mysterious blue-purple tone, a mysterious black-green tone, and so on.

[0003] Currently, common game graphics rendering methods mainly include parameter adjustment and texture overlay. Parameter adjustment allows players to adjust any combination of graphics parameters to achieve the desired rendering effect, but this method struggles to produce high-quality results. Texture overlay, on the other hand, involves artists creating specific style textures beforehand and then layering them to achieve the desired rendering effect. However, this method limits the number of textures that can be overlaid, resulting in less visual richness and impacting game performance.

[0004] Therefore, how to balance game performance with the richness of game rendering visuals has become an urgent technical problem to be solved. Summary of the Invention

[0005] This disclosure provides a game rendering method, a game rendering device, a computer storage medium, and an electronic device, thereby improving the richness of the rendered game graphics while ensuring game performance.

[0006] In a first aspect, one embodiment of this disclosure provides a game screen rendering method, comprising: providing a current game screen generated in a first style mode; in response to a rendering confirmation operation that enables a second style mode, determining a first pixel value for each pixel in the current game screen; for each pixel in the current game screen, finding a second pixel value for the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color space image table contains a plurality of pixels located by pixel values; replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style mode for the current game screen.

[0007] Secondly, one embodiment of this disclosure provides a game screen rendering apparatus, the apparatus comprising: a screen generation module for providing a current game screen generated in a first style mode; a pixel determination module for determining a first pixel value of each pixel in the current game screen in response to a rendering confirmation operation that enables a second style mode; a pixel lookup module for finding, for each pixel in the current game screen, a second pixel value of the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color space image table contains a plurality of pixels located by pixel values; and a pixel replacement module for replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style mode for the current game screen.

[0008] Thirdly, one embodiment of this disclosure provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described game screen rendering method.

[0009] Fourthly, one embodiment of this disclosure provides an electronic device, including: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute the above-described game screen rendering method by executing the executable instructions.

[0010] The technical solution disclosed herein has the following beneficial effects:

[0011] The aforementioned game screen rendering method provides a current game screen generated in a first style. In response to a rendering confirmation operation that enables a second style, it determines the first pixel value of each pixel in the current game screen. For each pixel in the current game screen, it retrieves the second pixel value of the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value. The color space image table contains multiple pixels located by pixel values. The first pixel value of each pixel in the current game screen is replaced with the corresponding second pixel value to obtain the target game screen rendered in the second style. Firstly, this method uses a two-dimensional color image, which occupies less storage space, to store three-dimensional color space information. This reduces performance consumption during game execution. Furthermore, the color image contains various different color information, which enhances the richness of the game screen effects. This avoids the technical problems of high performance consumption and poor richness of generated game screen effects caused by the use of overlay textures in related technologies. Secondly, the color images are pre-configured, ensuring the quality of the generated game screen rendering. This avoids the technical problems in related technologies where players can arbitrarily adjust screen parameter combinations, leading to difficulties in generating high-quality game screen rendering and high operational complexity. Therefore, it ensures the quality of the generated game screen rendering while reducing player operational complexity. Thirdly, the overall style of the target game screen is determined based on the pixel values ​​of the current game screen using the first style method. This is more natural than directly overlaying textures, improving the realism of the target game screen.

[0012] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0013] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure. It is obvious that the drawings described below are merely some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.

[0014] Figure 1 This schematic diagram illustrates the system architecture of a game screen rendering system according to this exemplary embodiment;

[0015] Figure 2 This schematically illustrates a flowchart of a game screen rendering method in this exemplary embodiment;

[0016] Figure 3 This schematically illustrates a flowchart of a method for creating a color image table according to this exemplary embodiment;

[0017] Figure 4 This illustration schematically shows a diagram of an initial color image table constructed according to this exemplary embodiment;

[0018] Figure 5 This illustration schematically shows a construction of an intermediate color image table in this exemplary embodiment;

[0019] Figure 6 This schematically illustrates the intended color image representation under one hue parameter in this exemplary embodiment;

[0020] Figure 7 This schematically illustrates the intended color image representation under another hue parameter in this exemplary embodiment;

[0021] Figure 8 This schematic diagram illustrates the structure of a game screen rendering device in this exemplary embodiment.

[0022] Figure 9 This schematic diagram illustrates the structure of a game screen rendering device in this exemplary embodiment.

[0023] Figure 10 The schematic diagram illustrates the structure of an electronic device in this exemplary embodiment. Detailed Implementation

[0024] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.

[0025] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.

[0026] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.

[0027] The game screen rendering method provided by this exemplary embodiment can be applied to application scenarios that render the overall style of game screens. For example, in various current game scenarios, in order to provide players with richer game visual effects and an immersive gaming experience, the overall screen style of the current game is usually processed to match the current game scene. For example, when the game scene switches to a dark and mysterious forest, the current game screen effect is a black and green tone; or a pink tone to create a dreamy and romantic style, or a blue and purple tone to create a mysterious style, etc.

[0028] Currently, there are two main methods for processing the overall style of game graphics: one is parameter adjustment, and the other is texture overlay.

[0029] In the first parameter adjustment method, players can achieve the desired game visual effects by arbitrarily adjusting various combinations of graphics parameters. However, this method is difficult for players without an art background to achieve high-quality game graphics rendering, making it quite challenging to operate.

[0030] In the second method of overlaying textures, the textures are designed and provided to the player by the artists, thus ensuring high-quality rendering of the game visuals. However, a single texture occupies a large amount of memory, so as the number of overlayed textures increases, the consumption of game performance also increases; moreover, due to hardware limitations, the number of textures that can be overlaid is limited, thus affecting the richness of the game's rendered visuals.

[0031] This exemplary embodiment addresses the aforementioned problems and proposes a game screen rendering method. This method uses color space images of different styles predefined by game artists to form a color space image table. The method encodes three-dimensional color space information into two-dimensional images for storage, thereby reducing the consumption of game performance while ensuring the quality of the generated game screen rendering effect. Simultaneously, the color space image table contains a large amount of color information in various styles for players to choose from, improving the richness of the rendered game screen.

[0032] Figure 1 A system architecture diagram of a game screen rendering method provided in an exemplary embodiment of this disclosure is shown below. Figure 1 As shown, the game screen rendering system 100 includes a terminal device 101 and a server 102. The terminal device 101 provides a graphical user interface, which can display the game screen and various operation auxiliary controls that implement specific functions. The various operation auxiliary controls include at least a rendering start control for rendering the overall style of the game screen.

[0033] It should be understood that, Figure 1 In the system architecture shown, the number of terminal devices 101 and servers 102 is merely exemplary; more or fewer devices are within the scope of protection of this application. Furthermore, in the above example operating scenario, terminal devices can be personal computers, servers, PDAs, laptops, or any other computing devices with network connectivity. For example, server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.

[0034] The game rendering method provided in this embodiment can be executed on server 102, and correspondingly, the game rendering device is generally located on server 102. The game rendering method provided in this embodiment can also be executed on terminal device 101, and correspondingly, the game interaction device can also be located on terminal device 101. The game rendering method provided in this embodiment can also be partially executed on server 102 and partially executed on terminal device 101; correspondingly, some modules of the game rendering device can be located on server 102 and some modules can be located on terminal device 101.

[0035] For example, taking the execution of this game screen rendering method on terminal device 101 as an example, in an exemplary embodiment, when a player plays a game through terminal device 101, the current game screen generated in a first style can be provided through the graphical user interface of terminal device 101, where the first style corresponds to the normal display effect (basic display effect) of the game screen; when the player wants to adjust the overall color tone of the game screen to create a target game screen in a second style, the player can perform a rendering confirmation operation to enable the second style according to the rendering start control provided on the graphical user interface. In response to the rendering confirmation operation to enable the second style, terminal device 101 determines the first pixel value of each pixel in the current game screen. Then, for each pixel in the current game screen, terminal device 101 searches for the second pixel value at the location of the first pixel value from a pre-configured first target color image table according to the first pixel value; wherein, the color space image table contains multiple pixels located by pixel values; finally, the first pixel value of each pixel in the current game screen is replaced with the corresponding second pixel value to obtain the target game screen in the second style after rendering the current game screen.

[0036] However, those skilled in the art will readily understand that the above application scenarios are merely illustrative and are not intended to limit the scope of this exemplary embodiment.

[0037] The following example uses the aforementioned terminal device 101 as the execution subject, illustrating the application of this game screen rendering method to terminal device 101. (See also...) Figure 2 The game screen rendering method provided in this embodiment includes the following steps S201-S204:

[0038] Step S201: Generate the current game screen in the first style.

[0039] Step S202: In response to the rendering confirmation operation for enabling the second style mode, determine the first pixel value of each pixel in the current game screen.

[0040] Step S203: For each pixel in the current game screen, find the second pixel value of the pixel at the location of the first pixel value from the pre-configured first target color image table according to the first pixel value; wherein, the color space image table contains multiple pixels located by pixel value.

[0041] Step S204: Replace the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen rendered in the second style.

[0042] In some embodiments of this disclosure, the technical solutions involve providing a current game screen generated in a first style; responding to a rendering confirmation operation that enables a second style, determining the first pixel value of each pixel in the current game screen; for each pixel in the current game screen, finding the second pixel value of the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color space image table contains multiple pixels located by pixel values; and replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style. Firstly, this method uses a color image that occupies relatively little storage space to store three-dimensional color space information, which can reduce performance consumption during game operation. Furthermore, the color image contains various different color information, which can improve the richness of the game screen effect, thereby avoiding the technical problems of high game performance consumption and poor richness of generated game screen effects caused by the use of overlay textures in related technologies. Secondly, the color images are pre-configured, ensuring the quality of the generated game screen rendering. This avoids the technical problems in related technologies where players can arbitrarily adjust screen parameter combinations, leading to difficulties in generating high-quality game screen rendering and high operational complexity. Therefore, it ensures the quality of the generated game screen rendering while reducing player operational complexity. Thirdly, the overall style of the target game screen is determined based on the pixel values ​​of the current game screen using the first style method. This is more natural than directly overlaying textures, improving the realism of the target game screen.

[0043] Below, we will discuss Figure 2 The steps of the game screen rendering method in the illustrated embodiment are further described in detail.

[0044] In step S201, the current game screen generated in a first style is provided.

[0045] In step S202, in response to the rendering confirmation operation of enabling the second style mode, the first pixel value of each pixel in the current game screen is determined.

[0046] The first style can be the normal display effect of the game screen during gameplay; that is, the game screen is usually displayed in the first style during player gameplay. The second style is a special display effect that adds an overall color tone to the first style game screen. For example, if the current game screen is a normal display effect of a forest scene, in order to create a sense of mystery in the forest scene, the first style forest scene can be rendered with a black and green tone to form the target game screen of the second style (mysterious style).

[0047] In some example embodiments of this disclosure, the game screen is typically displayed in a first style, while the second style is a special display effect within the game. Therefore, the corresponding style is only enabled when the player confirms the selection to enable the second style. This process improves the player's human-computer interaction experience and allows for the selection of different game screen styles based on actual needs, enhancing the richness of the game effects and the player's visual experience.

[0048] In one exemplary embodiment, the rendering confirmation operation can be performed by the player based on a rendering start control displayed on the graphical user interface, or it can be based on a specific action of the player. For example, double-clicking or swiping the current game screen can start the rendering process of the overall style of the game screen, etc., and this disclosure does not impose any special limitations on this.

[0049] For example, the dynamic game scene displayed during the game process is composed of multiple frames of two-dimensional color images, and the pixel value of each pixel in the two-dimensional color image is synthesized by one or more color channels. The default number of color channels in an image depends on its color mode; that is, the color mode of an image determines the number of its color channels. For example, the first pixel value can be synthesized by three color components, specifically red (R), green (G), and blue (B), in which case the color image can be called an RGB image; the first pixel value can also be composed of four color components, RGBA, where A is the alpha (transparency) channel, in which case the color image can be called an RGBA image; or it can be synthesized by four color components, namely cyan (C), magenta (M), yellow (Y), and black (B), in which case the color image can be called a CMYK image. This disclosure does not impose any special limitations on this.

[0050] To facilitate the explanation of the game screen rendering method provided in this disclosure, each of the following exemplary embodiments is illustrated using three-channel RGB color components.

[0051] In step S203, for each pixel in the current game screen, the second pixel value of the pixel at the location of the first pixel value is obtained from the pre-configured first target color image table according to the first pixel value; wherein, the color space image table contains multiple pixels located by pixel values.

[0052] The first target color image table can be a single color image or a composite of multiple color images. This first target color image table is pre-configured by the game's artists. By adjusting visual parameters, a set of color image tables with different styles can be generated. These visual parameters can include hue, contrast, saturation, brightness, etc. The first target color image table is one of these pre-made color image table sets.

[0053] According to some embodiments of this disclosure, a graphical user interface can display multiple color images representing various styles in the form of a preview list, which includes at least a first target color image table. Players can select the first target color image table to update the overall style of the current game screen to the rendered target game screen.

[0054] It should be understood that the first target color image table can be determined based on the player's touch operation; it can also be determined by the system default or in any other way, and the embodiments disclosed herein do not impose any special limitations on this.

[0055] To facilitate understanding of the process of finding the second pixel value at the location of the first pixel value from a pre-configured first target color image table for each pixel in the current game screen, a color image table needs to be pre-made before executing step S203.

[0056] Figure 3 A flowchart illustrating a method for creating a color image table according to this exemplary embodiment is shown schematically. See also Figure 3 In an optional embodiment of this disclosure, the above-mentioned creation of a color image table includes the following steps S301-S302:

[0057] Step S301: Configure the colors of multiple pre-constructed initial color images according to different pre-set second color components and third color components to obtain multiple different target color images.

[0058] The second and third color components can each correspond to any one of the color components in the color channel of a pixel. Taking an RGB image as an example, the second and third color components can be the R component and the G component, or the R component and the B component, or the G component and the B component.

[0059] According to some embodiments of this disclosure, the number of initial color images is related to the preset number of pixels for the second and third color components in the corresponding color dimensions. For example, each pixel of an RGB image is composed of R, G, and B components, and each color component corresponds to a color dimension.

[0060] The preset pixel count is used to characterize the quantization precision of each color component, that is, the number of pixels representing one color dimension. For example, the preset pixel count can be 16 pixels, 32 pixels, 64 pixels, etc. Taking 16 pixels as an example, 16 pixels are used to represent one color dimension.

[0061] It should be noted that the number of preset pixels is directly proportional to the system precision and the storage space occupied. That is, if the user needs to improve the system precision, he / she can increase the value of the number of preset pixels in each color dimension, and the storage space occupied by the generated initial color image and the final color image table will also increase accordingly.

[0062] For example, in order to encode three-dimensional color space information into a two-dimensional color image, a preset number of pixels for each color component in the corresponding color dimension can be determined.

[0063] Taking a preset number of 16 pixels as an example, and the second color component and the third color component as R component and G component respectively, 16 initial color images with 16*16 pixels are created with R component as the horizontal axis and G component as the vertical axis. The R component and G component of each pixel in a single initial color image are not completely the same.

[0064] According to some embodiments of this disclosure, when performing step S301, data preprocessing can be performed in advance, that is, the second component value of the second color component is normalized to obtain the first target component value; the third component value of the third color component is normalized to obtain the second target component value; and the colors of the pre-constructed multiple initial color images are configured according to the first target component value and the second target component to obtain multiple different target color images.

[0065] For example, the values ​​of each color component typically range from 0 to 255. When creating a color image table, the values ​​corresponding to each color component can be normalized to convert them into values ​​between 0 and 1. The normalization process can be the current color component value divided by the maximum color component value. For instance, if the RGB components of a pixel are (51, 200, 255), then the normalized RGB components would be (0.2, 0.78, 1).

[0066] By normalizing the component values ​​of each color component, the calculation process can be simplified while improving the accuracy of constructing multiple initial color images.

[0067] Figure 4 This schematically illustrates a diagram of an initial color image constructed in this exemplary embodiment. Figure 4Taking the second and third color components as R components and G components respectively, and the preset number of pixels as 16, a 16*16 initial color image table is constructed. That is, the horizontal (x) coordinate (R color dimension) is the R component, represented as X(R), with a value range of [0,1], and the R color dimension corresponds to 16 pixel values; the vertical (Y) coordinate is the G component (G color dimension), represented as Y(G), with a value range of [0,1], and the G color dimension corresponds to 16 pixel values.

[0068] It should be understood that a preset number of initial color images can be directly constructed using the second and third color components, for example, 16 images can be constructed using the R and G components. Figure 4 The initial color image shown; alternatively, an initial color image can be constructed using the second and third color components and then copied to generate 16 images as shown. Figure 4 The initial color image shown is not specifically limited in this embodiment.

[0069] Step S302: Adjust the first color component of each target color image to obtain a first target color image table containing multiple target color images.

[0070] Among them, the pixel values ​​of each color image and each pixel in each color image are not exactly the same.

[0071] The normalized value of the first color component ranges from 0 to 1, and the color dimension corresponding to the first color component is also the preset number of pixels. Figure 4 The preset number of pixels for the R and G color dimensions is 16, so the third color component is B and the quantization precision of the B color dimension is also 16.

[0072] Constructing a target color image table by using different component values ​​of different color components facilitates the rapid implementation of a specific style of rendering process. This avoids the technical problems in related technologies where players can arbitrarily adjust the combination of screen parameters, making it difficult to generate high-quality game screen rendering effects and resulting in high operational complexity. Thus, it ensures the quality of generated game screen rendering effects while reducing the operational complexity for players.

[0073] In an exemplary embodiment of this disclosure, when performing step S302, multiple target color images are sequentially spliced ​​together according to the magnitude of the first component value of the first color component to obtain a first target color image table.

[0074] According to some embodiments of this disclosure, in Figure 4 Based on the constructed initial color image, the Z coordinate (B) value, ranging from [0, 1], is sequentially applied to 16 initial color images to obtain the following results: Figure 5The image shows 16 target color images. Among them, Figure 5 Between the two-dimensional image of Z(B=0) and the two-dimensional image of Z(B=1), there are 14 more two-dimensional images (not shown). Then, Figure 5 The 16 target color images shown are sequentially stitched together according to the magnitude of the first component value of the first color component to obtain the first target color image table. For example, by tiling the 16 target color images horizontally in order of the magnitude of the first component value of the first color component, a first target color image table with a height of 16 pixels, a width of 256 pixels, and a storage capacity of 16*16*16=16*256=4096 pixels is obtained.

[0075] It is understood that image stitching can be performed in descending order of the first component values ​​of the first color component, or in ascending order of the first component values, or in a preset order. This disclosure does not impose any special restrictions on this.

[0076] By stitching together multiple first target color images to form a first target color image table, the numerical range can be expanded so that the pixel value of any pixel point has a locatable pixel point in the first target color image table, thereby improving the reliability of the game screen rendering method.

[0077] Based on the first target color image table pre-made by the aforementioned artists, the following will explain the process of step S202 of finding the second pixel value at the location of the first pixel value from the pre-configured first target color image table according to the first pixel value.

[0078] In an exemplary embodiment of this disclosure, when performing step S202, a target color image can be obtained from a pre-configured first target color image table based on the first color component of the first pixel value; and the second pixel value of the pixel at the location of the first pixel value can be obtained from the target color image based on the second and third color components of the first pixel value.

[0079] For example, taking an RGB image as an example, each pixel in the current game screen contains R, G, and B components. In the first target color image table obtained by stitching together 16 first target color images, the corresponding target color image can be found by the first color component. Then, the second pixel value is located from the target color image based on the second and third color components of the first pixel value.

[0080] For example, in Figure 5Based on the first target color image table shown, if the first pixel value of the current game screen has R=1, G=1, and B=1, then the target color image is determined to be the 16th image in the first target color image table based on the B component, and is determined from the 16th image using the R and G components. Figure 5 The marked pixel value is the second pixel value.

[0081] By using the color components corresponding to the first pixel value, the second pixel value can be quickly found from the target color image. This process consumes little game performance and can quickly locate the second pixel value, thus improving the efficiency of rendering the game screen.

[0082] In an exemplary embodiment of this disclosure, when the second pixel value at the location of the first pixel value is found in the target color image based on the second color component and the third color component of the first pixel value, the initial coordinates corresponding to each pixel can be determined from the target color image based on the second color component and the third color component; if the pixel point is not located by the initial coordinates, the pixel value of the target coordinate pixel point that is closest to the initial coordinates is determined as the second pixel value.

[0083] For example, when finding the second pixel value at the location of the first pixel value in the target color image, the initial coordinates are determined based on the second and third color components. To ensure the accuracy of subsequent coordinate determination and to ensure that each pixel in the current game screen can find its corresponding second pixel value, if the initial coordinates do not contain any pixels, the pixel value of the target coordinate pixel closest to the initial coordinates can be determined as the second pixel value.

[0084] When no pixel is located using the initial coordinates, using the pixel value of the target coordinate closest to the initial coordinates as the second pixel value ensures that every pixel in the current game screen can find its corresponding color value in the target color image of the corresponding style, thereby improving the stability and reliability of the game screen rendering process.

[0085] According to some embodiments of this disclosure, in order to ensure that the target coordinates are subsequently sampled against the first target color image table to obtain the second pixel value, the initial coordinates of each pixel can be shifted to the upper right by half a pixel, and the pixel value of the target coordinate pixel closest to the initial coordinates can be determined as the second pixel value.

[0086] According to some embodiments of this disclosure, since 16 first target color images are tiled horizontally, the pseudocode logic for the first step, image stitching, of finding the corresponding target color image through the first color component (B component) is as follows:

[0087] offset = floor(B*(16-1));

[0088] The floor function rounds down the result of B*(16-1).

[0089] The second step is to determine the initial coordinates based on the second color component (R component) and the third color component (G component) of the first pixel value. The pseudocode logic is as follows:

[0090] float2 uv=RG*(16-1)*(1 / 256,1 / 16);

[0091] Where uv represents the initial coordinates obtained; R represents the second component value of the second color component (R component); and G represents the third component value of the third color component (G component).

[0092] Third, to ensure the accuracy of the second pixel value, the target coordinates are calculated based on the initial coordinates. For example, the target coordinates can be obtained by shifting the initial coordinates half a pixel to the upper right. The pseudocode logic is as follows:

[0093] uv+ = (1 / 256, 1 / 16) * 0.5;

[0094] Here, uv is the target coordinate obtained after the initial coordinate correction in the second step.

[0095] Step 4: Apply the offset value obtained in Step 1 to the x-axis to obtain:

[0096] uv.x += offset * (1 / 16);

[0097] Here, uv.x is the initial coordinate obtained by applying the offset value offset to the x-axis. The purpose of this step is to map the first color component (B component) to the x-axis so that the corresponding target color image can be found from the first target color image table based on the first color component (B component).

[0098] Step 5: Obtain the second pixel value corresponding to the target coordinates. The pseudocode logic is as follows:

[0099] color=SAMPLE_TEXTURE2D(tex,samplerTex,uv).rgb;

[0100] Here, color is the second pixel value. The SAMPLE_TEXTURE2D function is used to map the Texture onto the surface of an object. It implements the sampling of the input texture map. The input parameters of this function are (texture, texture sampler, texture coordinates).

[0101] The above pseudocode logic is the process of determining the second pixel value based on the RGB color components. The pseudocode can be determined according to the specific type and number of color components.

[0102] In step S204, the first pixel value of each pixel in the current game screen is replaced with the corresponding second pixel value to obtain the target game screen of the second style after rendering the current game screen.

[0103] For example, by replacing the first pixel value of each pixel in the current game screen with the determined second pixel value, the target game screen rendered in the second style can be obtained.

[0104] In an exemplary embodiment of this disclosure, after replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value in step S203 to obtain the target game screen rendered for the current game screen, in response to the user's touch operation to enable the third style mode for the second target color image table among multiple color images, the target game screen of the second style mode is switched to the game screen of the third style mode corresponding to the second target color image table.

[0105] The third style differs from the overall color scheme of the second style. For example, in a game with a forest setting, the second style features a dark green and eerie aesthetic, while the third style can have a bright green and vibrant feel, thus providing players with a different gaming experience.

[0106] In some example embodiments of this disclosure, when switching the target game screen to a game screen in a third style corresponding to the second target color image table, the rendering process can be performed by turning off the target game screen in the second style and then turning on the game screen in the third style; alternatively, the target game screen in the second style can jump to the game screen in the third style. This disclosure does not impose any special limitations on this.

[0107] For example, different values ​​of the R, G, and B components will result in different colors when superimposed, and adjusting the image parameters will also result in different styles.

[0108] Next, in Figure 5 Based on this, it will be combined Figure 6 and Figure 7 Explain two color image tables with different hue parameters. For example... Figure 6 It is a color image table obtained by stitching together 16 color images, with an overall cool color tone; Figure 7 The image shown is another color image table obtained by stitching together 16 color images. The overall color tone is warm and can be used for different game screen styles.

[0109] It should be understood that, Figure 6 , Figure 7 These are two color image tables obtained by adjusting the hue parameters provided in the exemplary embodiments of this disclosure. Other image parameters can also be adjusted to obtain a variety of color image tables with different styles.

[0110] Furthermore, after the player enables the overall style rendering of the game screen, a color image table pre-created by the game's artists will be displayed on the graphical user interface as a preview list for the player to choose from. When the player wants to switch the overall style of the game screen, for example, switching the game screen from a twilight style to a retro style, a second target color image table will be executed. The terminal device can then respond to the user's touch operation on the second target color image table among multiple color images, switching the target game screen of the second style mode to the third style mode corresponding to the second target color image table.

[0111] Multiple pre-made color charts are displayed in a preview list, allowing players to choose one according to their needs. This enhances player control and the richness of the game's visual experience, thereby improving the overall gaming experience. Furthermore, players can switch between different game visual styles in real-time during gameplay, further enhancing the gaming experience.

[0112] In an exemplary embodiment of this disclosure, when switching the target game screen to a game screen corresponding to the second target color image table in response to a user's touch operation to enable a third style mode for a second target color image table among multiple color images, the system can, in response to the user's touch operation to the second target color image table among multiple color images, find the third pixel value of the pixel at the location of the first pixel value from the pre-configured second target color image table for each pixel in the current game screen based on the first pixel value; perform linear interpolation on the second pixel value and the third pixel value; and switch the target game screen to a game screen in the third style mode corresponding to the second target color image table based on the result of the linear interpolation.

[0113] For example, when switching from the target game screen of the second style mode to the game screen of the third style mode, in order to achieve a smooth transition and a natural switching effect, linear interpolation can be performed on the second pixel value and the third pixel value.

[0114] For example, the pseudocode logic for performing linear interpolation on the second and third pixel values ​​is as follows:

[0115] colorA = the target game screen (current game screen) corresponding to style A;

[0116] colorB = The game screen (current game screen) obtained by using the second target color image table as the color image table, corresponding to style mode B;

[0117] finalColor=lerp(colorA, colorB, time);

[0118] Wherein, finalColor is the display effect of switching from style mode A to style mode B; colorA is the target game screen obtained by applying the first target color image table corresponding to style mode A to the current game screen; colorB is the game screen obtained by applying the second target color image table corresponding to style mode B to the current game screen; the value range of time is [0,1], which can be obtained through normalization processing. This time is used to represent the current time position when transitioning from style mode A to style mode B.

[0119] When switching between different styles of game rendering effects, linear interpolation can be performed on the second and third pixel values ​​determined by different color image tables to achieve a natural transition between different styles of game rendering effects, thereby improving the player's gaming experience and visual experience.

[0120] To implement the above-mentioned game screen rendering method, one embodiment of this disclosure provides a game screen rendering apparatus. Figure 8 A schematic diagram of the game screen rendering device is shown.

[0121] The game rendering device includes a screen generation module 801, a pixel determination module 802, a pixel search module 803, and a pixel replacement module 804.

[0122] The screen generation module 801 is used to provide the current game screen generated in a first style mode; the pixel determination module 802 is used to determine the first pixel value of each pixel in the current game screen in response to the rendering confirmation operation of enabling the second style mode; the pixel search module 803 is used to find the second pixel value of the location of the first pixel value from a pre-configured first target color image table for each pixel in the current game screen according to the first pixel value; wherein, the color space image table contains multiple pixels that locate pixel points by pixel value; the pixel replacement module 804 is used to replace the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen of the second style mode after rendering the current game screen.

[0123] The game rendering apparatus 800 provided in this embodiment can execute the technical solution of the game rendering method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the game rendering method. Please refer to the implementation principle and beneficial effects of the game rendering method. It will not be repeated here.

[0124] Furthermore, in order to implement the above-mentioned game screen rendering method, one embodiment of this disclosure provides another game screen rendering apparatus. Figure 9 A schematic diagram of the game screen rendering device is shown.

[0125] The game rendering device 900 includes a pixel lookup module 901, a color configuration module 902, a color adjustment module 903, and a screen switching module 904.

[0126] In an optional embodiment, the pixel lookup module 901 is used to find a target color image from a pre-configured first target color image table based on the first color component of the first pixel value; and to find the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second and third color components of the first pixel value.

[0127] In an optional embodiment, the pixel lookup module 901 is used to determine the initial coordinates corresponding to each pixel from the target color image based on the second color component and the third color component; if the pixel is not located by the initial coordinates, the pixel value of the target coordinate pixel that is closest to the initial coordinates is determined as the second pixel value.

[0128] In an optional embodiment, the color configuration module 902 is used to configure the colors of a plurality of pre-constructed initial color images according to different pre-set second color components and third color components to obtain a plurality of target color images with different colors; the color adjustment module 903 is used to adjust the first color component of each target color image to obtain a first target color image table containing a plurality of target color images; wherein, each color image and the pixel value of each pixel in each color image are not completely the same.

[0129] In an optional embodiment, the color configuration module 902 is used to normalize the second component value of the second color component to obtain a first target component value; normalize the third component value of the third color component to obtain a second target component value; and configure the colors of a plurality of pre-constructed initial color images according to the first target component value and the second target component to obtain a plurality of target color images with different target colors.

[0130] In an optional embodiment, the color adjustment module 903 is used to sequentially stitch together multiple target color images according to the magnitude of the first component value of the first color component to obtain a first target color image table.

[0131] In an optional embodiment, the screen switching module 904 is configured to switch the target game screen to the game screen in the third style mode corresponding to the second target color image table in response to a touch operation that enables a third style mode for a second target color image table among multiple color images.

[0132] In an optional embodiment, the screen switching module 904 is used to respond to a user's touch operation on a second target color image table among multiple color images, and for each pixel in the current game screen, to find the third pixel value at the location of the first pixel value from the pre-configured second target color image table based on the first pixel value; to perform linear interpolation on the second pixel value and the third pixel value; and to switch the target game screen to a game screen in a third style mode corresponding to the second target color image table based on the result of the linear interpolation.

[0133] The game rendering apparatus 900 provided in this embodiment can execute the technical solution of the game rendering method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the game rendering method. Please refer to the implementation principle and beneficial effects of the game rendering method. It will not be repeated here.

[0134] In exemplary embodiments of this disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the methods described above is stored. In some possible embodiments, various aspects of the invention can also be implemented as a program product including program code, which, when the program product is run on a terminal device, causes the terminal device to perform the steps of the various exemplary embodiments of the invention described in the "Exemplary Methods" section above, for example:

[0135] One embodiment of this disclosure provides a game screen rendering method, including: providing a current game screen generated in a first style mode; in response to a rendering confirmation operation that enables a second style mode, determining a first pixel value for each pixel in the current game screen; for each pixel in the current game screen, finding a second pixel value for the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color image table contains multiple pixels located by pixel values; replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style mode for the current game screen.

[0136] By using the game rendering method provided in this embodiment, firstly, the method uses color images that occupy less storage space to store three-dimensional color space information, which can reduce the performance consumption during game operation. Furthermore, the color images contain a variety of different color information, which can improve the richness of the game visual effects, thus avoiding the technical problems of high performance consumption and poor richness of generated game visual effects caused by the overlay texture method in related technologies. Secondly, the color images are pre-configured, ensuring the quality of the generated game visual rendering effect, thus avoiding the technical problems in related technologies where players arbitrarily adjust the combination of screen parameters, making it difficult to generate high-quality game visual rendering effects and resulting in high operational complexity. This ensures the quality of the generated game visual rendering effect while reducing the complexity of player operation. Thirdly, the overall style of the target game visual is determined based on the pixel values ​​of the current game visual using the first style method, which is more natural than the direct overlay texture method, improving the realism of the target game visual.

[0137] In an optional embodiment, finding the second pixel value at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value includes: finding a target color image from the pre-configured first target color image table based on the first color component of the first pixel value; and finding the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second color component and the third color component of the first pixel value.

[0138] By using the color components corresponding to the first pixel value, the second pixel value can be quickly found from the target color image. This process consumes little game performance and can quickly locate the second pixel value, thus improving the efficiency of rendering the game screen.

[0139] In an optional embodiment, finding the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second color component and the third color component of the first pixel value includes: determining the initial coordinates corresponding to each pixel from the target color image based on the second color component and the third color component; if the pixel is not located by the initial coordinates, then the pixel value of the pixel at the target coordinates closest to the initial coordinates is determined as the second pixel value.

[0140] When no pixel is located using the initial coordinates, using the pixel value of the target coordinate closest to the initial coordinates as the second pixel value ensures that every pixel in the current game screen can find its corresponding color value in the target color image of the corresponding style, thereby improving the stability and reliability of the game screen rendering process.

[0141] In an optional embodiment, before finding the second pixel value at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value, the method further includes: configuring the colors of a plurality of pre-constructed initial color images according to different pre-set second color components and third color components to obtain a plurality of target color images with different colors; adjusting the first color components of each target color image to obtain a first target color image table containing the plurality of target color images; wherein, the pixel values ​​of each color image and each pixel in each color image are not completely the same.

[0142] Constructing a target color image table by using different component values ​​of different color components facilitates the rapid implementation of a specific style of rendering process. This avoids the technical problems in related technologies where players can arbitrarily adjust the combination of screen parameters, making it difficult to generate high-quality game screen rendering effects and resulting in high operational complexity. Thus, it ensures the quality of generated game screen rendering effects while reducing the operational complexity for players.

[0143] In an optional embodiment, multiple pre-constructed initial color images are configured with colors according to different pre-defined second and third color components to obtain multiple target color images with different colors. This includes: normalizing the second component value of the second color component to obtain a first target component value; normalizing the third component value of the third color component to obtain a second target component value; and configuring the multiple pre-constructed initial color images with colors according to the first target component value and the second target component to obtain multiple target color images with different colors.

[0144] By normalizing the component values ​​of each color component, the calculation process can be simplified while improving the accuracy of constructing multiple initial color images.

[0145] In an optional embodiment, the first color component of each target color image is adjusted to obtain a first target color image table containing multiple target color images, including: the multiple target color images are sequentially spliced ​​according to the magnitude of the first component value of the first color component to obtain the first target color image table.

[0146] By stitching together multiple first target color images to form a first target color image table, the numerical range can be expanded so that the pixel value of any pixel point has a locatable pixel point in the first target color image table, thereby improving the reliability of the game screen rendering method.

[0147] In an optional embodiment, after replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen rendered for the current game screen, the method further includes: in response to a touch operation that enables a third style mode for a second target color image table among multiple color images, switching the target game screen to a game screen in the third style mode corresponding to the second target color image table.

[0148] Multiple pre-made color charts are displayed in a preview list, allowing players to choose one according to their needs. This enhances player control and the richness of the game's visual experience, thereby improving the overall gaming experience. Furthermore, players can switch between different game visual styles in real-time during gameplay, further enhancing the gaming experience.

[0149] In an optional embodiment, switching the target game screen to a game screen in a third style corresponding to the second target color image table includes: for each pixel in the current game screen, finding the third pixel value of the pixel at the location of the first pixel value from the pre-configured second target color image table based on the first pixel value; performing a linear interpolation operation on the second pixel value and the third pixel value; and switching the target game screen to a game screen in the third style corresponding to the second target color image table based on the result of the linear interpolation operation.

[0150] When switching between different styles of game rendering effects, linear interpolation can be performed on the second and third pixel values ​​determined by different color image tables to achieve a natural transition between different styles of game rendering effects and improve the player's gaming experience.

[0151] According to embodiments of the present invention, a program product for implementing the above-described method may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0152] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0153] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium, capable of sending, propagating, or transmitting programs for use by or in conjunction with an instruction execution system, apparatus, or device.

[0154] The program code contained on the readable medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0155] Program code for performing the operations of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0156] In an exemplary embodiment of this disclosure, an electronic device capable of implementing the above-described method is also provided.

[0157] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: entirely hardware implementations, entirely software implementations (including firmware, microcode, etc.), or implementations combining hardware and software aspects, collectively referred to herein as “circuits,” “modules,” or “systems.”

[0158] The following reference Figure 10 To describe an electronic device 1000 according to this embodiment of the present invention. Figure 10 The electronic device 1000 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0159] like Figure 10 As shown, the electronic device 1000 is manifested in the form of a general-purpose computing device. The components of the electronic device 1000 may include, but are not limited to: at least one processing unit 1010, at least one storage unit 1020, a bus 1030 connecting different system components (including storage unit 1020 and processing unit 1010), and a display unit 1040.

[0160] The storage unit stores program code, which can be executed by the processing unit 1010 to perform the steps described in the "Exemplary Methods" section of this specification according to various exemplary embodiments of the present invention. For example, the processing unit 1010 can perform the steps of the following various exemplary embodiments:

[0161] One embodiment of this disclosure provides a game screen rendering method, including: providing a current game screen generated in a first style mode; in response to a rendering confirmation operation that enables a second style mode, determining a first pixel value for each pixel in the current game screen; for each pixel in the current game screen, finding a second pixel value for the pixel at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value; wherein the color image table contains multiple pixels located by pixel values; replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain a target game screen rendered in the second style mode for the current game screen.

[0162] By using the game rendering method provided in this embodiment, firstly, the method uses color images that occupy less storage space to store three-dimensional color space information, which can reduce the performance consumption during game operation. Furthermore, the color images contain a variety of different color information, which can improve the richness of the game visual effects, thus avoiding the technical problems of high performance consumption and poor richness of generated game visual effects caused by the overlay texture method in related technologies. Secondly, the color images are pre-configured, ensuring the quality of the generated game visual rendering effect, thus avoiding the technical problems in related technologies where players arbitrarily adjust the combination of screen parameters, making it difficult to generate high-quality game visual rendering effects and resulting in high operational complexity. This ensures the quality of the generated game visual rendering effect while reducing the complexity of player operation. Thirdly, the overall style of the target game visual is determined based on the pixel values ​​of the current game visual using the first style method, which is more natural than the direct overlay texture method, improving the realism of the target game visual.

[0163] In an optional embodiment, finding the second pixel value at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value includes: finding a target color image from the pre-configured first target color image table based on the first color component of the first pixel value; and finding the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second color component and the third color component of the first pixel value.

[0164] By using the color components corresponding to the first pixel value, the second pixel value can be quickly found from the target color image. This process consumes little game performance and can quickly locate the second pixel value, thus improving the efficiency of rendering the game screen.

[0165] In an optional embodiment, finding the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second color component and the third color component of the first pixel value includes: determining the initial coordinates corresponding to each pixel from the target color image based on the second color component and the third color component; if the pixel is not located by the initial coordinates, then the pixel value of the pixel at the target coordinates closest to the initial coordinates is determined as the second pixel value.

[0166] When no pixel is located using the initial coordinates, using the pixel value of the target coordinate closest to the initial coordinates as the second pixel value ensures that every pixel in the current game screen can find its corresponding color value in the target color image of the corresponding style, thereby improving the stability and reliability of the game screen rendering process.

[0167] In an optional embodiment, before finding the second pixel value at the location of the first pixel value from a pre-configured first target color image table based on the first pixel value, the method further includes: configuring the colors of a plurality of pre-constructed initial color images according to different pre-set second color components and third color components to obtain a plurality of target color images with different colors; adjusting the first color components of each target color image to obtain a first target color image table containing the plurality of target color images; wherein, the pixel values ​​of each color image and each pixel in each color image are not completely the same.

[0168] Constructing a target color image table by using different component values ​​of different color components facilitates the rapid implementation of a specific style of rendering process. This avoids the technical problems in related technologies where players can arbitrarily adjust the combination of screen parameters, making it difficult to generate high-quality game screen rendering effects and resulting in high operational complexity. Thus, it ensures the quality of generated game screen rendering effects while reducing the operational complexity for players.

[0169] In an optional embodiment, multiple pre-constructed initial color images are configured with colors according to different pre-defined second and third color components to obtain multiple target color images with different colors. This includes: normalizing the second component value of the second color component to obtain a first target component value; normalizing the third component value of the third color component to obtain a second target component value; and configuring the multiple pre-constructed initial color images with colors according to the first target component value and the second target component to obtain multiple target color images with different colors.

[0170] By normalizing the component values ​​of each color component, the calculation process can be simplified while improving the accuracy of constructing multiple initial color images.

[0171] In an optional embodiment, the first color component of each target color image is adjusted to obtain a first target color image table containing multiple target color images, including: the multiple target color images are sequentially spliced ​​according to the magnitude of the first component value of the first color component to obtain the first target color image table.

[0172] By stitching together multiple first target color images to form a first target color image table, the numerical range can be expanded so that the pixel value of any pixel point has a locatable pixel point in the first target color image table, thereby improving the reliability of the game screen rendering method.

[0173] In an optional embodiment, after replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen rendered for the current game screen, the method further includes: in response to a touch operation that enables a third style mode for a second target color image table among multiple color images, switching the target game screen to a game screen in the third style mode corresponding to the second target color image table.

[0174] Multiple pre-made color charts are displayed in a preview list, allowing players to choose one according to their needs. This enhances player control and the richness of the game's visual experience, thereby improving the overall gaming experience. Furthermore, players can switch between different game visual styles in real-time during gameplay, further enhancing the gaming experience.

[0175] In an optional embodiment, switching the target game screen to a game screen in a third style corresponding to the second target color image table includes: for each pixel in the current game screen, finding the third pixel value of the pixel at the location of the first pixel value from the pre-configured second target color image table based on the first pixel value; performing a linear interpolation operation on the second pixel value and the third pixel value; and switching the target game screen to a game screen in the third style corresponding to the second target color image table based on the result of the linear interpolation operation.

[0176] When switching between different styles of game rendering effects, linear interpolation can be performed on the second and third pixel values ​​determined by different color image tables to achieve a natural transition between different styles of game rendering effects and improve the player's gaming experience.

[0177] Storage unit 1020 may include readable media in the form of volatile storage units, such as random access memory (RAM) 10201 and / or cache memory 10202, and may further include read-only memory (ROM) 10203.

[0178] Storage unit 1020 may also include a program / utility 10204 having a set (at least one) program module 10205, such program module 10205 including but not limited to: operating system, one or more application programs, other program modules and program data, each or some combination of these examples may include an implementation of a network environment.

[0179] Bus 1030 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the multiple bus structures.

[0180] Electronic device 1000 can also communicate with one or more external devices 1100 (e.g., keyboard, pointing device, Bluetooth device, etc.), one or more devices that enable a user to interact with electronic device 1000, and / or any device that enables electronic device 1000 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 1050. Furthermore, electronic device 1000 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 1060. As shown, network adapter 1060 communicates with other modules of electronic device 1000 via bus 1030. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 1000, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0181] From the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein can be implemented by software or by combining software with necessary hardware. Therefore, the technical solutions according to the embodiments of this disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as a CD-ROM, USB flash drive, external hard drive, etc.) or on a network, including several instructions to cause a computing device (such as a personal computer, server, terminal device, or network device, etc.) to execute the methods according to the embodiments of this disclosure.

[0182] Furthermore, the above figures are merely illustrative of the processes included in the method according to exemplary embodiments of the present invention, and are not intended to be limiting. It is readily understood that the processes shown in the above figures do not indicate or limit the temporal order of these processes. Additionally, it is readily understood that these processes may be executed synchronously or asynchronously, for example, in multiple modules.

[0183] It should be noted that although several modules or units for the device used to perform actions have been mentioned in the detailed description above, this division is not mandatory. In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.

[0184] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and embodiments are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the claims.

[0185] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is defined only by the appended claims.

Claims

1. A game screen rendering method, characterized by, The method includes: Provides the current game screen generated in a first-style manner; In response to the rendering confirmation operation that enables the second style mode, the first pixel value of each pixel in the current game screen is determined; For each pixel in the current game screen, a target color image is retrieved from a pre-configured first target color image table based on the first color component of the first pixel value; the second pixel value of the pixel at the location of the first pixel value is retrieved from the target color image based on the second and third color components of the first pixel value; wherein, the first target color image table contains multiple pixels located by pixel values, and the first target color image table is determined based on the following steps: configuring the colors of multiple pre-constructed initial color images according to different pre-set second and third color components to obtain multiple different target color images; adjusting the first color component of each target color image to obtain the first target color image table containing multiple target color images; wherein, each color image and the pixel values ​​of each pixel in each color image are not completely the same. The first pixel value of each pixel in the current game screen is replaced with the corresponding second pixel value to obtain the target game screen of the second style after rendering the current game screen.

2. The game screen rendering method of claim 1, wherein, The step of finding the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second color component and the third color component of the first pixel value includes: The initial coordinates corresponding to each pixel are determined from the target color image based on the second color component and the third color component; If a pixel is not located using the initial coordinates, the pixel value of the target coordinate closest to the initial coordinates is determined as the second pixel value.

3. The game screen rendering method of claim 1, wherein, The process of configuring the colors of multiple pre-constructed initial color images according to different pre-defined second and third color components to obtain multiple different target color images includes: The second component value of the second color component is normalized to obtain the first target component value; The third component value of the third color component is normalized to obtain the second target component value; Based on the first target component value and the second target component value, the pre-constructed plurality of initial color images are configured with colors to obtain a plurality of different target color images.

4. The game screen rendering method of claim 1, wherein, The step of adjusting the first color component of each of the target color images to obtain a first target color image table containing multiple target color images includes: Multiple target color images are sequentially spliced ​​together according to the magnitude of the first component value of the first color component to obtain the first target color image table.

5. The game screen rendering method of claim 1, wherein, After replacing the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen rendered in the second style, the method further includes: In response to a touch operation that activates a third style mode for a second target color image table among multiple color image tables, the target game screen is switched to the game screen of the third style mode corresponding to the second target color image table.

6. The game screen rendering method of claim 5, wherein, The step of switching the target game screen to the third style of game screen corresponding to the second target color image table includes: For each pixel in the current game screen, the third pixel value of the pixel at the location of the first pixel value is obtained from the pre-configured second target color image table based on the first pixel value; Perform linear interpolation on the second pixel value and the third pixel value; Based on the result of the linear interpolation operation, the target game screen is switched to the game screen of the third style corresponding to the second target color image table.

7. A game screen rendering apparatus, characterized by comprising: The device includes: The screen generation module is used to provide the current game screen generated in a first-style manner; The pixel determination module is used to determine the first pixel value of each pixel in the current game screen in response to the rendering confirmation operation of enabling the second style mode; A pixel lookup module is used to, for each pixel in the current game screen, look up a target color image from a pre-configured first target color image table based on the first color component of the first pixel value; and look up the second pixel value of the pixel at the location of the first pixel value from the target color image based on the second and third color components of the first pixel value. The first target color image table contains multiple pixels located by pixel values, and is determined based on the following steps: configuring the colors of multiple pre-constructed initial color images according to different pre-set second and third color components to obtain multiple different target color images; adjusting the first color component of each target color image to obtain a first target color image table containing multiple target color images; wherein each color image and the pixel values ​​of each pixel in each color image are not completely identical. The pixel replacement module is used to replace the first pixel value of each pixel in the current game screen with the corresponding second pixel value to obtain the target game screen of the second style after rendering the current game screen.

8. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by the processor, it implements the game screen rendering method according to any one of claims 1 to 6.

9. An electronic device, comprising: include: processor; as well as Memory for storing the executable instructions of the processor; The processor is configured to execute the game screen rendering method according to any one of claims 1 to 6 by executing the executable instructions.