O'Reilly logo

openFrameworks Essentials by Denis Perevalov, Igor Tatarnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the project on an iOS device

If you have an iOS device, you can deploy our project on it. Before you can do that, you need to buy iOS Developer License from Apple (it costs $99 per year; see details at developer.apple.com/programs). Next, you should create a provisioning profile for the mobile device and a development certificate for your computer.

See the detailed instructions on this at openframeworks.cc/setup/iphone.

Using accelerometer

A typical iOS device has an accelerometer and a gyroscope to detect the motion and the orientation of the device respectively. openFrameworks has a built-in ofxAccelerometer class, which handles the accelerometer. Let's implement using it to control two sliders of the project using the following steps: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required