A rendering method, apparatus, electronic device and readable storage medium

CN116492678BActive Publication Date: 2026-10-27NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310476120.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-26
Publication Date
2026-10-27
Estimated Expiration
2043-04-26

AI Technical Summary

Technical Problem

不同的特效对应的着色器参数不同,导致调整过程繁琐;此外,当修改参数无法达到想要的染色效果时还需要重新绘制贴图,增加了游戏包体

Benefits of technology

[0016]本公开实施例包括以下优点:

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116492678B_ABST
    Figure CN116492678B_ABST
Patent Text Reader

Abstract

The method comprises: in response to a control operation on an application interface, determining a target special effect that needs to be adjusted in color, and determining a target color parameter of the target special effect; in response to a trigger operation on a color parameter adjustment control in the application interface, adjusting recorded color parameter information of the target special effect to the target color parameter; in response to a trigger operation on a color control in the application interface, generating a corresponding special effect coloring instruction, and sending the special effect coloring instruction to a game engine, so that the game engine re-renders the target special effect according to the special effect coloring instruction. According to the method, a rapid coloring scheme of the special effect is provided, an artist can use an external special effect coloring tool to batch adjust the coloring parameter of the special effect in a material file, and can send an instruction to the game engine for real-time rendering, so that the process of coloring the special effect is simple and convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In related technologies, the shaders that come with the game engine do not support intuitive coloring methods. When creating special effects coloring files, it is often necessary to redraw the textures. When a special effect contains a dozen or even dozens of sub-effects, the cost of modification is high.

[0003] Specifically, in order to meet the large number of special effects and color requirements of game projects, the current technical means are to readjust the hue, saturation and other parameters of the texture to achieve the desired effect, or to adjust the shader parameters one by one.

[0004] The above method requires adjusting each sub-effect individually. Different effects correspond to different shader parameters, making the adjustment process tedious; in addition, when modifying parameters fails to achieve the desired coloring effect, the texture needs to be redrawn, increasing the game package size. Summary of the Invention

[0005] In view of the above problems, embodiments of the present disclosure are proposed to provide a rendering method and a corresponding rendering apparatus, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems.

[0006] This disclosure provides a rendering method that provides an application interface for a special effects coloring tool via a terminal. The special effects coloring tool is communicatively connected to a game engine, and the game engine's material files record coloring parameter information for various special effects. The method includes:

[0007] In response to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect;

[0008] In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the target effect is adjusted to the target color parameter.

[0009] In response to a trigger operation on the coloring control in the application interface, a corresponding special effect coloring instruction is generated and sent to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction.

[0010] This disclosure also discloses a rendering apparatus that provides an application interface for a special effects coloring tool via a terminal. The special effects coloring tool is communicatively connected to a game engine, and the game engine's material files record coloring parameter information for various special effects. The apparatus includes:

[0011] The determination module is used to respond to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect.

[0012] The adjustment module is used to respond to the trigger operation of the color parameter adjustment control in the application interface and adjust the recorded color parameter information of the target effect to the target color parameter.

[0013] The generation and sending module is used to respond to the trigger operation of the coloring control in the application interface, generate the corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction.

[0014] This disclosure also discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements a rendering method as described above.

[0015] This disclosure also discloses a computer-readable storage medium storing a computer program that, when executed by a processor, implements a rendering method as described above.

[0016] The embodiments disclosed herein have the following advantages:

[0017] In this embodiment, a special effects coloring tool is provided. This tool communicates with a game engine and responds to control operations on its application interface. It can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient. Attached Figure Description

[0018] Figure 1This is a flowchart of the steps of a rendering method provided in an embodiment of this disclosure;

[0019] Figure 2 This is a flowchart of another rendering method provided in an embodiment of the present disclosure;

[0020] Figure 3 This is a schematic diagram of the application interface of a special effects dyeing tool according to an embodiment of the present disclosure;

