Welcome, Guest
Want to take part in these discussions? Sign in if you have an account, or apply for one below
-
- CommentAuthorTackleMcClean
- CommentTimeSep 24th 2009
It seems whenever I try to use a glow filter on my particles the glow effect just keeps expanding and goes crazy.
Is this normal? If not what am I doing wrong? -
- CommentAuthorRichard
- CommentTimeOct 9th 2009 edited
Hi
It probably is normal - since the glow is applied every frame before rendering the particles, the glow is applied to the last frame's particles and glow, causing the glow to expand.
You need to add your filter as a post-render filter, by setting the second parameter in the addFilter method to true -renderer.addFilter( myFilter, true );
Then, every frame, the display will be cleared, the particles will be drawn, and then the filter will be applied. Pre-render filters (the default) are applied before the particles are redrawn, and to make this work the screen is never cleared. -
- CommentAuthorTackleMcClean
- CommentTimeOct 14th 2009
Alright, thanks a bunch!
FLiNT is so awesome I'm dreaming of particles. Good work!
1 to 3 of 3
