Method, device, electronic device and storage medium for generating visual airflow

By replacing the smoke image on the airflow collision layer of the solid image and performing visual adjustment, the problem of low airflow visualization processing efficiency in the prior art is solved, and an efficient and real airflow visualization effect is achieved.

CN114119878BActive Publication Date: 2025-09-02广东精鹰传媒科技集团股份有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111463162.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2025-09-02
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

In the prior art, three-dimensional and particle means are used to present airflow, resulting in long engineering cycles and low efficiency.

Method used

By acquiring the airflow collision layer of the solid image, the smoke image is replaced on the airflow collision layer of the solid image, and a smoke image is added outside the airflow collision layer, and visual adjustment processing is performed to generate a visual airflow effect with fluctuation information.

Benefits of technology

The airflow visualization process is simplified, the processing efficiency is improved, and the authenticity and rapid generation of airflow visualization are achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114119878B_ABST
    Figure CN114119878B_ABST
Patent Text Reader

Abstract

The present application relates to the field of computer special effects processing, and more specifically, to a method, device, electronic device, and storage medium for generating a visualized airflow. The method includes the following steps: obtaining a physical image and a smoke image, wherein the smoke image has first fluctuation information; obtaining an airflow collision layer of the physical image according to preset scene information; replacing the smoke image with the airflow collision layer of the physical image so that the airflow collision layer of the physical image has second fluctuation information; adding the smoke image outside the airflow collision layer of the physical image; and performing visual adjustment processing on the smoke image outside the airflow collision layer of the physical image according to preset airflow fluctuation information. The present invention causes the physical image to display a distorted state resulting from the collision with the airflow, and by visually processing the smoke image outside the airflow collision layer, the generated visualized airflow fluctuation is made more realistic, and the implementation process is simple and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer special effects processing, and in particular to a method, device, electronic device and storage medium for generating a visualized airflow. Background Art

[0002] Airflow refers to the state of air movement. When air collides with an object, it generates strong air vibrations, the magnitude of which depends on factors such as the intensity and area of ​​the collision. Airflow is invisible, so in film, television, advertising, and industrial production, computer simulations are often used to visualize airflow. Because airflow is invisible, the airflow fluctuations depicted in many visual works vary greatly, and the difficulty of production also varies. For example, the flight of a bullet creates long airflow lines. There are many ways to visualize these airflow lines, including using 3D solid models to create a three-dimensional airflow and using high-density particles to simulate randomly fluctuating airflow lines. However, if large objects collide with air, using these 3D or particle-based methods to represent airflow will increase project time and be very inefficient.

[0003] There is currently no effective technical solution to the above problems. Summary of the Invention

[0004] The purpose of this application is to provide a method, device, electronic device and storage medium for generating a visualized airflow, aiming to solve the problems of long cycle and low efficiency caused by using three-dimensional, particle and other means to present the airflow.

[0005] In a first aspect, the present application provides a method for generating a visualized airflow, the method comprising the following steps:

[0006] Acquire an entity image and a smoke image, wherein the smoke image has first fluctuation information;

[0007] Acquire the airflow collision layer of the entity image according to preset scene information;

[0008] replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information;

[0009] Adding the smoke image outside the airflow collision layer of the entity image;

[0010] Visual adjustment processing is performed on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information.

[0011] The method for generating visualized airflow provided in this application uses post-processing image synthesis to visualize airflow fluctuations, simplifying the airflow visualization process and addressing the issues of low airflow visualization efficiency and long engineering cycles. This method can quickly achieve airflow visualization.

[0012] Optionally, in the method for generating visualized airflow described in the present application, both the entity image and the smoke image are images with channel information, or the smoke image is an image with channel information.

[0013] The entity image and the smoke image are images with channel information. The transparency and translucency of the entity image and the smoke image can be adjusted according to the background environment information, so that the entity image with visualized airflow fluctuations has a more realistic visual effect in the background environment.