[0021] Figure 4 This is a schematic diagram illustrating the communication between a special effects dyeing tool and a game engine according to an embodiment of this disclosure;

[0022] Figure 5 This is a structural block diagram of a rendering apparatus provided in an embodiment of this disclosure;

[0023] Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of this disclosure. Detailed Implementation

[0024] To make the above-mentioned objects, features, and advantages of this disclosure more apparent and understandable, the disclosure will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. Based on the embodiments in this disclosure, all other embodiments obtained by those skilled in the art are within the scope of protection of this disclosure.

[0025] Currently, there is no efficient and convenient solution for the large number of special effects coloring requirements in game projects.

[0026] Based on this, this disclosure relates to providing an efficient and convenient special effects coloring solution, which allows artists to use external tools to adjust parameters such as hue, saturation, and brightness of special effects as a whole, and can refresh the shader program code of special effects in the game engine in real time, allowing artists to intuitively see the adjusted special effects.

[0027] This disclosure provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's application interface, the tool can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring command can be generated, triggering the game engine to re-render the target special effect according to the command. This method provides a rapid special effects coloring solution. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send commands to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0028] Reference Figure 1 This diagram illustrates a flowchart of a rendering method provided in this embodiment. The method utilizes an application interface for a special effects coloring tool provided via a terminal. This tool communicates with a game engine, and the game engine's material files record coloring parameter information for various special effects. Specifically, the method may include the following steps:

[0029] Step 101: Respond to the control operation on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect.

[0030] In this disclosure, various terminals can be used to execute the steps of a rendering method. These terminals can be computers, mobile phones, tablets, game consoles, PDAs, and other terminal devices; the specific type of terminal device is not limited in this application. The rendering method of this disclosure can be applied to the game development process.

[0031] The terminal of this disclosure embodiment includes a graphical user interface, which can provide an application interface for a special effects dyeing tool. The special effects dyeing tool of this disclosure embodiment is used to achieve rapid dyeing of special effects. It is not integrated into the game engine, but is an external tool that can establish a communication connection with the game engine.

[0032] A game can be divided into two main parts: the game engine and the game resources. The game engine is a set of machine-readable code (instructions) designed for running a specific type of game. The game engine can call various game resources according to the game's design rules. Game resources are specifically represented by resource files, such as material files, scene files, and texture files. The material files in the game engine record the coloring parameters for various special effects.

[0033] In this embodiment of the disclosure, artists (users) can perform control operations in the application interface of the special effects coloring tool, such as touching the interface controls and responding to the control operations. They can determine the target special effects that need to be adjusted in terms of coloring parameters, and determine the target coloring parameters that the target special effects need to be rendered. That is, in this embodiment of the disclosure, artists can determine the target special effects to be re-rendered and the target coloring parameters that need to be rendered in the application interface of the special effects coloring tool.

[0034] Step 102: Respond to the trigger operation of the color parameter adjustment control in the application interface, and adjust the recorded color parameter information of the target effect to the target color parameter.

[0035] The interface of the special effects dyeing tool includes a dyeing parameter adjustment control, which is used to trigger the modification of the special effects dyeing parameters recorded in text form in the material file.

[0036] In this embodiment of the disclosure, the user can trigger the coloring parameter adjustment control and respond to the trigger operation to adjust the coloring parameter information of the target effect to the target coloring parameter. That is, in this embodiment of the disclosure, the effect material data in the material file can be modified in batches by external tools without the need for artists to modify it manually.

[0037] Step 103: Respond to the trigger operation of the color control in the application interface, generate the corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine so that the game engine can re-render the target special effect according to the special effect coloring instruction.

[0038] The application interface of the special effects coloring tool includes a coloring control, which is used to trigger the sending of special effects coloring commands to the game engine and refresh the rendering effect of the corresponding special effects.

