Thursday 14 April 2011

Smoothed Particle Hydrodynamics

A significant update to OpenCL Studio 1.1 has just been released. Other than bug fixes and minor extensions to the scripting language, the main contributions are OpenCL library elements for smoothed particle hydrodynamics, bounding volume hierarchy construction as well as bilateral and recursive Gaussian smoothing. All of these are required to simulate and render a free flowing translucent liquid as show in these videos

Screen space fluid rendering
Fluid with BVH collision

A new download is now available on the website. However, at this point the fluid simulation will only run on NVIDIA hardware since the AMD drivers still limit the GPU memory available to OpenCL. Other than that, OpenCL Studio now supports an orbital camera mode, a deferred lighting framebuffer and various extensions to the scripting interface.