openFrameworks Essentials

Create stunning, interactive openFrameworks-based applications with this fast-paced guide

openFrameworks Essentials

This ebook is included in a Mapt subscription
Denis Perevalov, Igor Tatarnikov

1 customer reviews
Create stunning, interactive openFrameworks-based applications with this fast-paced guide
$23.99
$29.99
RRP $23.99
RRP $29.99
eBook
Print + eBook
Subscribe and access every Packt eBook & Video.
 
  • 4,000+ eBooks & Videos
  • 40+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781784396145
Paperback206 pages

Book Description

openFrameworks is a cross-platform programming toolkit and library to perform creative coding in C++. It contains all you need to efficiently implement real-time tasks, such as generating 2D and 3D graphics, processing video and sound, and using networking.

openFrameworks Essentials is a guide that can be used for learning and using openFrameworks to develop creative and artistic real-time applications. It is a fast-paced tutorial that begins with installing openFrameworks, and then takes a step-by-step approach towards using openFrameworks to build a video synthesizer project. We will investigate and implement features such as 2D and 3D graphics, GUI, shaders, reaction on sound, the OSC networking protocol, and the Arduino.

This book will empower you with the practical skills required to build creative apps and projects using openFrameworks.

Table of Contents

Chapter 1: Getting Started with openFrameworks
What is openFrameworks?
Installing openFrameworks
Running your first example
The video synthesizer application
Summary
Chapter 2: Creating Your First openFrameworks Project
Creating and running a new project
Discovering the project's code structure
Setting up the screen
Centering the coordinate system
A simple drawing
Geometric patterns
Summary
Chapter 3: Adding a GUI and Handling Keyboard Events
Creating a GUI using the ofxGui addon
Implementing a simple GUI panel with sliders
Implementing the autosave feature
Creating groups of controls
Implementing a checkbox, a color selector, and a 2D slider
Handling keyboard events
Implementing the matrix pattern generator
Summary
Chapter 4: Working with Raster Graphics – Images, Videos, and Shaders
Raster images in openFrameworks
Drawing an image file
Playing a video file
Grabbing a live video from a camera
Mixing layers using additive blending
Creating the video effect with a shader
Summary
Chapter 5: Creating 3D Graphics
Introduction to 3D graphics with openFrameworks
Drawing a wireframe sphere
Creating a camera
Drawing a solid sphere
Texturing the sphere
Mixing 2D and 3D with the GUI
Deforming a sphere
Summary
Chapter 6: Animating Parameters
Using time values for a parameter's automation
Using the level of sound for a parameter's automation
Capturing sound from a sound card's input and measuring its level
Reading data from a text file
Controlling automation
Summary
Chapter 7: Distributed and Physical Computing with Networking and Arduino
Distributed computing with networking
Networking in openFrameworks
Implementing the OSC messages receiver
Creating an OSC sender with openFrameworks
Creating OSC senders with TouchOSC, Python, and Max/MSP
Physical computing with Arduino
Programming an Arduino board
Summary
Chapter 8: Deploying the Project on iOS, Android, and Raspberry Pi
Running the project on an iOS device
Deploying the project on an iOS device
Running the project on an Android device
Running the project on Raspberry Pi
Summary
Chapter 9: Further Resources
Enhancing the video synthesizer project
Getting more information on openFrameworks
Debugging and speeding up your code
Summary

What You Will Learn

  • Install openFrameworks and create a new project
  • Generate 2D and 3D graphics
  • Mix images and videos and process them with shaders
  • Add GUI controls and adjust them from external devices and apps using the OSC protocol
  • Control parameters with a timer, Perlin noise, and sound and text files
  • Use the Arduino to control your application
  • Build a video synthesizer project
  • Run your project on iOS, Android, and Raspberry Pi devices

Authors

Table of Contents

Chapter 1: Getting Started with openFrameworks
What is openFrameworks?
Installing openFrameworks
Running your first example
The video synthesizer application
Summary
Chapter 2: Creating Your First openFrameworks Project
Creating and running a new project
Discovering the project's code structure
Setting up the screen
Centering the coordinate system
A simple drawing
Geometric patterns
Summary
Chapter 3: Adding a GUI and Handling Keyboard Events
Creating a GUI using the ofxGui addon
Implementing a simple GUI panel with sliders
Implementing the autosave feature
Creating groups of controls
Implementing a checkbox, a color selector, and a 2D slider
Handling keyboard events
Implementing the matrix pattern generator
Summary
Chapter 4: Working with Raster Graphics – Images, Videos, and Shaders
Raster images in openFrameworks
Drawing an image file
Playing a video file
Grabbing a live video from a camera
Mixing layers using additive blending
Creating the video effect with a shader
Summary
Chapter 5: Creating 3D Graphics
Introduction to 3D graphics with openFrameworks
Drawing a wireframe sphere
Creating a camera
Drawing a solid sphere
Texturing the sphere
Mixing 2D and 3D with the GUI
Deforming a sphere
Summary
Chapter 6: Animating Parameters
Using time values for a parameter's automation
Using the level of sound for a parameter's automation
Capturing sound from a sound card's input and measuring its level
Reading data from a text file
Controlling automation
Summary
Chapter 7: Distributed and Physical Computing with Networking and Arduino
Distributed computing with networking
Networking in openFrameworks
Implementing the OSC messages receiver
Creating an OSC sender with openFrameworks
Creating OSC senders with TouchOSC, Python, and Max/MSP
Physical computing with Arduino
Programming an Arduino board
Summary
Chapter 8: Deploying the Project on iOS, Android, and Raspberry Pi
Running the project on an iOS device
Deploying the project on an iOS device
Running the project on an Android device
Running the project on Raspberry Pi
Summary
Chapter 9: Further Resources
Enhancing the video synthesizer project
Getting more information on openFrameworks
Debugging and speeding up your code
Summary

Book Details

ISBN 139781784396145
Paperback206 pages
Read More
From 1 reviews

Read More Reviews