Java GLSL
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples Point Sprite rendering fix, raycast example Oct 12, 2017
screenshots . Jun 30, 2017
src/com/thomasdiewald/liquidfun Point Sprite rendering fix, raycast example Oct 12, 2017
LICENSE Create LICENSE Jun 15, 2017
README.md . Jul 4, 2017

README.md

LiquidFunProcessing

LiquidFunProcessing

Box2D/LiquidFun Library for Processing.

Particle based fluid simulation and rigid body simulation using jBox2D/LiquidFun 2.3.0+.

References

Tutorials, Readings


Download


LiquidFunProcessing


Videos


Examples

The library includes a lot of examples from the original jbox2d testbed.
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.
Of course, each of those can be altered, overwritten or disabled/removed.


Rendermodes

Default renderer, no postprocessing

particles are rendered as point-sprites and rigid bodies are rendered using the PShape tree structure.

Default


Default renderer + Postprocessing

LiquidFx adds some liquid effect and fake shading. PixelFlow needs to be installed to use it.

LiquidFx


Debug Draw

using the box2d world for rendering and basic processing draw calls.

Debug


Resources


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


Dependencies, to run the examples