[0039] In this embodiment of the disclosure, the user can trigger the coloring control, respond to the triggering operation, generate a corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine. After obtaining the special effect coloring instruction, the game engine can re-render the target special effect according to the special effect coloring instruction to obtain the corresponding rendering effect.

[0040] In summary, this embodiment provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's interface, it can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0041] Reference Figure 2 This diagram illustrates a flowchart of another rendering method provided in this embodiment. The method utilizes an application interface for a special effects coloring tool provided via a terminal. This tool communicates with a game engine, and the game engine's material files record coloring parameter information for various special effects. Specifically, the method may include the following steps:

[0042] Step 201: Respond to the control operation on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect.

[0043] In this embodiment of the disclosure, a special effects coloring tool can be used to achieve rapid and intuitive coloring of special effects. The application interface of the special effects coloring tool can include multiple controls, respond to the operations of the controls on the application interface, and determine the target special effect that needs to be recolored, as well as the target coloring parameters that the target special effect needs to be rendered. The special effects coloring tool can be written in Python.

[0044] In one optional embodiment of this disclosure, step 201, in response to control operations on the application interface, determines the target effect requiring color adjustment and the target color parameters for the target effect, which may specifically include the following sub-steps:

[0045] In response to multiple control operations on the application interface, the target effect that needs to be adjusted for color is determined in sequence, the target color parameters of the target effect are determined, and the target material file that records the color parameter information of the target effect is determined.

[0046] In this embodiment of the disclosure, the user can perform multiple control operations in the application interface. Based on these multiple control operations, the target effect that needs to be recolored is determined in sequence, the target coloring parameters that the target effect needs to be rendered are determined, and the target material file that records the coloring parameter information of the target effect is determined. This embodiment of the disclosure can determine the file storage path of the target material file, and the user can quickly find the target material file to modify the coloring parameters.

[0047] Reference Figure 3 The diagram shows an application interface of a special effects coloring tool according to an embodiment of this disclosure. Users can determine the name of the target special effect to be adjusted and the file storage path of the material file containing the coloring parameter information of the target special effect (the location of the special effects file in the diagram) through control operations. By sliding the control, the target coloring parameters to be rendered for the target special effect can be determined. The adjustable coloring parameters may include hue, saturation, and brightness. Furthermore, the application interface may include a backup control for backing up the initial coloring parameter information of the special effect.

[0048] Step 202: Respond to the trigger operation of the color parameter adjustment control in the application interface, and adjust the recorded color parameter information of the target effect to the target color parameter.

[0049] In this embodiment of the disclosure, the application interface of the special effects dyeing tool includes a dyeing parameter adjustment control. The tool responds to the trigger operation of the dyeing parameter adjustment control and can adjust the dyeing parameter information of the target special effects, which is recorded in text form, to the target dyeing parameters.

[0050] In one optional embodiment of this disclosure, step 202, responding to a trigger operation on the color parameter adjustment control in the application interface, adjusts the recorded color parameter information of the target effect to the target color parameter, which may specifically include the following sub-steps:

[0051] In response to the trigger operation of the color parameter adjustment control in the application interface, the color parameter information of the target effect recorded in the target material file is adjusted to the target color parameter.

[0052] In this embodiment of the disclosure, responding to the trigger operation of the color parameter adjustment control can adjust the color parameter information of the target effect recorded in the target material file to the target color parameter.

[0053] In one optional embodiment of this disclosure, the target effect includes multiple target sub-effects, and the coloring parameter information of the target effect includes the coloring parameter information of multiple target sub-effects. In step 202, in response to the trigger operation of the coloring parameter adjustment control in the application interface, the recorded coloring parameter information of the target effect is adjusted to the target coloring parameter. Specifically, this may include the following sub-steps:

[0054] In response to the trigger operation of the color parameter adjustment control in the application interface, the recorded color parameter information of multiple target sub-effects is batch adjusted to the target color parameter.

