Sign in to follow this  

Precomputing Trajectory

Recommended Posts

I have a particle system modeling fluid where the particles can collide with the environment. The environment can be random so an artist cannot manually specify the path of the particles, but once the environment is generated it is fixed so I do not have to worry about it changing at runtime.

However, even with KD-Tree, and optimizations, it still takes too much processing power doing the collision detection for so many particles. So my idea is to run the collision detection to figure out the trajectories of the particles at initialization and generate keyframes, and then just do keyframe animation in the rendering loop.

My question is if anyone has any better ideas on how to solve this.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this