Game Development Community

particle fx cut-off

by Dan Pascal · in Torque X 2D · 06/25/2009 (12:35 pm) · 5 replies

Particle effects like fire and trailing smoke, abruptly stop rendering when the emitter object is outside the camera view.

I think there's a solution to this in some thread, but I can't find it anymore.

Anyone?
Thanks


#1
06/25/2009 (10:25 pm)
That's what I've found, too, because the emitter is the thing that actually renders the particles, not the GUI tree. When the emitter's not on camera, it doesn't render, and so neither do any of its particles, even if they ARE on screen. Major bummer.

The only solution I could think of would be to manually render the emitter in the Game's draw method, either all the time (in which case you would probably want to try to eliminate it from the GUI tree so it is not getting drawn twice when on screen), or only render it manually when it is off screen (perhaps by comparing its bounds to that of the camera).

I haven't actually tried to do something like that, yet. Let us know if you try that or something else and how it works out.
#2
06/27/2009 (10:03 am)
there was a brief mention of it with the fix in some thread on another subject, I've been searching for it now, but still nothing

i'm surprised its not brought up more in this forum
#3
06/27/2009 (11:49 am)
Increase the size (rectangle) of the effect.
#4
06/27/2009 (12:13 pm)
Yeah, I could see how that (increasing area) could work, as long as it is only a point effect. Ultimately, I don't know if there is really a "fix", just different techniques to try to get around the limitation.
#5
06/27/2009 (5:19 pm)
ya, my fire effect uses the LineX to spread out, changing the size screws it up,

neat idea though.

i'm tellin you guys I saw a fix, unless it was a dream

a tx forum bugfix dream