bot2600 / GodotSimpleExplosionVFX

Simple Explosion VFX in the Godot game engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Godot Explosion VFX

(COMING SOON: .blend files to make the sprites and higher quality sprites (less noisy))

A very simple way to setup realistic explosions in the Godot game engine that react to lighting.

Dependencies

(and, if you want to create the sprites yourself:)

How to use

  • Open the project in GodotFiles/Explosion in Godot.
  • Edit properties of the explosion by editing "material.tres".
  • Emission Fallof Multiplier and Emission Falloff control how fast the flames disappear.
  • Emission Color Ramp allows to modify the color of the flames.
  • Smoke Color Ramp allows to modify the color of the smoke.

How to create your own sprites in Blender3D

  1. Open the file smoke.blend in Blender (Note: the file will be provided soon in this repository)

  2. Select the domain Smoke Domain in the main scene, go to the physics tab and hit bake.

  3. In the outliner, disable the collections called "normals+" and "normals-", and render the animation.

  4. In the Render tab, in Color Management, set "Display Device" to "None".

  5. Change the render output folder to "normals+", disable the "Area" collection and enable "normals+" collection. Render the animation.

  6. Change the render output folder to "normals-", disable the "normals+" collection and enable "normals-" collection. Render the animation.

Create a sprite sheet

Use Texture Packer to create 3 spritesheets, one for each of the 3 previously rendered animation

About

Simple Explosion VFX in the Godot game engine

License:MIT License