[0055] A special effect can be composed of multiple sub-effects. Game special effects can include shattering particle effects, dissipating particle effects, Fresnel effects, translation effects, distortion effects, stretching effects, double-layer effects, etc.

[0056] In this embodiment of the disclosure, the target effect includes multiple target sub-effects. The coloring parameter information corresponding to the multiple target sub-effects that make up the target effect can be found by the effect coloring tool, and then the coloring parameter information corresponding to the multiple target sub-effects can be modified in batches.

[0057] In this disclosure, artists specify the name of the effect to be adjusted and the storage path of its material file. The effect coloring tool can then locate the material file containing the coloring parameters for all sub-effects. The tool can then batch adjust the coloring parameters in the material files. For example, the tool will iterate through all associated sub-effects using the parent material file and then modify the coloring parameters of each sub-effect simultaneously.

[0058] The game engine's codebase includes shader code for various special effects. The special effects coloring tool is closely related to this shader code. In this embodiment, a new global coloring function is added to the game engine; that is, the game engine's codebase also includes a callable preset global coloring function. This preset global coloring function can be called by the shader code for various special effects. Specifically, this can be achieved through a header file, allowing the shader code for various special effects to call this preset global coloring function for coloring.

[0059] Step 203: Respond to the trigger operation of the color control in the application interface, generate the corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine, so that the game engine controls the shader program code of the target special effect to call the preset global coloring function to re-render the target special effect according to the special effect coloring instruction, and obtain the corresponding special effect.

[0060] In this embodiment of the disclosure, responding to a trigger operation applied to the coloring control can generate corresponding special effect coloring instructions. For example... Figure 3 As shown, users can enter command information in a designated area of ​​the application interface, and then click the coloring control to generate the corresponding special effect coloring command.

[0061] After receiving the effect coloring instruction, the game engine can control the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect.

[0062] In one optional embodiment of this disclosure, in step 203, the game engine controls the shader program code of the target effect to call a preset global shading function to re-render the target effect according to the special effect shading instruction, so as to obtain the corresponding special effect. Specifically, it may include the following sub-steps:

[0063] If the target effect is a first-class effect, the game engine, according to the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to render the target effect as the first-class effect corresponding to the target coloring parameters.

[0064] The first type of effect can be a non-grayscale effect. For this type of effect, a preset global coloring function can directly adjust the coloring parameters of the effect. These coloring parameters include one or more of hue, saturation, and brightness.

[0065] In this embodiment of the disclosure, if the target effect is a first type of effect, the game engine controls the shader program code of the target effect to call a preset global tinting function to render the target effect into the first effect corresponding to the target tinting parameters according to the effect tinting instruction. Specifically, the tinting parameter offset of the target effect can be directly adjusted to the target tinting parameter.

[0066] In one optional embodiment of this disclosure, in step 203, the game engine controls the shader program code of the target effect to call a preset global shading function to re-render the target effect according to the special effect shading instruction, so as to obtain the corresponding special effect. Specifically, it may include the following sub-steps:

[0067] If the target effect is a second type of effect, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to overlay the specified color corresponding to the target coloring parameters onto the target effect, thereby obtaining the corresponding second effect.

[0068] The second type of effect can be grayscale effect. For grayscale effect, the display color cannot be adjusted by offset adjustment. Therefore, for the second type of effect, the preset global coloring function provides a "coloring" function, which can overlay a specified color on the effect.

[0069] In this embodiment of the disclosure, if the target effect is a second type of effect, the game engine controls the shader program code of the target effect to call a preset global coloring function according to the effect coloring instruction to overlay the specified color corresponding to the target coloring parameter onto the target effect to obtain the corresponding second effect.

[0070] In one optional embodiment of this disclosure, the following steps may also be included:

[0071] After re-rendering the target effect, obtain the effect refresh command from the game engine, and refresh the display of the target effect in the application interface based on the effect refresh command.

