Gaming
 

Particlesmoke

GameBlender-4-Ever: THE source of information on the game engine!

Contents

[edit] Particle Smoke

[edit] General

Requirement: This tutorial is based on the Particles Fire tutorial. Alternative Particles Flame can be used.

User level: Normal

Blender version: 2.43

Results: Smoke and Fire

Image:Tut_part_smoke_result.jpg

The flame particle will be copied and modified to simulate smoke via an alpha texture.


[edit] Preparation

  • Follow the Particles Fire or Particles Flame tutorial.
  • Create the texture with any paint program. Name it Particle_alpha.tga. It requires an alpha channel. You can use following channels to compose the texture:
Image:Particle_alpha_white.png - The RGB map is plain white. With a white RGB map it is easy to simulate colored smoke including black smoke.
Image:Particle_basic.png - The Alpha map is visible in the center fading out to the border.
  • As black smoke is difficult to see on black background go to shading<F5> -> world buttons and change the background color to a medium color (not white).

Image:Tut_part_smoke_background.png

[edit] The Particle

  • In layer two make a copy of Particle_fire name it Particle_smoke
  • Move Particle_smoke to layer three <m> or move it away from Particle_fire <g>
  • Display the IPO curve Editor and make the IPO curve single user copy. This ensures we have separate IPO curves for smoke and fire.

Image:Tut_part_smoke_particle.png

  • The logic can remain as it is already.
  • Rename the IPO curve to Particle_smoke.
  • Remove the IPO curves ColR, ColG, ColB.
  • Change the IPO curves ScaleY, ScaleZ and add ColA as shown below:

Image:Tut_part_smoke_particle_IPO.png

  • Use this guide to set the control points:
IPO keys
Channel 1 2
ScaleY (0.0,0.6) (30.0,2.0)
ScaleZ (0.0,0.6) (30.0,2.0)
ColA (0.0,0.0) (30.0,0.0)
  • Go into the UV Face select mode <f>.
  • Enable the Alpha button which disables Add.
  • Open the UV/Image Editor.
  • Open the image Particle_alpha.tga from the preparation

Image:Tut_part_smoke_particle_UV.png

[edit] The Emitter

  • Now it is time to add the smoke to the fire. Go to layer one and select the Emitter_fire
  • Display the logic buttons <F4>.
  • Add another always sensor. As we do not need so much smoke the sensor should fire with a frequency of 3.
  • Connect this sensor to a new AND controller.
  • Connect this controller with a new Edit Object actuator with Add Object "Particle_smoke", Time 60. The smoke will stay twice as long as the flames.

Image:Tut_part_smoke_emitter_logic.png

  • Now it is time to enjoy the result:

Image:Tut_part_smoke_result.jpg

[edit] Remarks

  • The density of the smoke can be controlled with the ColA IPO curve and/or with the frequency of the triggering always sensor.
  • The shape of the smoke can be controlled with the ScaleY and ScaleZ IPO curves.
  • Colored (and animated) smoke can be achieved by adding curves to ColR, ColG, ColB.
  • The length, speed and direction of the smoke is controlled by the Particle_smoke's motion actuator.
  • Be careful with the number of particles existing in one frame. It will impact the performance and the environment.