Particle Effects stop working
by Hugo Munoz · in iTorque 2D · 01/24/2012 (8:49 am) · 5 replies
Hey guys, Im experiencing a very weird situation, Im working on a platformer game, I added some particle effects to the scene, those work as expected, but when I go to lets say the middle of the level the effects won't play, if I return to the beginning of the scene the effect works, does anybody have experienced something similar?
For the record the effect lifetime is set to KILL
Any thoughts will be appreciated.
Thanks in advance
Hugo.
For the record the effect lifetime is set to KILL
Any thoughts will be appreciated.
Thanks in advance
Hugo.
About the author
#2
I think is somehow related to the scene size, probably somewhere is a constant that prevents showing the particles when reached some max value, sounds stupid but thats my best clue so far.
For the record this only happens when deploying to the device.
01/24/2012 (2:23 pm)
Hi David, the particle effect plays at a static position, is not mounted to the camera it works perfectly until I reach the middle of the level or so, from that point they won't play, I did some tests if I go back a few steps the particle effect plays, very weird, if go ahead a few more steps they won't.I think is somehow related to the scene size, probably somewhere is a constant that prevents showing the particles when reached some max value, sounds stupid but thats my best clue so far.
For the record this only happens when deploying to the device.
#3
01/25/2012 (8:29 am)
Sounds like it is related to the mobile particle system optimization. if the particle emitter leaves the view area, it will stop being updated etc.
#4
The solution is to go to the compiler preprocessing section of the build settings in Xcode and remove PUAP_OPTIMIZE.
01/26/2012 (7:03 pm)
See this thread for info on why this happens: www.garagegames.com/community/forums/viewthread/116407The solution is to go to the compiler preprocessing section of the build settings in Xcode and remove PUAP_OPTIMIZE.
#5
Thanks
Hugo
01/27/2012 (9:14 am)
I see thanks guys, by removing the PUAP_OPTIMIZE flag it worked again, does anybody knows about any side effects when doing this ?Thanks
Hugo
Torque Owner David Helmer
The Kids
If the camera is moving, are the particles moving as well to keep up with the camera/player?
Final note, right now there's an optimization that stops rendering particles if they're not on camera. Is this possibly your issue?