Particles all spawn from one point
Posted: Thu Jan 22, 2009 5:24 am
I've tried box, sphere and ring particle emitters, however no matter what settings I give them, they always generate particles at a single point.
What's even weirder is, I added:
to the box particle emitter to find out if it was getting the arguments properly and sure enough, the box emitter had a minimum edge of -100,-100,-100 which is what I passed in Lua (I've manually binded irrlicht to Lua).
I have modified Irrlicht but I haven't touched the particle systems (I added userdata to IReferenceCounted and shadow volume nodes to basic objects).
UPDATE
After discussing it on IRC, we still haven't found the problem, but we've narrowed it down. The Irrlicht box emitter is pushing particles onto the Particles array, but when the particle system is retrieving them, they have all screwed up values.
The Irrlicht example works absolutely fine.
What's even weirder is, I added:
Code: Select all
printf("Box minedge is %f,%f,%f.",Box.MinEdge.X,Box.MinEdge.Y,Box.MinEdge.Z);
I have modified Irrlicht but I haven't touched the particle systems (I added userdata to IReferenceCounted and shadow volume nodes to basic objects).
UPDATE
After discussing it on IRC, we still haven't found the problem, but we've narrowed it down. The Irrlicht box emitter is pushing particles onto the Particles array, but when the particle system is retrieving them, they have all screwed up values.
The Irrlicht example works absolutely fine.