[0014] Optionally, in the method for generating a visualized airflow described in the present application, the step of replacing the smoke image with the collision layer of the airflow of the physical image so that the airflow collision layer of the physical image has second fluctuation information includes:

[0015] Setting a first replacement procedure according to the airflow collision layer of the entity image;

[0016] Setting the smoke image as a displacement layer in the first displacement program so that the smoke image is displaced on the airflow collision layer of the solid image;

[0017] The brightness, maximum horizontality, and maximum verticality information of the smoke image in the first replacement procedure are adjusted so that the smoke image in the replacement procedure covers the collision layer of the entity image, so that the airflow collision layer of the entity image has second fluctuation information.

[0018] Optionally, in the method for generating visualized airflow described in the present application, the step of replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information includes:

[0019] Get the background image;

[0020] Acquire a transition layer where the background image contacts the airflow collision layer of the entity image;

[0021] Setting a second replacement program according to the airflow collision layer and the transition layer of the entity image;

[0022] Setting the smoke image as a displacement layer in the second displacement program, so that the smoke image is displaced on the airflow collision layer and the transition layer of the solid image;

[0023] Adjust the brightness, maximum horizontality and maximum verticality information of the smoke image in the second replacement program so that the smoke image in the replacement program covers the collision layer and the transition layer of the entity image, so that the airflow collision layer and the transition layer of the entity image have second fluctuation information.

[0024] Optionally, in the method for generating a visualized airflow described in the present application, the step of performing a visual adjustment process on the smoke image outside the collision layer of the entity image according to preset airflow fluctuation information includes:

[0025] Obtain preset airflow fluctuation information;

[0026] The transparency information and angle information of the smoke image outside the airflow collision layer of the entity image are adjusted according to the preset airflow fluctuation information, so that the smoke image outside the collision layer of the entity image is exposed outside the airflow collision layer of the entity image.

[0027] Optionally, in the method for generating visualized airflow described in the present application, the entity image is a dynamic image or a static image.

[0028] Optionally, in the method for generating visualized airflow described in the present application, the first fluctuation information of the smoke image outside the collision layer is synchronized with the second fluctuation information.

[0029] This application synchronizes the first fluctuation information with the second fluctuation information to avoid poor visualization effects caused by inconsistent fluctuation information of the two layers of smoke images, thereby ensuring the authenticity of the airflow fluctuation visualization.

[0030] In a second aspect, the present application provides a device for generating a visualized airflow, wherein the device for generating a visualized airflow fluctuation comprises:

[0031] Acquisition module, used to acquire entity images and smoke images;

[0032] An acquisition module, configured to acquire the airflow collision layer of the entity image according to preset scene information;

[0033] A replacement module, configured to replace the smoke image with the airflow collision layer of the entity image;

[0034] an adding module, configured to add the smoke image to the airflow collision layer of the entity image, so that the airflow collision layer of the entity image has second fluctuation information;

[0035] The adjustment module is used to perform visual adjustment processing on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information.

[0036] The device for generating a visualized airflow provided in the present application can realize the visualization of airflow fluctuations through a post-image synthesis processing method, thereby simplifying the airflow visualization process and solving the problems of low efficiency and long engineering cycle in airflow visualization processing.

[0037] In a third aspect, the present application provides an electronic device comprising a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps of the method provided in the first aspect are executed.

[0038] In a fourth aspect, the present application provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in the method provided in the first aspect are executed.

[0039] From the above, it can be seen that the present application provides a method, device, electronic device and storage medium for generating a visualized airflow, wherein the method obtains an airflow collision layer on a physical image and replaces a smoke image on the airflow collision layer of the physical image, so that the airflow collision layer of the physical image is distorted, and then a layer of smoke image is added to the surface of the replaced airflow collision layer to produce a visualized airflow effect with fluctuation information caused by the collision between the physical image and the airflow; this method can make the physical image show a distorted state caused by the collision with the airflow, and by visualizing the smoke image outside the airflow collision layer, the visualized airflow fluctuations caused by the collision between the physical image and the airflow are more realistic.