[0072] Reference Figure 4 The diagram shown is a communication schematic between a special effects dyeing tool and a game engine according to an embodiment of this disclosure. The game engine has a communication interface, and the special effects dyeing tool can communicate with the game engine communication interface based on Telnet (remote terminal protocol).

[0073] In this embodiment, the special effects coloring tool communicates with the game engine port via Telnet. After the game engine completes the re-rendering of the target special effects, it can send a special effects refresh command to the special effects coloring tool. Based on the special effects refresh command, the special effects of the target special effects can be refreshed and displayed in the application interface of the special effects coloring tool, so that the adjusted effects can be quickly updated to the special effects coloring tool for artists to view.

[0074] In summary, this embodiment provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's interface, it can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0075] This disclosure modifies the shader source code for special effects in the game engine, adding a unified global coloring function. It also allows for batch modification of special effects material data in engine files using external tools. Furthermore, this disclosure can send commands to the game engine to re-render special effects. The special effects coloring tool provided in this disclosure can adjust the hue, saturation, brightness, etc., of special effects files as a whole, and can refresh the shader program code of the game engine in real time, allowing artists to intuitively see the adjusted special effects. This disclosure can significantly reduce the workload of art production, greatly shorten the coloring time of special effects resources, and does not increase the size of the game package.

[0076] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of this disclosure are not limited to the described order of actions, because according to the embodiments of this disclosure, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of this disclosure.

[0077] Reference Figure 5 This diagram illustrates a structural block diagram of a rendering apparatus provided in an embodiment of this disclosure. It provides an application interface for a special effects coloring tool via a terminal. This tool is communicatively connected to a game engine, and the game engine's material files record coloring parameter information for various special effects. Specifically, it may include the following modules:

[0078] The determination module 501 is used to respond to the control operation of the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect;

[0079] The adjustment module 502 is used to respond to the trigger operation of the color parameter adjustment control in the application interface and adjust the recorded color parameter information of the target effect to the target color parameter.

[0080] The generation and sending module 503 is used to respond to the trigger operation of the coloring control in the application interface, generate the corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction.

[0081] In this embodiment of the disclosure, the game engine's code set includes shader program code for various special effects, as well as callable preset global coloring functions. The game engine re-renders the target special effect according to the special effect coloring instructions, including:

[0082] The game engine, based on the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect.

[0083] In this embodiment of the disclosure, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect, including:

[0084] If the target effect is a first type of effect, the game engine controls the shader program code of the target effect to call the preset global tinting function to render the target effect into the first effect effect corresponding to the target tinting parameters according to the effect tinting instruction; wherein, the tinting parameters include one or more of hue, saturation and brightness.

[0085] In this embodiment of the disclosure, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect, including:

[0086] If the target effect is a second type of effect, the game engine controls the shader program code of the target effect to call the preset global coloring function according to the effect coloring instruction to overlay the specified color corresponding to the target coloring parameter onto the target effect to obtain the corresponding second effect.

[0087] In this embodiment of the disclosure, the target effect includes multiple target sub-effects, and the coloring parameter information of the target effect includes the coloring parameter information of the multiple target sub-effects. The adjustment module includes:

[0088] The batch adjustment submodule is used to respond to the trigger operation of the color parameter adjustment control in the application interface, and to batch adjust the recorded color parameter information of the various target sub-effects to the target color parameters.

[0089] In this embodiment of the disclosure,

[0090] The determining module includes:

[0091] The sub-modules are determined sequentially to respond to multiple control operations on the application interface, the target effect that needs to be adjusted for coloring is determined sequentially, the target coloring parameters of the target effect are determined, and the target material file that records the coloring parameter information of the target effect is determined.

[0092] The adjustment module includes:

[0093] The adjustment submodule is used to respond to the trigger operation of the color parameter adjustment control in the application interface, and adjust the color parameter information of the target effect recorded in the target material file to the target color parameter.

[0094] In this embodiment of the disclosure, the apparatus further includes:

