Game Development Community

X3D 3.1.5 Beta 2 - Fixed Particles time keys

by Giuseppe De Francesco · in Torque X 3D · 07/15/2010 (6:04 pm) · 2 replies

Build: 3.1.5 Beta

Platform: Any

Target: Source code (T3DParticleEmitter.cs)

Issues: The Keyed Data are parsed for a constant number of keys (4) which looks a particle system test left there. It should allow the developer to determine the number of key.

Suggested Fix: To loop against the Lenght of the array instead of a constant.

About the author

In the software eng. field since 1981, in charge of R&D during last 10 years. IEEE Senior Member (and volunteer).


#1
07/15/2010 (9:58 pm)
Logged as TRQX-160.

Perhaps change line 726 of T3DParticleEmitter.cs to:

for (int i = 1; i < part.ParticleData.Times.Length; i++)
#2
07/15/2010 (10:13 pm)
@Ray:
it's not really that simple. There is only one Times array insted of one array for each keyed value (colors and size) and it's missing for the spinning (which doesn't work at all, see my other bug post). What's needed is a more extensive fix, maybe implementing a keyed class (like in TX2D) instead of straight arrays.