1 / 8

Real-time fluid physics library

Real-time fluid physics library. The goal was to create a physics library, specialized on water fluid physics, for real-time applications. Why?. Water motion is appealing and it should be possible to use it more in games for enhanced experience.

laken
Download Presentation

Real-time fluid physics library

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Real-time fluid physics library The goal was to create a physics library, specialized on water fluid physics, for real-time applications.

  2. Why? • Water motion is appealing and it should be possible to use it more in games for enhanced experience. • A physics-based system is needed to enable interaction between solid objects and fluid.

  3. What is it? • Real-time • 3D motion integrator • Solid object/fluid interactor (currently support for liquid)

  4. But it's not: • Not a simulator • Not a graphics renderer

  5. Capabilities • Colliding contacts • Volume determination • Buoyancy forces • Drag forces

  6. How is it done? • Mesh/mesh collision detection • Uses OPCODE library • Collision resolving • Time step bisection (to specified resolution) • Computes closest contacts before • Best effort contacts • Impulse

  7. How is it done? • Buoyancy/drag forces • Archimedes’ principle: F = ρ * V * g • Volume approximation • Numerical integration • Drag force: F = -ρ * v o v * A * c / 2 * v / |v| • Area approximation • Liquid dynamics • Wave equation: • ∂2h / ∂t2 = v2 * (∂2h / ∂x2 + ∂2h / ∂z2) • Mass conservation: ∂m / ∂t = 0

  8. Extendable? • Mesh loaders • Integrators • Fluid kernels

More Related