[0040] Other features and advantages of the present application will be described in the following description and, in part, will become apparent from the description or be understood by practicing the embodiments of the present application. The objectives and other advantages of the present application can be achieved and obtained through the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A flowchart of a method for generating a visualized airflow provided in an embodiment of the present application.

[0042] Figure 2 A schematic diagram of a physical image provided in an embodiment of the present application.

[0043] Figure 3 A schematic diagram of a partially distorted solid image provided in an embodiment of the present application.

[0044] Figure 4 A schematic diagram of obtaining a clear smoke image provided in an embodiment of the present application.

[0045] Figure 5The embodiment of the present application provides the implementation steps of replacing the smoke image with the collision layer of the airflow of the entity image so that the airflow collision layer of the entity image has the second fluctuation information.

[0046] Figure 6 The embodiment of the present application provides the implementation steps of replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has the second fluctuation information.

[0047] Figure 7 The embodiments of the present application provide implementation steps for visually adjusting the smoke image outside the collision layer of the entity image according to preset airflow fluctuation information.

[0048] Figure 8 A schematic diagram of a smoke image with preset airflow fluctuation information provided in an embodiment of the present application.

[0049] Figure 9 A schematic diagram of a physical image with an inclined angle provided in an embodiment of the present application.

[0050] Figure 10 A schematic diagram of adjusting the tilt angle of a smoke image provided in an embodiment of the present application.

[0051] Figure 11 A schematic diagram of matching an adjusted smoke image with an entity image with an inclined angle provided in an embodiment of the present application.

[0052] Figure 12 A schematic structural diagram of a device for generating a visualized airflow provided in an embodiment of the present application.

[0053] Figure 13 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work fall within the scope of protection of the present application.

[0055] It should be noted that similar reference numerals and letters represent similar items in the following drawings. Therefore, once an item is defined in one drawing, it does not need to be further defined or explained in subsequent drawings. At the same time, in the description of this application, the terms "first", "second", etc. are only used to distinguish the description and should not be understood as indicating or implying relative importance.

[0056] In real life, we often see visual effects of airflow fluctuations in movies and TV shows. However, in production, some methods use 3D solid models to represent the three-dimensional airflow, while others use high-density particles to simulate randomly fluctuating airflow lines. If large objects collide with air, using these 3D or particle-based methods to represent the airflow will increase project time and be very inefficient.

[0057] First, refer to Figure 1 , Figure 1 This is a flowchart of a method for generating a visual airflow provided by the present application, the method comprising the following steps:

[0058] S100, acquiring an entity image and a smoke image, wherein the smoke image has first fluctuation information;

[0059] S200, obtaining an airflow collision layer of an entity image according to preset scene information;

[0060] S300, replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information;

[0061] S400, adding a smoke image outside the airflow collision layer of the entity image;

[0062] S500 : Performing visual adjustment processing on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information.

[0063] The visual airflow generation method provided in the present application replaces the smoke image with the airflow collision layer of the entity image, causing the entity image to be distorted, and adds another layer of smoke image outside the airflow collision layer of the entity image. By visually adjusting the smoke image, the effect of the collision between the entity image and the airflow is made closer to reality. This method can make the entity image show the distorted state caused by the collision with the airflow, and by visualizing the smoke image outside the airflow collision layer, the visualized airflow fluctuations generated by the collision between the entity image and the airflow are more realistic.

[0064] Among them, Figure 2 ,The entity image is an independent image with channel information and has a certain volume.

[0065] Among them, the entity image and the smoke image are images with channel information. Specifically, in image processing, the channel generally represents the alpha channel, which refers to the transparency and translucency of the image. The channel information is used to reflect the transparency and translucency of the image. By adjusting the channel information, the transparency and translucency information of the entity image can be adjusted.

