Fluids System

A fluid simulation adapted from code by Arturo Castro.
The algorithms can by found here along with a nice pdf explaining how it all works.
The code still needs some work and probably could be optimized with frame buffer objects…
There is some nice code on fluid simulations from memo. I think this one is a bit better than mine!
Version: of_preRelease_v0.05 | Addons: ofxVectorMath

fluids_src.zip

Particle Systems

Simulations with particles. The first example is a very simple flocking simulation.
The second includes some strangely deforming circles.
Version: of_preRelease_v0.05 | Addons: ofxVectorMath

pSystem Simple src.zip
pSystem Circles src.zip

Vector Field

A simple example using vector fields and particles.
Another nice tutorial on vector fields can be on the of wiki.
Version: of_preRelease_v0.05 | Addons: ofxVectorMath

vecF_src.zip

Unique Random + Video Delay

By Emanuele Mazza (with some code from Damian Stewart and Chris Sugrue)
A circle of circles animate swapping places along bezier curves blurred with a subtle video delay effect.
The positions of each circle are chosen with a unique random algorithm that will swap all of them and not repeat. The video delay uses a render to texture overlayed on top of the animation to create the blending effect.
Version: of_preRelease_v0.05

urand_src.zip

Contour Analysis
contoursAnalysisline finding

A series of functions for finding information about contours and blobs: ellipse fitting (using opencv fitEllipse), orientation, point inside polygon test, and line finding.
Version: of_preRelease_v0.05 | AddOns: ofxOpenCv, ofxVectorMath

contourAnalysis_src.zip
lineFinding_src.zip

Bezier Movement
bezier

Created with Emanuele Mazza
An example of how to create movement along bezier curves. It includes algorithms for finding a point along a beziers with varying numbers of control points.The simulation creates a bezier in 3 dimensions and uses a time blend to animate along the curve.
Version: of_preRelease_v0.05

src.zip

Statistic Recorder
stat recording
A simple class for recording and visualizing a running stream of some float value.
Version: of_preRelease_v0.05

src.zip