-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
OpenFrameworks Essentials
By :
Let's create a new project OscOF, one that contains a GUI panel with one slider, and send the slider's value via OSC to the VideoSynth project.
Here, we assume that the OSC sender and receiver run on the same computer. See the details on running the sender on a separate computer in the upcoming Sending OSC messages between two separate computers section.
Now perform the following steps:
Create a new project using Project Generator. Namely, start Project Generator, set the project's name to OscOF (that means OSC with openFrameworks), and include the ofxGui and ofxOsc addons to the newly created project (see the details on using Project Generator in Chapter 2, Creating Your First openFrameworks Project). The ofxGui addon is needed to create the GUI slider, and the ofxOsc addon is needed to send OSC messages.
Open this project in your IDE.
Include both addons' headers to the ofApp.h file by inserting the following lines (after the #include "ofMain.h...
Change the font size
Change margin width
Change background colour