[0066] Among them, the airflow collision layer is the collision and contact part between the entity image and the airflow. In the process of obtaining the airflow collision layer, the airflow collision layer should be identified and obtained in combination with the scene information. The starting point of the airflow collision layer should be the front end along the movement direction of the entity image, and extend along the movement direction away from the entity image.

[0067] Among them, the preset scene information is the scene information where the entity image is located. The movement of the entity image in the scene can drive the air flow. According to different preset scene information, the state of the air flow is also different. Therefore, it is necessary to obtain the airflow collision layer formed by the collision of the entity image with the airflow when it moves according to the preset scene information, and display the fluctuation of the airflow.

[0068] Specifically, since the collision between the entity movement and the airflow will drive the air flow, in this embodiment, the smoke data is in a state of flowing in one direction, thereby simulating the fluctuating state of the airflow. Therefore, the airflow collision layer is the contact layer between the entity and the smoke, and exists on the surface of the entity image.

[0069] Specifically, the first fluctuation information reflects the airflow direction and fluctuation of the smoke image, and the second fluctuation information reflects the airflow direction and fluctuation of the smoke image after the smoke image is replaced with the airflow collision layer of the entity image. Figure 3 As shown, in the embodiment, the maximum horizontal data and the maximum vertical data of the airflow collision layer are adjusted according to the first fluctuation information of the smoke image, and then the smoke image is replaced on the airflow collision layer of the entity image, so that the airflow collision layer of the entity image produces a corresponding distortion state according to the fluctuation information of the smoke image, thereby making the visualized airflow on the entity image more realistic.

[0070] In some preferred embodiments, both the entity image and the smoke image are images with channel information, or only the smoke image is an image with channel information.

[0071] Specifically, the channel information is the transparency and translucency of the image. When only the smoke image is an image with channel information, in order to ensure the authenticity of the visualized airflow, the transparency and translucency of the smoke image need to be adjusted accordingly according to the information of the entity image. Preferably, both the entity image and the smoke image are images with channel information. In some embodiments, the entity image and the smoke image are both in the same background environment. The entity image needs to adaptively adjust its own transparency and translucency according to the background environment information. After the adjustment is completed, the smoke image adjusts its own transparency and translucency according to the adjusted entity image information, so that the resulting visualized airflow is more adapted to the background environment without causing any sense of disobedience. For example, when the background environment is a smoky river scene, the entity image is an image of a ship drifting on the river, and the smoke image is an image of the airflow fluctuations generated by the ship passing through the smoke, when the ship is in the smoky background, the ship should be hazy under the background. At this time, the transparency and translucency of the ship need to be adjusted according to the smoky background information so that the ship is hazy under the background environment. According to the adjusted channel information of the ship, the channel information of the smoke image is correspondingly adjusted so that the smoke image appears faintly on the surface of the contact between the ship and the smoke. Figure 4 As shown, in other embodiments, there is a situation where the smoke image is not clear. In this case, the transparency and translucency of the entity image can be adjusted first, and then the transparency and translucency of the smoke image can be adaptively adjusted. After the adjustment is completed, the transparency of the entity image can be restored, so that the smoke image is clearly displayed on the surface of the entity image without causing any sense of incongruity.

[0072] In some preferred embodiments, reference Figure 5 , Figure 5 A flowchart of the steps for replacing the smoke image with the collision layer of the airflow of the entity image so that the airflow collision layer of the entity image has second fluctuation information, including the following steps:

[0073] S311, setting a first replacement program according to the airflow collision layer of the entity image;

[0074] S312, setting the smoke image as a replacement layer in the first replacement program, so that the smoke image is replaced on the airflow collision layer of the entity image;

