2D game weather effect processing method and processing device thereof
A processing method and technology of a processing device, which are applied in image data processing, 2D image generation, 3D image processing and other directions, can solve problems such as discontinuity, 2D games have no concept of depth, and it is difficult to achieve weather effects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Publication Date
- 2015-03-04
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to a game weather system processing method, in particular to a 2D game weather effect processing method. The invention also relates to a 2D game weather effect processing device. Background technique
[0002] In online games, the weather system has become a very important module. Through various weather effects, such as day, night, rain, wind, etc., the expressiveness of the scene is enhanced, allowing players to better immerse themselves in the atmosphere of the game. At the same time, it can also interact with players through the weather system to enhance the experience of the game.
[0003] In general 2D game rendering frames, each frame needs to render modules such as maps, scene elements, and UI interfaces. 3D games can change the scene lighting to achieve weather effects such as night, cool colors, and warm colors in the game scene, but there is no concept of lighting in the 2D game scene, so it is difficult to achieve th...
Examples
Embodiment 1
[0052] see figure 1 , which is a flow chart of the method for processing weather effects in a 2D game in Embodiment 1.
[0053] 2D game weather effect processing method of the present invention, comprises the following steps:
[0054] S11: Change the color of the map according to the weather conditions; specifically, the current map block of the 2D game is a picture, and the color change of the map is to achieve the desired weather effect by processing the picture pixel by pixel. For example, when the day turns into night, for each pixel in the map block picture, assuming that the pixel is represented by (R, G, B), the corresponding new pixel generated by the map color changing algorithm is (R', G', B') , where R'=G'=B'=(R+G+B) / 3.
[0055] S12: Render the color-changed map, scene and user interface.
[0056]S13: Perform full-screen processing on the rendered image. The full-screen processing refers to post-processing the rendered results of the game, which is realized afte...
Embodiment 2
[0063] In the game weather effect, it is also necessary to process the corresponding weather particles, combined with map color change and full-screen processing, to obtain better weather effects. Therefore, in this embodiment, a processing method of 2D game weather effects is provided that combines weather particles, map color processing and full-screen processing. see image 3 , which is a flow chart of the steps of the processing method of the 2D game weather effect of embodiment 2, the method comprises the following steps:
[0064] The mask weather system and the particle weather system are processed separately.
[0065] Among them, the processing of the mask-type weather system includes the following steps:
[0066] S11: According to the weather conditions, change the color of the map, and step S29; specifically, the current map block of the 2D game is a picture, and the color change of the map is to achieve the desired weather effect by performing pixel-by-pixel proces...