1 / 9

Real-time fluid physics library

Real-time fluid physics library. The goal is to create a physics library that is specialized on water fluid dynamics, for real-time simulations. Why?. Water motion is graphically appealing and it should be possible to use it more in games to enhance the experience.

xenon
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 is to create a physics library that is specialized on water fluid dynamics, for real-time simulations.

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

  3. Milestone 1 • Project plan, time plan • Choose subjects to study • Brief studies of: • Fluid dynamics • Fluid buoyancy • Smoothed particle hydrodynamics • Collision response • Test of a free collision detection library

  4. Fluid dynamics • A mass of fluid can’t resist a shearing force and must deform. • Velocity depends on local density in incompressible fluid. • Motion is described by parcels small enough to neglect rotation. • Velocity field representation. • Linearization is used to interpolate attributes between parcels. • Bernoulli’s equation, the Navier-Stokes equations.

  5. Fluid buoyancy • Suitable to implement as interaction between fluid and solid meshes. • Archimedes’s principle: • F = -p * V * g • F must be integrated over the immersed surface. • Problematic for arbitrary surfaces.

  6. Smoothed particle hydrodynamics • Introduced to simulate astrophysics. • A kernel function computes interaction values from particles within a radius. • Problems: • Can only solve compressible flow. • A surface has to be reconstructed. • Not fast enough for real-time in large scale. • Alternative is Eulerian grid.

  7. Collision detection libraries • Avoid developing detection algorithms by using a library. • FreeSOLID • OpenGL-like API. • Detects overlapping shapes. • Approximates collision plane, useful for collision response. • LGPL license.

  8. Collision response • Can be done by applying forces. • The objects will interpenetrate. • Compute impulse. • Immediately changes velocity and angular velocity. • Combine angular velocities using matrices or quaternions. • Time of collision: • Binary search for static collision detection. • Time expensive.

  9. Plans • Prototypes for: • Collision response • Liquid dynamics (using Eulerian grid) • Liquid buoyancy • Technical specification • Design of: • Physics libary • Mesh loading and graphics rendering modules.

More Related