Fluids System

August 8th, 2008

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…

Update: Looks like 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
project (linux-code::blocks)

Made at summerLab Gijon!

Particle Systems

August 8th, 2008

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 | project (linux)
pSystem Circles src.zip | project (linux)

Made at summerLab Gijon!

Vector Field

August 8th, 2008

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
project (code::blocks - linux)

Made at summerLab Gijon!

OF SummerLAB

August 8th, 2008

The openFrameworks crew at summerLAB in Gijon! … lots of code from this week coming soon!

Unique Random + Video Delay

July 29th, 2008

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
project (code::blocks - linux)

Contour Analysis

July 25th, 2008

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
contourAnalysis project (code::blocks-linux)

lineFinding_src.zip
lineFinding project (code::blocks-linux)

Bezier Movement

July 23rd, 2008

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
project (code::blocks - linux)

Statistic Recorder

July 23rd, 2008

stat recording

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

src.zip
project (code::blocks, linux)

Warping Example - Updated

July 23rd, 2008

warping

Updated examples with an easy draggable interface to warp an image.
Version: of_preRelease_v0.05
Addons: ofxXmlSettings

src folder
project ( code::blocks - linux)

Fullscreen Movie Player

November 21st, 2007

This is a very simple addition to the openFrameworks example, but quite useful. Recently, a colleague needed to play a large movie that spanned two screens, but we could not get any players to run it (at least on that computer), so I wrote a quick player to do it.

fullScreenMoviePlayer