Image processing method, system, device and computer-readable storage medium
By obtaining the current state parameters and adjustment parameters of particles in open world games, combining prefabricated control parameters to form particle target parameters, and using the positive-film stacked processing method, the problem of different lighting effects caused by day and night cycle changes in the virtual world is solved, improving the visual beauty of the video image and saving labor costs.
Patent Information
- Application Number
- CN202111419663.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In the open world game, the difference in lighting and post-processing effects caused by day and night cycle changes in the virtual world have poor aesthetics and need to be adjusted to conform to the visual aesthetics.
By obtaining the current state parameters of the particles, combining prefabricated control parameters and basic adjustment parameters to form particle target parameters, the display effect of particles is changed using the positive-film stacking method to form a dynamic video stream that conforms to the visual beauty.
It has achieved the visual aesthetic improvement of dynamic video effects, reduced art processing needs, saved labor costs, and had high computing efficiency, without causing color level overflow.
Smart Images

Figure CN114119799B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video stream image processing, and in particular to an image processing method, system, device and computer-readable storage medium. Background Art
[0002] Open-world games create a virtual world where players can roam and freely choose the time and method of completing game tasks. To achieve realism, the virtual world simulates the real world with a day-night cycle. During this cycle, the lighting direction, intensity, and post-processing in the virtual world need to change dynamically based on time and weather conditions. For example, animation curves are set in the rendering engine to adjust global illumination to achieve day-night effects. Similarly, special effects are also affected by lighting and post-processing. For example, the stars formed by a particle system can be transformed into stars by setting a star count curve to achieve the transition between day and night, with fewer stars during daytime and more at night. Based on the different times in the video image, different video images are displayed. Although the processed different video images are closer to the real world, their overall aesthetic quality is slightly lower. For example, the aesthetic quality of real human images converted into game characters is slightly lower, and the game character images need to be adjusted to match the visual aesthetic. Summary of the Invention
[0003] In one aspect, the present application provides an image processing method, comprising:
[0004] Obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0005] A display video stream output is formed according to the particle current state parameters and the particle target parameters.
[0006] Preferably, the above-mentioned image processing method, wherein the step of obtaining a prefabricated particle current state parameter and forming a particle target parameter according to the particle current state parameter in combination with a prefabricated control parameter and a basic adjustment parameter, comprises:
[0007] At least one basic adjustment parameter is provided, and an adjustment parameter set is formed according to the basic adjustment parameter; and a prefabricated control parameter is formed according to the adjustment parameter set and the time information;
[0008] Acquire particles matching the basic adjustment parameters from current particle data to form the prefabricated particles;
[0009] The adjustment coefficient of each prefabricated particle is set to form the prefabricated control parameter.
[0010] Preferably, in the above-mentioned image processing method, obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter specifically includes:
[0011] Reading current time information and current state parameters of the particle, forming a time parameter according to the time information, and obtaining a prefabricated control parameter according to the current state parameters of the particle;
[0012] forming a basic adjustment parameter that matches the current time parameter according to the time parameter;
[0013] The target parameter is formed according to the prefabricated control parameter and the basic adjustment parameter.
[0014] Preferably, in the above-mentioned image processing method, forming a display video stream output according to the particle current state parameters and the particle target parameters specifically includes:
[0015] forming a base color signal according to the current state parameters of the particle;
[0016] forming a mixed color signal according to the particle target parameters;
[0017] A multiply process is performed on the primary color signal and the mixed color signal to form the display video stream.
[0018] On the other hand, the present application further provides an image processing system, comprising:
[0019] The target parameter forming unit obtains a prefabricated particle current state parameter, and forms a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0020] The video stream forming unit forms a display video stream output according to the particle current state parameters and particle target parameters.
[0021] Preferably, the above-mentioned image processing system further includes:
[0022] At least one basic adjustment parameter is provided, and an adjustment parameter set is formed according to the basic adjustment parameter; and a prefabricated control parameter is formed according to the adjustment parameter set and the time information;
[0023] A prefabricated particle forming unit, which obtains particles matching the basic adjustment parameters from current particle data to form the prefabricated particles;
[0024] The prefabricated control parameter forming unit sets each prefabricated particle adjustment coefficient to form the prefabricated control parameter.
[0025] Preferably, in the above-mentioned image processing system, the target parameter forming unit specifically includes:
[0026] A reading module reads the current time information and the current state parameters of the particle, forms a time parameter according to the time information, and obtains a prefabricated control parameter according to the current state parameters of the particle;
[0027] A setting module, forming a basic adjustment parameter matching the current time parameter according to the time parameter;
[0028] The target parameter module forms the target parameter according to the prefabricated control parameter and the basic adjustment parameter.
[0029] Preferably, in the above-mentioned image processing system, the video stream forming unit specifically includes:
[0030] A base color module, which forms a base color signal according to the current state parameters of the particle;
[0031] A mixed color module forms a mixed color signal according to the particle target parameters;
[0032] The processing module performs a positive film overlay process on the primary color signal and the mixed color signal to form the display video stream.
[0033] On the other hand, the present application provides an image processing device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the image processing method as described in any one of the above items.
[0034] Finally, the present application further provides a computer-readable storage medium, on which a video game fusion processing program is stored. When the video game fusion processing program is executed by a processor, the steps of any of the above-mentioned image processing methods are implemented.
[0035] Compared with the prior art, the present invention has the following advantages:
[0036] By adding a prefabricated control parameter and basic adjustment parameters to a script file, the target parameters can be obtained by running the control program in the script file. The particle display effect is then modified according to the target parameters through the multiply processing method. The multiply blending mode does not cause color level overflow, is relatively easy to calculate, and consumes less computing power throughout the entire operation. Another advantage is that the dynamic video effect formed by the blending is more visually aesthetic, and no further art processing is required, saving labor costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1A schematic flow chart of an image processing method provided by an embodiment of the present invention;
[0038] Figure 2 A schematic flow chart of an image processing method provided by an embodiment of the present invention;
[0039] Figure 3 A schematic flow chart of an image processing method provided by an embodiment of the present invention;
[0040] Figure 4 A schematic flow chart of an image processing method provided by an embodiment of the present invention;
[0041] Figure 5 A schematic structural diagram of an image processing device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] Example 1
[0043] like Figure 1 As shown, an image processing method, schematically, can be applied to a rendering engine system, which includes:
[0044] Step S110: obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0045] The prefabricated particles can be formed as required. The prefabricated particles are the objects to be adjusted in the image processing method of this embodiment. The particles not selected in the particle system are particles that do not need to be adjusted.
[0046] The current state parameters of the particles include at least the time parameters of the current moment; the prefabricated control parameters are the adjustment magnification coefficients of the prefabricated particles, and the basic adjustment parameters include at least the control parameters of the image color or transparency that matches the current moment.
[0047] Step S120: generating a display video stream output according to the particle current state parameters and the particle target parameters.
[0048] Specifically, the current state parameter of the particle is the original color of the particle. The image formed by the original color and the particle target parameter is subjected to a multiply operation to form the display video stream output, thereby changing the final display effect of the particle system.
[0049] In this embodiment, by adding a prefabricated control parameter and basic adjustment parameters to change the display effect of the particles through the multiply processing method, the use of the multiply blending mode does not produce color scale overflow, and the calculation is relatively convenient, and the computing power occupied by the entire operation process is relatively small. Another convenience is that the dynamic video effect formed by the blending can be made more in line with the visual aesthetic, and no further art processing is required, saving labor costs. In addition, in this application, only a script file containing prefabricated control parameters and basic adjustment parameters needs to be set.
[0050] It should be noted that this embodiment does not modify the particle system (i.e., the special effects prefab prefab), so that the particle system can be repeatedly applied to other occasions. It only changes the color or display effect of the particles during the particle emitter's emission of particles to make the changed display effect more in line with visual aesthetics.
[0051] Furthermore, if Figure 2 As shown, step S110, obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter, includes:
[0052] Step S1091: At least one basic adjustment parameter is set, and an adjustment parameter set is formed based on the basic adjustment parameter; prefabricated control parameters are formed based on the adjustment parameter set and time information. Illustratively, basic adjustment parameters can be formed by setting them in Gradient. For example, in the Gradient edit menu, set the mode to blended processing, set the position format to all day, and then add sliders to form at least one basic adjustment parameter. Each slider is set with a color / transparency corresponding to the time. The number of sliders can be set freely and is not limited here.
[0053] It should be noted that the adjustment parameter set matches 24 hours (including the entire day and night changes), and each basic adjustment parameter has a corresponding time. For example, the first basic adjustment parameter corresponds to 3:00, and the color of its color block is red. The second basic adjustment parameter corresponds to 5:00, and the color of its color block is yellow. Then a color band gradually changes from red to yellow is formed between 3:00 and 5:00.
[0054] Step S1092: Obtain particles matching the basic adjustment parameters from the current particle data to form the prefabricated particles. The current particle data may be a particle system, where multiple particle systems form an overall special effect. Particles matching the basic adjustment parameters form the prefabricated particles.
[0055] Step S1093: Set the prefab control parameter as an adjustment factor for each prefab particle. Different prefabs are affected differently by day and night, so each prefab particle is assigned a different adjustment factor. The prefab control parameter can be generated using a script.
[0056] It should be noted that the steps S1091 to S1092 can be interchanged arbitrarily during actual use. The above three steps are intended to achieve basic adjustment parameters, prefabricated particles, and prefabricated control parameters.
[0057] like Figure 3 As shown, further, step S110, obtaining prefabricated particle current state parameters, and forming a particle target parameter according to the particle current state parameters in combination with the prefabricated control parameters and basic adjustment parameters specifically includes:
[0058] Step S1101, read the current time information and the current state parameters of the particle, form the time parameters according to the time information, and obtain the prefabricated control parameters according to the current state parameters of the particle; schematically, for example, if the current time in the game is 3:00 in the morning, the time parameter is 3:16, then the prefabricated control parameters corresponding to 3:16 are obtained in the adjustment parameter set.
[0059] Step S1102: forming a basic adjustment parameter that matches the current time parameter according to the time parameter; schematically, for example, if the current time in the game is 3:00 in the morning, the time parameter is 3:00, and the basic adjustment parameter corresponding to 3:00 is obtained.
[0060] The execution order of the above-mentioned step S1101 and step S1102 can be interchanged, and the exchanged order does not affect the realization of the technical purpose.
[0061] Step S1103: forming the target parameters according to the prefabricated control parameters and the basic adjustment parameters.
[0062] like Figure 4 As shown, further, step S120, forming a display video stream output according to the particle current state parameters and the particle target parameters, specifically includes:
[0063] Step S1201: forming a base color signal according to the current state parameters of the particle;
[0064] Step S1202: forming a mixed color signal according to the particle target parameters;
[0065] Step S1203: Perform a multiply process on the primary color signal and the mixed color signal to form the display video stream.
[0066] It should be noted that this embodiment does not modify the particle system (i.e., the special effects prefab prefab), so that the particle system can be repeatedly applied to other occasions. It only changes the color or display effect of the particles during the particle emitter's emission of particles to make the changed display effect more in line with visual aesthetics.
[0067] Example 2
[0068] On the other hand, the present application further provides an image processing system, comprising:
[0069] The target parameter forming unit obtains a prefabricated particle current state parameter, and forms a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0070] The video stream forming unit forms a display video stream output according to the particle current state parameters and particle target parameters.
[0071] As a further preferred embodiment, the above-mentioned image processing system further includes:
[0072] A basic adjustment parameter forming unit is provided with at least one basic adjustment parameter, forms an adjustment parameter set according to the basic adjustment parameter; and forms a prefabricated control parameter according to the adjustment parameter set and time information;
[0073] A prefabricated particle forming unit, which obtains particles matching the basic adjustment parameters from current particle data to form the prefabricated particles;
[0074] The prefabricated control parameter forming unit sets each prefabricated particle adjustment coefficient to form the prefabricated control parameter.
[0075] As a further preferred embodiment, in the above-mentioned image processing system, the target parameter forming unit specifically includes:
[0076] A reading module reads the current time information and the current state parameters of the particle, forms a time parameter according to the time information, and obtains a prefabricated control parameter according to the current state parameters of the particle;
[0077] A setting module, forming a basic adjustment parameter matching the current time parameter according to the time parameter;
[0078] The target parameter module forms the target parameter according to the prefabricated control parameter and the basic adjustment parameter.
[0079] As a further preferred embodiment, in the above-mentioned image processing system, the video stream forming unit specifically includes:
[0080] A base color module, which forms a base color signal according to the current state parameters of the particle;
[0081] A mixed color module forms a mixed color signal according to the particle target parameters;
[0082] The processing module performs a positive film overlay process on the primary color signal and the mixed color signal to form the display video stream.
[0083] The working principle of the above-mentioned image processing system is the same as the working principle of the image processing method provided in Example 1, and will not be described in detail here.
[0084] Example 3
[0085] On the other hand, the present application further provides an image processing device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of any one of the image processing device methods are implemented, including:
[0086] Obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0087] A display video stream output is formed according to the particle current state parameters and the particle target parameters.
[0088] like Figure 5 As shown, the device specifically includes: one or more processors 510, Figure 5 In the example, a processor 510 is used; the memory 520 is used to store one or more programs. When the one or more programs are executed by one or more processors 510, the one or more processors 510 implement the mixed reality interaction method described in any embodiment of the present invention. The processor 510 and the memory 520 can be connected via a bus or other means. Figure 5 The bus connection is taken as an example.
[0089] Memory 520, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions corresponding to the mixed reality interaction method in the embodiments of the present invention (for example, receiving signals and measuring field strength in various directions, determining one-way delay, and collecting TA information). The processor 510 executes the software programs, instructions, and modules stored in memory 520 to execute various functional applications and data processing of the device, thereby implementing the mixed reality interaction method described above.
[0090] The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created based on the use of the device, etc. In addition, the memory 520 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 520 may further include a memory remotely located relative to the processor 510, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0091] Example 4
[0092] Finally, the present application further provides a computer-readable storage medium, on which a video game fusion processing program is stored. When the video game fusion processing program is executed by a processor, the steps of any of the above-mentioned image processing methods are implemented, specifically including:
[0093] Obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter;
[0094] A display video stream output is formed according to the particle current state parameters and the particle target parameters.
[0095] Of course, the computer-readable storage medium provided by an embodiment of the present invention, whose computer-executable instructions are not limited to the method operations described above, can also execute related operations in the mixed reality interaction method provided by any embodiment of the present invention.
[0096] Through the above description of the implementation methods, those skilled in the art can clearly understand that the present invention can be implemented with the help of software and necessary general-purpose hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.
[0097] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0098] Note that the above are only preferred embodiments of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments, and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments and may include many other equivalent embodiments without departing from the concept of the present invention. The scope of the present invention is determined by the scope of the appended claims.
Claims
1. An image processing method, characterized in that: include: Obtaining a prefabricated particle current state parameter, and forming a particle target parameter according to the particle current state parameter combined with a prefabricated control parameter and a basic adjustment parameter; The current state parameters of the particles at least include a time parameter at the current moment and an original color parameter of the particles; Generating a display video stream output according to the particle current state parameters and the particle target parameters; Obtaining the current state parameters of prefabricated particles and forming a particle target parameter based on the current state parameters of the particles in combination with a prefabricated control parameter and a basic adjustment parameter includes: setting at least one basic adjustment parameter and forming an adjustment parameter set based on the basic adjustment parameter; forming a prefabricated control parameter based on the adjustment parameter set and moment information; obtaining particles matching the basic adjustment parameter in the current particle data to form the prefabricated particles; setting the prefabricated control parameter as an adjustment magnification coefficient for each prefabricated particle; wherein the basic adjustment parameter includes at least a control parameter of the image color or transparency matching the current moment.
2. An image processing method according to claim 1, characterized in that: Obtain the prefabricated current state parameters of the particle, and form a particle target parameter based on the current state parameters of the particle combined with a prefabricated control parameter and basic adjustment parameters. Specifically include: Reading current time information and current state parameters of the particle, forming a time parameter according to the time information, and obtaining a prefabricated control parameter according to the current state parameters of the particle; A basic adjustment parameter matching the current time parameter is formed according to the time parameter; and the target parameter is formed according to the prefabricated control parameter and the basic adjustment parameter.
3. The image processing method according to claim 1, wherein: Generating a display video stream output according to the particle current state parameters and the particle target parameters specifically includes: Forming a base color signal according to the current state parameters of the particle; forming a mixed color signal according to the target parameters of the particle; A multiply process is performed on the primary color signal and the mixed color signal to form the display video stream.
4. The image processing method according to claim 1, wherein: The current state parameters of the particle at least include the time parameter of the current moment; The prefabrication control parameter is an adjustment multiplication factor of the prefabricated particles; The basic adjustment parameters include at least control parameters of the image color or transparency that match the current moment.
5. An image processing system, characterized in that: include: A target parameter forming unit obtains prefabricated particle current state parameters, and forms a particle target parameter based on the particle current state parameters combined with a prefabricated control parameter and a basic adjustment parameter; the particle current state parameters at least include a current time parameter and an original color parameter of the particle; A video stream forming unit, forming a display video stream output according to the particle current state parameters and particle target parameters; The system also includes: a basic adjustment parameter forming unit, which is provided with at least one basic adjustment parameter and forms an adjustment parameter set based on the basic adjustment parameter; forms prefabricated control parameters based on the adjustment parameter set and moment information; a prefabricated particle forming unit, which obtains particles matching the basic adjustment parameter from current particle data to form the prefabricated particles; and a prefabricated control parameter forming unit, which sets the prefabricated control parameter as an adjustment magnification coefficient for each prefabricated particle; wherein the basic adjustment parameter includes at least a control parameter of the image color or transparency matching the current moment.
6. An image processing system according to claim 5, characterized in that: The target parameter forming unit specifically includes: A reading module reads the current time information and the current state parameters of the particle, forms a time parameter according to the time information, and obtains a prefabricated control parameter according to the current state parameters of the particle; A setting module, forming a basic adjustment parameter matching the current time parameter according to the time parameter; The target parameter module forms the target parameter according to the prefabricated control parameter and the basic adjustment parameter.
7. The image processing system according to claim 5, characterized in that: The video stream forming unit specifically includes: a base color module, which forms a base color signal according to the current state parameters of the particle; A mixed color module forms a mixed color signal according to the particle target parameters; The processing module performs a positive film overlay process on the primary color signal and the mixed color signal to form the display video stream.
8. The image processing system according to claim 5, characterized in that: The current state parameters of the particle at least include the time parameter of the current moment; The prefabrication control parameter is an adjustment multiplication factor of the prefabricated particles; The basic adjustment parameters include at least control parameters of the image color or transparency that match the current moment.
9. An image processing device, characterized in that The device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps of the image processing method according to any one of claims 1 to 4 are implemented.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a video game fusion processing program, which implements the steps of the image processing method according to any one of claims 1 to 4 when executed by a processor.
Citation Information
Patent Citations
Image-processing method and apparatus
CN101408974A
Game scene generation method and device, readable storage medium and electronic equipment
CN112891946A