[0095] The acquisition and refresh display module is used to acquire the effect refresh instruction of the game engine after re-rendering the target effect, and refresh and display the effect of the target effect in the application interface based on the effect refresh instruction.

[0096] In summary, this embodiment provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's interface, it can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0097] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0098] This disclosure also provides an electronic device, such as... Figure 6 As shown, it includes: a processor 601, a memory 602, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described rendering method embodiment and achieves the same technical effect, for example:

[0099] The terminal provides an application interface for a special effects coloring tool, which communicates with the game engine. The game engine's material files record coloring parameter information for various special effects. When the processor 601 executes the computer program stored in the memory 602, it performs the following steps:

[0100] In response to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect;

[0101] In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the target effect is adjusted to the target color parameter.

[0102] In response to a trigger operation on the coloring control in the application interface, a corresponding special effect coloring instruction is generated and sent to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction.

[0103] In one optional implementation, the game engine's codebase includes shader program code for various special effects, as well as callable preset global coloring functions. The game engine re-renders the target special effect according to the special effect coloring instructions, including:

[0104] The game engine, based on the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect.

[0105] In one optional implementation, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including:

[0106] If the target effect is a first type of effect, the game engine controls the shader program code of the target effect to call the preset global tinting function to render the target effect into the first effect effect corresponding to the target tinting parameters according to the effect tinting instruction; wherein, the tinting parameters include one or more of hue, saturation and brightness.

[0107] In one optional implementation, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including:

[0108] If the target effect is a second type of effect, the game engine controls the shader program code of the target effect to call the preset global coloring function according to the effect coloring instruction to overlay the specified color corresponding to the target coloring parameter onto the target effect to obtain the corresponding second effect.

[0109] In one optional implementation, the target effect includes multiple target sub-effects, and the coloring parameter information of the target effect includes the coloring parameter information of the multiple target sub-effects. The response to the triggering operation of the coloring parameter adjustment control in the application interface, adjusting the recorded coloring parameter information of the target effect to the target coloring parameter, includes:

[0110] In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the various target sub-effects is batch adjusted to the target color parameter.

[0111] In one alternative implementation,

[0112] The response to the control operations of the application interface determines the target effect that needs color adjustment, and determines the target color parameters of the target effect, including:

[0113] In response to multiple control operations on the application interface, the target effect that needs to be adjusted for coloring is determined in sequence, the target coloring parameters of the target effect are determined, and the target material file that records the coloring parameter information of the target effect is determined.

[0114] The response triggers the color parameter adjustment control in the application interface, adjusting the recorded color parameter information of the target effect to the target color parameters, including:

[0115] In response to a trigger operation on the color parameter adjustment control in the application interface, the color parameter information of the target effect recorded in the target material file is adjusted to the target color parameter.

[0116] In an optional implementation, the method further includes:

[0117] After re-rendering the target effect, obtain the effect refresh instruction from the game engine, and refresh and display the effect of the target effect in the application interface based on the effect refresh instruction.

[0118] In summary, this embodiment provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's interface, it can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0119] This disclosure also provides a computer-readable storage medium storing a computer program. When executed by a processor, the computer program implements the various processes of the above-described rendering method embodiment and achieves the same technical effect, for example:

[0120] The terminal provides an application interface for a special effects coloring tool, which communicates with the game engine. The game engine's material files record coloring parameter information for various special effects. When the processor executes a computer program stored on a computer-readable storage medium, it performs the following steps:

[0121] In response to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect;

[0122] In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the target effect is adjusted to the target color parameter.

[0123] In response to a trigger operation on the coloring control in the application interface, a corresponding special effect coloring instruction is generated and sent to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction.

[0124] In one optional implementation, the game engine's codebase includes shader program code for various special effects, as well as callable preset global coloring functions. The game engine re-renders the target special effect according to the special effect coloring instructions, including:

