tyFlow Forum
velocity multiply - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: velocity multiply (/thread-2864.html)



velocity multiply - Saca - 01-20-2022

hi,
I want to multilly velocity strenght and keep position.
vely slow moving particles are, but i want to set strong motion blur.(VRay)

i have tryied C# script, but set strong velocity, and the positionis changed.

by the way, In houdini, it's very easy.(point wrangle example: @v*=5Wink
I'm good if get similar technique in tyFlow.

thanks
Code:
public void simulationStep()
{    
    for (int i = 0; i < eventParticleCount; i++)
    {
        int sInx = tf.GetSimIndex(i);

        float eventAge = tf.GetEventAge(sInx); //then we get each particle's event-age

        if (eventAge == 0)
        {
            Point3 oriPos = tf.GetPos(sInx); //** ORIGINAL POSITION
            float velMult = 2; //** VELOVITY_Multiply
            tf.SetVel(sInx,tf.GetVel(sInx)*velMult);
            tf.SetPos(sInx, oriPos);
        }        
    }    
}



RE: velocity multiply - tyFlow - 01-20-2022

tyFlow instance moblur is calculated by measuring transform changes between time samples, so even if you could multiply velocity, it would have no effect if the change wasn't reflected by the position.


RE: velocity multiply - Saca - 01-20-2022

(01-20-2022, 02:59 AM)tyFlow Wrote: tyFlow instance moblur is calculated by measuring transform changes between time samples, so even if you could multiply velocity, it would have no effect if the change wasn't reflected by the position.

thanks your reply.
but that's unfotunate.