Jump to content
  • Advertisement
Sign in to follow this  

exporting pflow data

This topic is 4144 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

im trying to export pflow data so i can get the particle system working the same as in max in my 3D engine. i've looked over the pflow source and the source for the gravity modifier, but what ever i try i cannot get my system to look like it does in max. my particle has a velocity value which i multiply by delta time each frame like so: particle->pos += particle->vel * deltaTime ive got particle speed working like so: particle->vel = direction * speed where direction and speed are raw values from pflow now gravity is the troublesome part: direction = nodePos - particle->pos dist = length(direction) direction = normalize(direction) if (decay != 0) strength *= exp(decay * dist) particle->vel += direction * deltaTime * strength * influence where influence = 10 thats 10,000% as in the pflow force influence dialog box strength and decay are the raw values from max any ideas whats wrong?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!