This is the particle system:
I thought that it might be something wrong with it so I wrote a simpe test program that only displayed the portal and the particle system and that worked. I've tried to make everything else in my world invisible (walls & terrain) but I still don't see my particle system. Any ideas what I'm doing wrong?scene::IParticleSystemSceneNode *portalParticleSystem = device->getSceneManager()->addParticleSystemSceneNode( false,portal);
portal->setPosition(core::vector3df(0,0,0));
portal->setMaterialFlag(video::EMF_LIGHTING,false);
scene::IParticleCylinderEmitter* cylinderEmitter = portalParticleSystem->createCylinderEmitter(
core::vector3df(0,-portal->getBoundingBox().getExtent().Y/2,0), //center
//core::vector3df(0,0,0),
30.0f, //radius
core::vector3df(0,1,0), //normal
100.0f, //length
false, //outline only
core::vector3df(0.0f,0.2f,0.0f), //direction
150,2500, //min & max particle per second
video::SColor( 48, 50, 6, 65 ), video::SColor( 0, 16, 16, 128 ), //min & max start color
150, 1750, //lifetime min & max
0, //max angel degrees
core::dimension2df(5,5), core::dimension2df(5,5) //min & max start size
);
video::ITexture* tex1 = device->getVideoDriver()->getTexture("fire.bmp");
if( tex1 )
{
device->getVideoDriver()->makeColorKeyTexture( tex1, core::position2d<s32>(0,0) );
tex1->regenerateMipMapLevels();
}
portalParticleSystem->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
portalParticleSystem->setMaterialFlag(video::EMF_LIGHTING,false);
portalParticleSystem->setMaterialTexture(0,tex1);
portalParticleSystem->setMaterialType( video::EMT_TRANSPARENT_VERTEX_ALPHA );
portalParticleSystem->setVisible( true );
portalParticleSystem->setEmitter( cylinderEmitter );
cylinderEmitter->drop();