[0125] The game engine, based on the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect and obtain the corresponding effect.

[0126] In one optional implementation, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including:

[0127] If the target effect is a first type of effect, the game engine controls the shader program code of the target effect to call the preset global tinting function to render the target effect into the first effect effect corresponding to the target tinting parameters according to the effect tinting instruction; wherein, the tinting parameters include one or more of hue, saturation and brightness.

[0128] In one optional implementation, the game engine, according to the effect coloring instruction, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including:

[0129] If the target effect is a second type of effect, the game engine controls the shader program code of the target effect to call the preset global coloring function according to the effect coloring instruction to overlay the specified color corresponding to the target coloring parameter onto the target effect to obtain the corresponding second effect.

[0130] In one optional implementation, the target effect includes multiple target sub-effects, and the coloring parameter information of the target effect includes the coloring parameter information of the multiple target sub-effects. The response to the triggering operation of the coloring parameter adjustment control in the application interface, adjusting the recorded coloring parameter information of the target effect to the target coloring parameter, includes:

[0131] In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the various target sub-effects is batch adjusted to the target color parameter.

[0132] In one alternative implementation,

[0133] The response to the control operations of the application interface determines the target effect that needs color adjustment, and determines the target color parameters of the target effect, including:

[0134] In response to multiple control operations on the application interface, the target effect that needs to be adjusted for coloring is determined in sequence, the target coloring parameters of the target effect are determined, and the target material file that records the coloring parameter information of the target effect is determined.

[0135] The response triggers the color parameter adjustment control in the application interface, adjusting the recorded color parameter information of the target effect to the target color parameters, including:

[0136] In response to a trigger operation on the color parameter adjustment control in the application interface, the color parameter information of the target effect recorded in the target material file is adjusted to the target color parameter.

[0137] In an optional implementation, the method further includes:

[0138] After re-rendering the target effect, obtain the effect refresh instruction from the game engine, and refresh and display the effect of the target effect in the application interface based on the effect refresh instruction.

[0139] In summary, this embodiment provides a special effects coloring tool that communicates with a game engine. Responding to control operations on the tool's interface, it can determine the target special effect requiring coloring adjustment and the target coloring parameters to be rendered. By triggering the coloring parameter adjustment control, the coloring parameter information of the target special effect recorded in the material file can be adjusted to the target coloring parameters. Furthermore, by triggering the coloring control, a corresponding special effects coloring instruction can be generated, triggering the game engine to re-render the target special effect according to the instruction. By employing this method, a rapid coloring solution for special effects is provided. Artists can use an external special effects coloring tool to batch adjust the coloring parameters of special effects in material files and send instructions to the game engine for real-time rendering, making the special effects coloring process simple and convenient.

[0140] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0141] Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, apparatus, or computer program products. Therefore, embodiments of this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this disclosure can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0142] This disclosure describes embodiments of methods, terminal devices (systems), and computer program products according to embodiments of this disclosure with reference to flowchart illustrations and / or block diagrams. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0143] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0144] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0145] While preferred embodiments of the present disclosure have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including both the preferred embodiments and all changes and modifications falling within the scope of the present disclosure.

[0146] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0147] The rendering method, rendering apparatus, electronic device, and computer-readable storage medium provided in this disclosure have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this disclosure. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this disclosure. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this disclosure. Therefore, the content of this specification should not be construed as a limitation of this disclosure.

Claims

1. A rendering method, characterized in that, The method includes providing an application interface for a special effects coloring tool via a terminal. This tool communicates with a game engine, and the game engine's material files record coloring parameter information for various special effects. In response to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect; In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the target effect is adjusted to the target color parameter. In response to a trigger operation on the coloring control in the application interface, a corresponding special effect coloring instruction is generated and sent to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction; The response to the control operations of the application interface, determining the target effect that needs color adjustment, and determining the target color parameters of the target effect, includes: In response to multiple control operations on the application interface, the target effect that needs to be adjusted for coloring is determined in sequence, the target coloring parameters of the target effect are determined, and the target material file that records the coloring parameter information of the target effect is determined. The game engine's codebase includes shader code for various special effects, as well as callable preset global coloring functions. The game engine re-renders the target special effect according to the special effect coloring instructions, including: The game engine controls the shader program code of the target effect to call the preset global tinting function to re-render the target effect according to the effect tinting instruction, so as to obtain the corresponding effect. The preset global tinting function is used to be called by the shader program code of the various effects.

