ParticleEmitter EMT_TRANSPARENT_VERTEX_ALPHA material error
Posted: Wed Jan 23, 2013 6:19 am
hi everyone,
when compiled in 1.7 it looks ok but when compiled inIrrlicht 8 my particles are invisible or missing.
..............
scene::IParticleSystemSceneNode* pas = 0;
vector3df pos = node->getPosition();
pas = game->smgr->addParticleSystemSceneNode(false, 0,-1,pos);
scene::IParticleEmitter* em = pas->createBoxEmitter(core::aabbox3d<f32>(-5,-5,-5,5,5,5),vector3df(0,0.01,0),
60,80, video::SColor(0,140,70,0),video::SColor(0,48,48,48),
1500,1800, 20,core::dimension2d<f32>(10.0f, 10.0f),core::dimension2d<f32>(10.0f, 10.0f));
pas->setEmitter(em);
em->drop();
pas->setMaterialFlag(video::EMF_LIGHTING, false);
pas->setMaterialTexture(0, game->device->getVideoDriver()->getTexture("Textures/f102.bmp"));
pas->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);
scene::ISceneNodeAnimator* anim = game->smgr->createDeleteAnimator(500);
pas->addAnimator(anim);
anim->drop();
................
but when I use the EMT_TRANSPARENT_ADD_COLORmaterial works well
it is really a bug?
thanks
when compiled in 1.7 it looks ok but when compiled inIrrlicht 8 my particles are invisible or missing.
..............
scene::IParticleSystemSceneNode* pas = 0;
vector3df pos = node->getPosition();
pas = game->smgr->addParticleSystemSceneNode(false, 0,-1,pos);
scene::IParticleEmitter* em = pas->createBoxEmitter(core::aabbox3d<f32>(-5,-5,-5,5,5,5),vector3df(0,0.01,0),
60,80, video::SColor(0,140,70,0),video::SColor(0,48,48,48),
1500,1800, 20,core::dimension2d<f32>(10.0f, 10.0f),core::dimension2d<f32>(10.0f, 10.0f));
pas->setEmitter(em);
em->drop();
pas->setMaterialFlag(video::EMF_LIGHTING, false);
pas->setMaterialTexture(0, game->device->getVideoDriver()->getTexture("Textures/f102.bmp"));
pas->setMaterialType(video::EMT_TRANSPARENT_VERTEX_ALPHA);
scene::ISceneNodeAnimator* anim = game->smgr->createDeleteAnimator(500);
pas->addAnimator(anim);
anim->drop();
................
but when I use the EMT_TRANSPARENT_ADD_COLORmaterial works well
it is really a bug?
thanks