[0075] S313. Adjust the brightness, maximum horizontality, and maximum verticality information of the smoke image in the first replacement process so that the smoke image in the replacement process covers the airflow collision layer of the entity image, so that the airflow collision layer of the entity image has second fluctuation information.

[0076] Among them, the purpose of replacing the smoke image on the airflow collision layer so that the airflow collision layer has the second fluctuation information is to make the airflow collision layer in the entity image have a distortion state that matches the first fluctuation information of the smoke image, thereby making the visualized airflow generated by the entity collision airflow more realistic.

[0077] Specifically, the first replacement procedure is a procedure for replacing the smoke image on the surface of the airflow collision layer. In this step, after the smoke image is replaced on the airflow collision layer on the surface of the physical image, the smoke image will cover the airflow collision layer of the physical image to replace the first fluctuation information and cover it on the airflow collision layer, so that the airflow collision layer generates second fluctuation information.

[0078] In some preferred embodiments, reference Figure 6 , Figure 6 A flowchart of the steps for replacing a smoke image on an airflow collision layer of a physical image so that the airflow collision layer of the physical image has second fluctuation information, comprising the following steps:

[0079] S321, obtaining a background image;

[0080] S322, obtaining a transition layer where the airflow collision layer of the background image and the entity image contacts each other;

[0081] S323, setting a second replacement program according to the airflow collision layer and transition layer of the entity image;

[0082] S324, setting the smoke image as a replacement layer in the second replacement program, so that the smoke image is replaced on the airflow collision layer and transition layer of the solid image;

[0083] S325. Adjust the brightness, maximum horizontality, and maximum verticality information of the smoke image in the second replacement process so that the smoke image in the replacement process covers the collision layer and transition layer of the entity image, so that the airflow collision layer and transition layer of the entity image have second fluctuation information.

[0084] Specifically, the second fluctuation information is the fluctuation information of the overlapping part of the smoke image and the entity image. In some embodiments, in addition to the entity data and smoke data, there is also background environment data. Since airflow fluctuations not only affect the entity, but also affect the background environment around the entity, if there is a background environment, the entity data and the background environment data need to be merged into merged data, and then the smoke image is replaced on the merged data so that the replacement information acts on the entire image.

[0085] In some preferred embodiments, reference Figure 7 , Figure 7 A flowchart of the steps for visually adjusting the smoke image outside the collision layer of the entity image according to preset airflow fluctuation information, including the following steps:

[0086] S510, obtaining preset airflow fluctuation information;

[0087] S520 , adjusting transparency information and angle information of the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information, so that the smoke image outside the airflow collision layer of the entity image is exposed outside the airflow collision layer of the entity image.

[0088] Among them, Figure 8 As shown, the preset airflow fluctuation information can be information reflecting the airflow state, such as the flow direction and fluctuation size of the airflow. According to the obtained preset airflow fluctuation information, the transparency information and angle information of the smoke image outside the airflow collision layer are adjusted to make the smoke image match the entity image, such as Figure 9 、 10 , 11 are schematic diagrams of matching smoke images with entity images at different angles.

[0089] Specifically, when the smoke image covers the outside of the airflow collision layer of the entity image, the smoke image will protrude outside the airflow collision layer, causing the distortion of the entity image to be blocked and not displayed. Therefore, it is necessary to reduce the transparency of the smoke image outside the airflow collision layer so that the smoke appears lightly on the surface of the entity image.

[0090] Specifically, when an entity collides with an airflow, an airflow tail will be generated behind the entity. Therefore, when visualizing the smoke image, it is necessary to stretch the airflow tail as the tail part, and the airflow of the tail part should adjust its maximum horizontal data and maximum vertical data to make it stable.

[0091] In some preferred embodiments, the entity image is a dynamic image or a static image.

[0092] Specifically, in this embodiment, the maximum horizontal data and maximum vertical data of the smoke image are adjusted and replaced on the airflow collision layer of the entity image, so that the entity image is distorted, thereby producing the effect of airflow collision. Therefore, the entity image can be a static or dynamic image. Preferably, the entity image uses a dynamic image, and the airflow fluctuations displayed when colliding with the airflow are more realistic.

