Awesome
LiquidFunProcessing
Box2D/LiquidFun Library for Processing.
Particle based fluid simulation and rigid body simulation using jBox2D/LiquidFun 2.3.0+.
References
- LiquidFunProcessing: http://thomasdiewald.com/processing/libraries/liquidfun/reference/index.html
- jBox2d: http://thomasdiewald.com/processing/libraries/jbox2d-2.3.0/doc/index.html
Tutorials, Readings
- Box2D: http://www.iforce2d.net/b2dtut
- LiquidFun: http://google.github.io/liquidfun/Programmers-Guide/html/index.html
Download
- Releases
- LiquidFunProcessing Website
- Processing IDE -> Library Manager
Videos
<img src="https://i.vimeocdn.com/video/642746926.jpg" alt="" width="49%"> <img src="https://i.vimeocdn.com/video/642746415.jpg" alt="" width="49%"> <img src="https://i.vimeocdn.com/video/642746223.jpg" alt="" width="49%"> <img src="https://i.vimeocdn.com/video/642746084.jpg" alt="" width="49%">
<br>Examples
The library includes a lot of examples from the original jbox2d testbed.<br> For a quick start, each sketch has a couple of default mouse-actions:
- LMB: drag rigid bodies / particles
- LMB + SHIFT: shoot a bullet
- MMB: spawn particles
- RMB: destroy particles
... as well as some key-mapping, e.g. to display the debug-draw, restart, pause/resume.<br> Of course, each of those can be altered, overwritten or disabled/removed.
<br>Rendermodes
Default renderer, no postprocessing
particles are rendered as point-sprites and rigid bodies are rendered using the PShape tree structure.
<br>Default renderer + Postprocessing
LiquidFx adds some liquid effect and fake shading. PixelFlow needs to be installed to use it.
<br>Debug Draw
using the box2d world for rendering and basic processing draw calls.
<br>Resources
- jBox2d web: http://www.jbox2d.org/
- jBox2d Testbed: https://github.com/jbox2d/jbox2d/tree/master/jbox2d-testbed
- Box2d Testbed: https://github.com/erincatto/Box2D/tree/master/Box2D/Testbed
- LiquidFun: http://google.github.io/liquidfun/
- LiquidFun Programmers Guide: http://google.github.io/liquidfun/Programmers-Guide/html/index.html
Installation, Processing IDE
-
Download Processing 3
-
Install liquidFunProcessing via the Library Manager.
-
Or manually, unzip and put the extracted LiquidFunProcessing folder into the libraries folder of your Processing sketches. Reference and examples are included in the LiquidFunProcessing folder.
-
Also make sure you have the latest graphics card driver installed!
Platforms
Windows, Linux, MacOSX
<br>Dependencies, to run the examples
- PixelFlow: https://github.com/diwi/PixelFlow