Mercurial > sumwars
changeset 2686:b39f98822019 feature-particleuniverse
refs #34: Improved explosion
author | Stefan Stammberger <some.fusion@gmail.com> |
---|---|
date | Sat, 22 Mar 2014 19:09:18 +0100 |
parents | 2b159beeb870 |
children | df5c37505a63 |
files | share/resources/materials/scripts/particles.material share/resources/materials/textures/fire_cloud.png share/resources/materials/textures/smoke30frames.png share/resources/particle/universe/Fire_Explosion.pu |
diffstat | 4 files changed, 144 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/share/resources/materials/scripts/particles.material Sat Mar 22 09:36:37 2014 +0100 +++ b/share/resources/materials/scripts/particles.material Sat Mar 22 19:09:18 2014 +0100 @@ -135,3 +135,45 @@ } } + +material fire_particle_cloud +{ + technique + { + pass + { + lighting off + scene_blend add + depth_write off + + texture_unit + { + texture fire_cloud.png + tex_address_mode clamp + } + } + + } +} + +material SmokeSprite +{ + technique + { + pass + { + lighting off + scene_blend colour_blend + depth_write off + + texture_unit smoke30frames.png + { + texture_alias smoke30frames.png + texture smoke30frames.png + max_anisotropy 16 + filtering anisotropic anisotropic linear + } + } + + } +}
--- a/share/resources/particle/universe/Fire_Explosion.pu Sat Mar 22 09:36:37 2014 +0100 +++ b/share/resources/particle/universe/Fire_Explosion.pu Sat Mar 22 19:09:18 2014 +0100 @@ -1,30 +1,118 @@ system Fire_Explosion { category Sumwars - technique + technique Fireball { - material Flare - default_particle_width 1.4 - default_particle_height 1.4 - default_particle_depth 1.4 + material fire_particle_cloud + default_particle_width 1.5 + default_particle_height 1.5 + default_particle_depth 1.5 renderer Billboard { } - emitter Box + emitter Point { - emission_rate 600 + emission_rate 30 angle 360 - time_to_live 0.2 - velocity 0.2 + time_to_live 0.35 + velocity 3 + duration 0.5 start_colour_range 1 0 0 1 end_colour_range 0.5 0.5 0 1 - box_width 4 - box_height 3.2 - box_depth 4 + } + affector Scale Affector296 + { + xyz_scale 2 + since_start_system true + } + affector Scale + { + } + affector Colour Affector314 + { + time_colour 0 0 0 0 1 + time_colour 0.154348 1 1 1 1 + time_colour 0.558696 1 1 1 1 + time_colour 1 0 0 0 1 + colour_operation multiply + } + affector TextureRotator Affector315 + { + rotation dyn_random + { + min 0 + max 3 + } + rotation_speed 2 + } + } + technique Smoke + { + material SmokeSprite + renderer Billboard + { + texture_coords_rows 5 + texture_coords_columns 6 + } + emitter Point Emitter115 + { + emission_rate 20 + angle 360 + time_to_live 1 + velocity 2 + duration 0.5 + particle_width 3 + particle_height 3 + particle_depth 3 } - affector LinearForce + affector Colour Affector182 + { + time_colour 0 0 0 0 1 + time_colour 0.265217 1 1 1 1 + time_colour 0.717391 1 1 1 1 + time_colour 1 0 0 0 1 + colour_operation multiply + } + affector Scale Affector201 + { + xyz_scale 3 + } + affector LinearForce Affector225 + { + force_vector 0 5 0 + } + } + technique Sparks + { + material Flare + renderer Billboard { - force_vector 0 2 0 + } + emitter Point Emitter195 + { + emission_rate 100 + angle 90 + time_to_live 0.4 + velocity 30 + duration 0.1 + particle_width 0.5 + particle_height 0.5 + particle_depth 0.5 + start_colour_range 1 0 0 1 + end_colour_range 0.5 0.5 0 1 + } + affector LinearForce Affector317 + { + force_vector 0 -15 0 + } + affector ScaleVelocity Affector318 + { + } + affector Colour Affector369 + { + time_colour 0 1 1 1 1 + time_colour 1 0 0 0 1 + colour_operation multiply } } }