[0093] In some preferred embodiments, the first fluctuation information of the smoke image outside the collision layer is synchronized with the second fluctuation information.

[0094] Specifically, the first fluctuation information exists on the smoke image, and the second fluctuation information exists on the airflow collision layer. In this embodiment, it is necessary to cover the surface of the airflow collision layer with a layer of smoke image. Therefore, in order to ensure that the smoke image and the smoke image replaced on the airflow collision layer will not affect the overall visual effect, it is necessary to adjust the first fluctuation information and the second fluctuation information so that the first fluctuation information of the smoke image outside the collision layer is synchronized with the second fluctuation information to ensure the authenticity of the visualized airflow.

[0095] The preset airflow fluctuation information proposed in this application can be any form of airflow fluctuation, such as air waves from the palm of the hand, blowing, jetting, hot air eruption, cold air spreading, shock waves, etc.

[0096] Secondly, refer to Figure 12 , Figure 12 This is a schematic diagram of the structure of a device for generating a visualized airflow provided in this application. The device for generating a visualized airflow fluctuation includes:

[0097] Acquisition module, used to acquire entity images and smoke images;

[0098] An acquisition module, used to acquire the airflow collision layer of the entity image according to preset scene information;

[0099] A displacement module is used to displace the smoke image on the airflow collision layer of the entity image;

[0100] An adding module, configured to add the smoke image to the airflow collision layer of the entity image, so that the airflow collision layer of the entity image has second fluctuation information;

[0101] The adjustment module is used to perform visual adjustment processing on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information.

[0102] Specifically, the present application obtains a physical image and a smoke image through an acquisition module, obtains the airflow collision layer of the physical image according to preset scene information through the acquisition module, and after obtaining the airflow collision layer, adds a replacement program on the airflow collision layer through the replacement module, and sets the smoke image as the replacement layer. Subsequently, the smoke image is replaced on the airflow collision layer through the replacement program, and the smoke image is added outside the airflow collision layer through the adding module on the surface of the replaced airflow collision layer, so as to obtain a physical image with fluctuating airflow, and finally, the added smoke image is visualized through the adjustment module to quickly realize the visualized airflow fluctuation effect.

[0103] Thirdly, refer to Figure 13 , Figure 13A schematic diagram of the structure of an electronic device provided in this application includes a processor and a memory, the memory storing computer-readable instructions. When the computer-readable instructions are executed by the processor, any optional method of the above-mentioned embodiment is executed to achieve the following functions: obtaining the airflow collision layer of the entity image, replacing the smoke image on the airflow collision layer, adjusting the maximum vertical data and the maximum horizontal data to make the airflow collision layer in a distorted state, adding a layer of smoke data and performing visualization adjustment, and finally realizing the visualization of airflow fluctuations when the entity moves.

[0104] In a fourth aspect, the present application provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the method in any optional implementation of the above-mentioned embodiment is executed to achieve the following functions: obtaining the airflow collision layer of the entity image, replacing the smoke image on the airflow collision layer, adjusting the maximum vertical data and the maximum horizontal data to make the airflow collision layer in a distorted state, adding a layer of smoke data and performing visualization adjustment, and finally realizing the visualization of airflow fluctuations during entity movement.

[0105] In the embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interface, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0106] In addition, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0107] Furthermore, the functional modules in each embodiment of the present application can be integrated together to form an independent part, or each module can exist independently, or two or more modules can be integrated to form an independent part.

[0108] In this document, relational terms such as first and second, etc. are used merely to distinguish one entity or operation from another entity or operation, but do not necessarily require or imply any actual relationship or order between these entities or operations.

