TX2D 3.1.5 Beta - Particles Emitters parsed the wrong way
by Giuseppe De Francesco · in Torque X 2D · 06/25/2010 (9:53 am) · 2 replies
Build: 3.1.5 Beta
Platform: Windows 7, 32 bit (I think it doesn't matter)
Target: Editor
Issues: Particles Emitters are rendered bottom-up while in the game they are rendered the other way around.
Steps to Repeat:
1. Add a simple particle effect in a scene
2. Add two emitters: you'll have the first emitter's particles on top of the second's.
3. Run the game: the particles of the second emitter are shown on top of the first's.
This should be addressed in the editor to avoid consequences on existent games.
Platform: Windows 7, 32 bit (I think it doesn't matter)
Target: Editor
Issues: Particles Emitters are rendered bottom-up while in the game they are rendered the other way around.
Steps to Repeat:
1. Add a simple particle effect in a scene
2. Add two emitters: you'll have the first emitter's particles on top of the second's.
3. Run the game: the particles of the second emitter are shown on top of the first's.
This should be addressed in the editor to avoid consequences on existent games.
About the author
In the software eng. field since 1981, in charge of R&D during last 10 years. IEEE Senior Member (and volunteer).
#2
The for loop was previously iterating through the list of particle emitters backwards. You may have the same line on line 1813 commented out. Feel free to just delete the line below it and uncomment it.
EDIT: This would be awesome if you had access to the source code... >.<
06/30/2010 (4:56 pm)
Fixed. Please add the following code to your "...Tools/TorqueX2D/Engine/Source/T2D/t2dParticleEffect.cc" file on line 1814 to fix the problem.for ( S32 n = mParticleEmitterList.size()-1; n >= 0 ; n-- )
The for loop was previously iterating through the list of particle emitters backwards. You may have the same line on line 1813 commented out. Feel free to just delete the line below it and uncomment it.
EDIT: This would be awesome if you had access to the source code... >.<
Full Sail QA&U Lab Intern