I have a particle system and it works fine in debug mode, but in release mode it is not visible and I cannot figure out why.
isInScene=true, isEnabled=true, emiterNum = 1, particleCount > 0, SN position is OK. The material file is loaded and the .png is loaded. Again, it works in debug mode!
Code: Select all
material Flare
{
technique
{
pass
{
lighting off
scene_blend add
depth_write off
diffuse vertexcolour
texture_unit
{
texture flare.png
}
}
}
}
Code: Select all
// A jet engine (of sorts)
particle_system JetEngine1
{
material Flare
particle_width 5
particle_height 5
cull_each false
quota 200
billboard_type point
emitter Point
{
angle 20
emission_rate 80
time_to_live 0.2
direction 0 1 0
velocity_min 10
velocity_max 100
colour_range_start 1 1 0.5
colour_range_end 1 0.8 0.3
}
affector ColourFader
{
red -0.25
green -1
blue -1
}
}