[0109] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. For those skilled in the art, various modifications and variations of the present application are possible. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A method for generating a visualized airflow, characterized in that: The following steps are involved: Acquire an entity image and a smoke image, wherein the smoke image has first fluctuation information; Acquire the airflow collision layer of the entity image according to preset scene information; replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information; Adding the smoke image outside the airflow collision layer of the entity image; Performing visual adjustment processing on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information; The first fluctuation information reflects the airflow direction and fluctuation of the smoke image, and the second fluctuation information reflects the airflow direction and fluctuation of the smoke image after the smoke image is replaced by the airflow collision layer of the entity image; The airflow collision layer of the entity image is the contact layer between the entity image and the smoke image, and exists on the surface of the entity image.

2. The method for generating a visualized airflow according to claim 1, characterized in that: The entity image and the smoke image are both images with channel information, or the smoke image is an image with channel information.

3. The method for generating a visualized airflow according to claim 1, wherein: The step of replacing the smoke image with the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information includes: Setting a first replacement procedure according to the airflow collision layer of the entity image; Setting the smoke image as a displacement layer in the first displacement program so that the smoke image is displaced on the airflow collision layer of the solid image; The brightness, maximum horizontality, and maximum verticality information of the smoke image in the first replacement procedure are adjusted so that the smoke image in the replacement procedure covers the airflow collision layer of the entity image, so that the airflow collision layer of the entity image has second fluctuation information.

4. The method for generating a visualized airflow according to claim 1, wherein: The step of replacing the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information includes: Get the background image; Acquire a transition layer where the background image contacts the airflow collision layer of the entity image; Setting a second replacement program according to the airflow collision layer and the transition layer of the entity image; Setting the smoke image as a displacement layer in the second displacement program, so that the smoke image is displaced on the airflow collision layer and the transition layer of the solid image; Adjust the brightness, maximum horizontality and maximum verticality information of the smoke image in the second replacement program so that the smoke image in the replacement program covers the collision layer and the transition layer of the entity image, so that the airflow collision layer and the transition layer of the entity image have second fluctuation information.

5. The method for generating a visualized airflow according to claim 1, wherein: The step of performing visual adjustment processing on the smoke image outside the collision layer of the entity image according to the preset airflow fluctuation information includes: Obtain preset airflow fluctuation information; The transparency information and angle information of the smoke image outside the airflow collision layer of the entity image are adjusted according to the preset airflow fluctuation information, so that the smoke image outside the collision layer of the entity image is exposed outside the airflow collision layer of the entity image.

6. The method for generating a visualized airflow according to claim 1, characterized in that: The entity image is a dynamic image or a static image.

7. The method for generating a visualized airflow according to claim 1, characterized in that: The first fluctuation information of the smoke image outside the collision layer is synchronized with the second fluctuation information.

8. A device for generating a visual airflow, characterized in that: The device for generating the visualized airflow fluctuations comprises: A first acquisition module is used to acquire an entity image and a smoke image, wherein the smoke image has first fluctuation information; A second acquisition module acquires the airflow collision layer of the entity image according to preset scene information; a replacement module, configured to replace the smoke image on the airflow collision layer of the entity image so that the airflow collision layer of the entity image has second fluctuation information; An adding module, configured to add the smoke image outside the airflow collision layer of the entity image; an adjustment module, configured to perform visual adjustment processing on the smoke image outside the airflow collision layer of the entity image according to preset airflow fluctuation information; The first fluctuation information reflects the airflow direction and fluctuation of the smoke image, and the second fluctuation information reflects the airflow direction and fluctuation of the smoke image after the smoke image is replaced by the airflow collision layer of the entity image; The airflow collision layer of the entity image is the contact layer between the entity image and the smoke image, and exists on the surface of the entity image.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps of the method according to any one of claims 1 to 7 are executed.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Program, information storage medium, and game device

    JP2008119222A

  • Air fluid circumstance visualization system and method based on Virtual Reality

    KR102121940B1