LiquidFunProcessing

is a Box2D/LiquidFun Library for Processing.

It is optimized for generating and rendering particle based fluid simulations and rigid body simulation using jBox2D/LiquidFun v2.3.0+ in Processing 3.x.

Particles are rendered as pointsprites (OpenGL) and rigid bodies are rendered using processing’s PShape structures.

Library

References

Tutorials, Readings

Videos

Examples

Most examples are directly ported from the original testbed.

RenderModes

Default rendering/shading. ParticlesColors are by altered depending on their velocity and mean collision-strength.

 

DwFluidFX, a postprocessing effect from the PixelFlow library for generating a liquid-like effect and some fake shading. This effect also works very nice on rigid bodies.

Debug Draw. Basic processing render calls.

 

Useful Resources