06-30-2019, 04:33 PM
Hello,
It appears that the TyFlow particle interface does not like updating outside of the animation range. Some renderers will request frames outside of the animation range in support of motion blur. Sample code below:
ObjectState tos = node->EvalWorldState(t,TRUE);
// See if it is particle
IParticleObjectExt* epobj = (IParticleObjectExt*)tos.obj->GetInterface(PARTICLEOBJECTEXT_INTERFACE);
if (epobj) {
// The below will fail for values of "t" less than 0
epobj->UpdateParticles(node, t);
It appears that the TyFlow particle interface does not like updating outside of the animation range. Some renderers will request frames outside of the animation range in support of motion blur. Sample code below:
ObjectState tos = node->EvalWorldState(t,TRUE);
// See if it is particle
IParticleObjectExt* epobj = (IParticleObjectExt*)tos.obj->GetInterface(PARTICLEOBJECTEXT_INTERFACE);
if (epobj) {
// The below will fail for values of "t" less than 0
epobj->UpdateParticles(node, t);