Commit c73357af authored by hybrid's avatar hybrid

The new scale values require the emitter to be set before the particle scale...

The new scale values require the emitter to be set before the particle scale is set. I guess we might have to change something else here...

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@1751 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 06ad4408
...@@ -180,9 +180,6 @@ int main() ...@@ -180,9 +180,6 @@ int main()
scene::IParticleSystemSceneNode* ps = scene::IParticleSystemSceneNode* ps =
smgr->addParticleSystemSceneNode(false); smgr->addParticleSystemSceneNode(false);
ps->setPosition(core::vector3df(-70,60,40));
ps->setScale(core::vector3df(2,2,2));
ps->setParticleSize(core::dimension2d<f32>(20.0f, 20.0f));
scene::IParticleEmitter* em = ps->createBoxEmitter( scene::IParticleEmitter* em = ps->createBoxEmitter(
core::aabbox3d<f32>(-7,0,-7,7,1,7), // emitter size core::aabbox3d<f32>(-7,0,-7,7,1,7), // emitter size
...@@ -200,6 +197,9 @@ int main() ...@@ -200,6 +197,9 @@ int main()
ps->addAffector(paf); // same goes for the affector ps->addAffector(paf); // same goes for the affector
paf->drop(); paf->drop();
ps->setPosition(core::vector3df(-70,60,40));
ps->setScale(core::vector3df(2,2,2));
ps->setParticleSize(core::dimension2d<f32>(20.0f, 20.0f));
ps->setMaterialFlag(video::EMF_LIGHTING, false); ps->setMaterialFlag(video::EMF_LIGHTING, false);
ps->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false); ps->setMaterialFlag(video::EMF_ZWRITE_ENABLE, false);
ps->setMaterialTexture(0, driver->getTexture("../../media/fire.bmp")); ps->setMaterialTexture(0, driver->getTexture("../../media/fire.bmp"));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment