Hey,
I've got a little game with dice rolling around on a board. There are several particle engines in use. Problem is, when I roll a die, I'm looping the rotation animation, and so the particle engines freeze.
What I don't understand is that I can call Render() as many times as I want, but the particle engine does not display until the rolling function exits to the main run() loop. But run just loops Render()...
On another example, I have a spaceship mesh flying around with a particle engine in tow. Since I update the position in the Render() function, which is called repeatedly during the die roll, the ship continues moving, but the particle engine freezes in space. I can't update it in Render() because the particle engine handles itself. I even tried running it in a different thread but that doesn't work either.
Any way to force Irrlicht to render the PE frames then?
Thanks
Rendering/Refreshing a Particle Engine
-
- Posts: 22
- Joined: Sun Oct 15, 2006 10:02 pm
-
- Posts: 22
- Joined: Sun Oct 15, 2006 10:02 pm
I see. But is it enough to call all three functions to render that frame of the PE? I read the documentation and it says you can register a node to be rendered; do I have to register my pe?
Thanks bitplane.
P.S.
This animation quite a plight as the light of my spaceship freezes as the ship goes away, the jets on the board go solid and the animation of the die never happens until the move is done. lol
Thanks bitplane.
P.S.
This animation quite a plight as the light of my spaceship freezes as the ship goes away, the jets on the board go solid and the animation of the die never happens until the move is done. lol