hi i have a major problem reading in the age of a nParticle in a runtimeExpression
resulting in mixing up the partileId or placement of new nParticles
simple example:
i crate an nParticle emitter whith emissionrate 1 to make the effect more easyly visible
i set the Lifespan Mode to lifespanPP only
i set in an Creation Expression the lifespanPP to 5
creation Expression:
lifespanPP = 5.0;
now i set the Shading of the nParticleShape node to Numeric and leave the Attribute Name to Default = particleId
when i now play back everything is quite normal
5 particles are emitted starting whith 0 to 5
then the 0 Particle dies and a new one is emitted with id 6 and so on
BUT as soon i use the age in a runtime expression even if i just print it out
runtime Expression:
print (age);
the Particle ID's get mixed up
5 particles are emitted starting whith 0 to 5
then the 0 Particle does NOT die but changes its ID to 6
retaining it's old position of Particle 0
no new particles are emitted visualy
then the 1 Particle does NOT die but changes its ID to 7
and so on counting endles throu the 5 particles in a cycle
please Help is that a major Bug of nParticles because using this method for standard Particles works as it always did.