Nine-tailed Fire---an animated image generated by the algorithm

Source: Internet
Author: User

Before the algorithm generated the image of the fire, what I'm going to do is let the fire move. It seems that I am becoming more and more obsessed with the algorithm of generating images. I have been thinking about some boring things, such as how the snowflakes six out, how the shape of the lightning is formed, and the generation of flame fireworks. Light a candle in a room without The flame is constantly changing, what causes it to change?

The essence of the flame is the phenomenon that the air molecules around the reaction zone heat up and move at high speed and emit light.

Flame can be divided into three layers: the inner layer is called cone, with blue, because of insufficient oxygen, combustion is not complete, with a reduction, so also known as "reduction Flame"; the middle is bright, the temperature is higher than the inner layer, the outer part is called Wei, for the colorless flame, because the oxygen is sufficient, the combustion is complete, the temperature The flame is correctly said to be a state or phenomenon, burning combustible gas, glowing, hot, flashing and upward. Flammable liquids or solids must first become gases before they can burn and generate flames. Mainly because the combustible gas is oxidized by the air or pure oxygen and glow.

when the total amount of reactants in a chemical reaction is greater than the total amount of the generated material, part of the energy is diffused outward in the form of thermal energy, called exothermic reaction. The heat released outward is accumulated around the reaction zone, heating the surrounding air, so that the surrounding air molecules do high-speed movement, the faster the movement, the higher the temperature. Flame according to distance from the reaction zone from nearly to far divided into: 1, flame heart, particle movement speed is low, the spectrum concentrated in the infrared region, low temperature, low brightness. 2, cone, the particle movement velocity is medium, the spectrum concentrates in the visible light part, the brightness is high, the temperature is high. 3, Wei, particle movement speed is the fastest, the spectrum concentrated in the ultraviolet region, the temperature is highest, high brightness. the energy released from the reaction zone rises gradually from the flame to the Wei, then drops sharply, causing the flame to have a clearer contour, where the flame reacts to the energy at the boundary of the surrounding air.

The animation principle is to generate a number of continuously changing images and play them. This requires that the interpolation transition to the image generation parameters be achieved first. The resulting series images are as follows:

Then merge it into a GIF image, as shown in:

When it comes to the nine tails, there is something to do with the fire shadow. Here every image of the fire is generated, a bit like my love Luo's sand, the algorithm controls the location of thousands of points, the point is superimposed into a 512*512 of two-dimensional array. Then convert the array into an image. I'm a little impressed with my love for Luo, His grit of sand can be used to create three-dimensional objects in real time, how much computational capacity ah. I'm just a two-dimensional image, and there's no real-time control. It takes about 2 seconds to generate each frame image.

The resulting image and imagination are some gaps, not feeling hot enough, and so I will be free to adjust its parameters later.

Nine-tailed Fire---an animated image generated by the algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.