Skip to content

Kinect based interactive system using openFrameworks

License

Notifications You must be signed in to change notification settings

everaldorodrigo/crea

 
 

Repository files navigation

CREA

Interactive system that generates computer graphics using the motion data from the Kinect camera. Written for openFrameworks 0.8.4 (http://openframeworks.cc/).

CREA VIDEO

Video tutorial explaining the interface: https://www.youtube.com/watch?v=i2qrqvZc22Y

##OF 0.9.3 Update Since OF released its new version (0.9+) most of the addons that I used were updated/deprecated and it is quite hard to keep up with all the changes. The addon I was using to have a separate window for the GUI, ofxSecondWindow, is deprecated, as well as ofxUI. I have created a separate branch (https://github.com/fabiaserra/crea/tree/OF0.9) that compiles with 0.9.3 and most of the features should work fine, although you won’t have two separate windows and you will see the UI and the output graphics in the same one (you can hide the UI clicking the ‘h’ key).

However, if you really need to have two separate windows, this functionality now comes out of the box from OF (you can see an example in "examples/events/multiWindowsExample" in your openFrameworks folder) but to use this you will also need to change the UI library (recommended to use ofxGui, which is built into OF) and quite a bit of the structure of the code.

Happy coding!!

##Requirements To use CREA you will need:

  • A Windows, Mac OS X or Linux computer with modern graphics.
  • Xbox Kinect Sensor, preferably model 1414, with USB adapter and Power Supply.
  • Projector or LCD screen.
  • CREA software.
  • openFrameworks 0.8.4.

##Installation

  1. Download openFrameworks in your computer (http://openframeworks.cc/download/). Extract the folder you downloaded and put it somewhere convenient.

  2. Download or clone the repository of CREA (https://github.com/fabiaserra/crea) and place it inside the openFrameworks folder, in apps/myApps. You should have a folder named crea with two folders inside, src and bin, and a few more files. The src folder contains C++ source codes for your project. The bin folder contains the data subfolder where all the content files needed for CREA are located:

  • cues: Cue XML files.
  • fonts: Font files.
  • kinect: Sequence of images to use CREA without plugging a Kinect.
  • sequences: IR Markers sequence XML files.
  • settings: Settings XML files of the control interface.
  • songs: Audio files to play with the basic audio player.
  1. The bin folder contains also an executable file of CREA after you compile it. If this file has the '_debug' suffix means that the project was compiled in the Debug mode of compilation, which lets you debug the project by using breakpoints and other debugging tools. Projects compiled in the Debug mode can work very slowly so always compile it in the Release mode if you use CREA in a live performance.

  2. Download the list of required addons and place them inside the addons folder, only ofxCv and ofxSecondWindow (I have included the rest to src so the updates of the addons do not affect the project):

  1. Create a new openFrameworks project using the project generator tool that is inside the openFrameworks root folder. Name it crea (same name as repository folder you downloaded before) and make sure all these addons are enabled in the list of addons shown: ofxKinect, ofxCv, ofxOpenCV, ofxXmlSettings and ofxSecondWindow.

  2. Go to apps/myApps and inside the folder crea you should see a new file. This file is the project file and depending on your development environment it has extension .sln (Visual Studio), .xcodeproj (Xcode), or .workspace (Code::Blocks).

  3. Open the file with your development environment.

  4. Inside ofApp.h there are a set of macros to change some basic features that are set by default.

If we want to use a separate window for the control interface this line of code has to be uncommented:

// Use a separate window for control interface
#define SECOND_WINDOW

With the following lines of code we set the resolution of the projector:

#define PROJECTOR_RESOLUTION_X 1680
#define PROJECTOR_RESOLUTION_Y 1050

In order to use the Kinect live input the following line has to be uncommented. Otherwise we will use the sequence of images saved in the folder `bin/data/kinect' as input:

// Use the Kinect live input stream
#define KINECT_CONNECTED

In order to be able to use the Gesture Follower feature this line has to be uncommented:

// include gesture follower files (you need to have vmo.cpp, vmo.h, helper.cpp and helper.h in src)
#define GESTURE_FOLLOWER

In order to use an offline sequence of IR Markers as input to the Gesture Follower this line has to be uncommented:

// Use an xml IR Markers sequence file as input to Gesture Follower
#define KINECT_SEQUENCE
  1. Compile the project and enjoy CREA.

About

Kinect based interactive system using openFrameworks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 97.3%
  • Makefile 2.7%