PDA

View Full Version : Particle System Conserve Term


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

-Vormav-
01-02-2007, 07:29 AM
No need to make things too complicated.
given x^n = a, n != 0
let x=a^(1/n)
(a^(1/n))^n = a
(a^(n/n)) = a
a^1 = a
True
So,
x=a^(1/n)

So, you can say:

subframeConservation = conservation^(1/samples)

CGTalk Moderation
01-02-2007, 07:29 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.