chaney

12-22-2006, 08:22 PM

I have a particle system that has a "conserve" term to keep things from going wild . Essentially it is a per sample multiplier on velocity .

vel = conserve * vel ;

I would like to sync it up to time . So if a user takes multiple time samples per frame it always yields the same velocity . If I do not , changing the time sample will get very different results .

so instead of

vel = conserve * vel ;

i think it ends up to be something like this

pow ( perSampleConserve , samples ) = perFrameConserve .

i then would have to solve for perSampleConserve using

log (base perSampleConserve) perFrameConserve = samples .

Is this right ? Or does anybody have the math ?

Thanks

vel = conserve * vel ;

I would like to sync it up to time . So if a user takes multiple time samples per frame it always yields the same velocity . If I do not , changing the time sample will get very different results .

so instead of

vel = conserve * vel ;

i think it ends up to be something like this

pow ( perSampleConserve , samples ) = perFrameConserve .

i then would have to solve for perSampleConserve using

log (base perSampleConserve) perFrameConserve = samples .

Is this right ? Or does anybody have the math ?

Thanks