2. The method according to claim 1, characterized in that, The game engine, based on the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including: If the target effect is a first type of effect, the game engine controls the shader program code of the target effect to call the preset global tinting function to render the target effect into the first effect effect corresponding to the target tinting parameters according to the effect tinting instruction; wherein, the tinting parameters include one or more of hue, saturation and brightness.

3. The method according to claim 1, characterized in that, The game engine, based on the effect coloring instructions, controls the shader program code of the target effect to call the preset global coloring function to re-render the target effect, thereby obtaining the corresponding effect, including: If the target effect is a second type of effect, the game engine controls the shader program code of the target effect to call the preset global coloring function according to the effect coloring instruction to overlay the specified color corresponding to the target coloring parameter onto the target effect to obtain the corresponding second effect.

4. The method according to claim 1, characterized in that, The target effect includes multiple target sub-effects, and the coloring parameter information of the target effect includes the coloring parameter information of the multiple target sub-effects. The response to the triggering operation of the coloring parameter adjustment control in the application interface adjusts the recorded coloring parameter information of the target effect to the target coloring parameter, including: In response to a trigger operation on the color parameter adjustment control in the application interface, the recorded color parameter information of the various target sub-effects is batch adjusted to the target color parameter.

5. The method according to claim 1, characterized in that, The response triggers the color parameter adjustment control in the application interface, adjusting the recorded color parameter information of the target effect to the target color parameters, including: In response to a trigger operation on the color parameter adjustment control in the application interface, the color parameter information of the target effect recorded in the target material file is adjusted to the target color parameter.

6. The method according to claim 1, characterized in that, The method further includes: After re-rendering the target effect, obtain the effect refresh instruction from the game engine, and refresh and display the effect of the target effect in the application interface based on the effect refresh instruction.

7. A rendering apparatus, characterized in that, The device provides an application interface for a special effects coloring tool via a terminal. This tool communicates with a game engine, whose material files contain coloring parameter information for various special effects. The device includes: The determination module is used to respond to control operations on the application interface, determine the target effect that needs to be adjusted for coloring, and determine the target coloring parameters of the target effect. The adjustment module is used to respond to the trigger operation of the color parameter adjustment control in the application interface and adjust the recorded color parameter information of the target effect to the target color parameter. The generation and sending module is used to respond to the trigger operation of the coloring control in the application interface, generate the corresponding special effect coloring instruction, and send the special effect coloring instruction to the game engine so that the game engine re-renders the target special effect according to the special effect coloring instruction; The determining module includes: The sub-modules are determined sequentially to respond to multiple control operations on the application interface, the target effect that needs to be adjusted for coloring is determined sequentially, the target coloring parameters of the target effect are determined, and the target material file that records the coloring parameter information of the target effect is determined. The game engine's codebase includes shader code for various special effects, as well as callable preset global coloring functions. The game engine re-renders the target special effect according to the special effect coloring instructions, including: The game engine controls the shader program code of the target effect to call the preset global tinting function to re-render the target effect according to the effect tinting instruction, so as to obtain the corresponding effect. The preset global tinting function is used to be called by the shader program code of the various effects.

8. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements a rendering method as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements a rendering method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Special effect rendering method and device, computer readable medium and electronic equipment

    CN115937378A

  • Three-dimensional game rendering method, three-dimensional engine, electronic device, and readable storage medium

    WO2022032486A1