Feral Heart
Help & Guidance => Game Help => Topic started by: Puffluna65 on December 16, 2012, 05:52:51 pm
-
Okay, so I have partially finished the coding on the Firework weather that comes with the game. The only thing that doesn't work is the texture. If anyone knows where the texture is in the weather particle file, please tell me! I will paste the section of the weather material file where the fireworks are found. Once again, please do this ASAP
particle_system Weather/Fireworks
{
material Flare
point_rendering false
particle_width 20
particle_height 20
cull_each false
quota 3000
emit_emitter_quota 500
billboard_type point
emitter Box
{
name mainEmitter
emit_emitter explosion
angle 30
emission_rate 3000
time_to_live 3
direction 0 1 0
velocity 200
width 10
height 10
depth 0.1
}
emitter Point
{
name explosion
angle 180
emission_rate 2000
time_to_live 2
direction 0 1 0
velocity 80
duration 0.1
repeat_delay_min 2
repeat_delay_max 3
}
affector LinearForce
{
force_vector 0 -100 0
force_application add
}
affector ColourFader
{
time0 0
colour0 1 1 0
time1 0.5
colour1 1 0 0
time2 1.5
colour2 0 0 0
}
}
-
The texture is located in the .material file for the particle, the material name for the texture is where is says "Flare" at the top. You need to find a .material file somewhere in your particles folder that is called FireworksMat or something, when you find it open the file it should tell you the texture.
This is the one I have:
material Flare
{
technique
{
pass
{
lighting off
scene_blend add
depth_write off
fog_override true
cull_hardware none
cull_software none
texture_unit
{
texture flare.png
}
}
}
}