openFrameworks Essentials
eBook - ePub

openFrameworks Essentials

Denis Perevalov, Igor (Sodazot) Tatarnikov

Share book
  1. 206 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

openFrameworks Essentials

Denis Perevalov, Igor (Sodazot) Tatarnikov

Book details
Book preview
Table of contents
Citations

Frequently asked questions

How do I cancel my subscription?
Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
Can/how do I download books?
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
What is the difference between the pricing plans?
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
What is Perlego?
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Do you support text-to-speech?
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Is openFrameworks Essentials an online PDF/ePUB?
Yes, you can access openFrameworks Essentials by Denis Perevalov, Igor (Sodazot) Tatarnikov in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Networking. We have over one million books available in our catalogue for you to explore.

Information

Year
2015
ISBN
9781784396145

openFrameworks Essentials


Table of Contents

openFrameworks Essentials
Credits
Foreword
The pro goes ashore
The era of self-education
About the Authors
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Getting Started with openFrameworks
What is openFrameworks?
Installing openFrameworks
The openFrameworks folder structure
Running your first example
The video synthesizer application
Three reasons to create your own video synthesizer with openFrameworks
Summary
2. Creating Your First openFrameworks Project
Creating and running a new project
Creating a project
Running a project
Discovering the project's code structure
Setting up the screen
Centering the coordinate system
A simple drawing
Setting drawing color
Drawing primitives
Geometric patterns
The stripe pattern
A stripe pattern made from parallel lines
Inserting the function declaration
Inserting the function definition
Inserting the function calling
A stripe pattern made from rotating lines
A stripe pattern made from rotating triangles
Summary
3. Adding a GUI and Handling Keyboard Events
Creating a GUI using the ofxGui addon
Implementing a simple GUI panel with sliders
Using the sliders' values
Implementing the autosave feature
Creating groups of controls
Using the sliders' values
Implementing a checkbox, a color selector, and a 2D slider
Using the controls' values
Experimenting with the project
Handling keyboard events
Hiding the GUI
Saving a screenshot
Saving a preset using the system save dialog
Loading a preset using the system load dialog
Implementing the matrix pattern generator
Using the sliders' values
Experimenting with the matrix pattern generator
Summary
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 mixer's GUI
Implementing the mixer's functionality
Creating the video effect with a shader
Redirecting drawing to the offscreen buffer
Drawing the offscreen buffer contents and enabling smoothing
Implementing the kaleidoscope effect
Creating the fragment shader
How it works
Creating the vertex shader
Using created shaders in the project
Summary
5. Creating 3D Graphics
Introduction to 3D graphics with openFrameworks
openFrameworks classes for surface representation
Drawing a wireframe sphere
Creating a camera
Controlling the camera with a mouse
Disabling mouse control for the camera when the GUI is visible
Camera automation
Drawing a solid sphere
The things needed for shading the surface
Drawing a solid sphere with shading
Texturing the sphere
Preparing a texture
Setting texture coordinates
Activating texturing
Mixing 2D and 3D with the GUI
Deforming a sphere
Deforming by formulas
Extruding the sphere
Summary
6. Animating Parameters
Using time values for a parameter's automation
Implementing a simple LFO
Implementing a pseudorandom LFO with Perlin noise
Using the level of sound for a parameter's automation
Playing and analyzing an audio file
Getting the level of a sound signal
Capturing sound from a sound card's input and measuring its level
Reading data from a text file
Controlling automation
Summary
7. Distributed and Physical Computing with Networking and Arduino
Distributed computing with networking
Networking in openFrameworks
The ofxNetwork addon
The ofxOsc addon
Implementing the OSC messages receiver
Creating an OSC sender with openFrameworks
Sending OSC messages between two separate computers
Connection troubleshooting
Creating OSC senders with TouchOSC, Python, and Max/MSP
Creating an OSC sender for a mobile device using the TouchOSC app
Creating an OSC sender with Python
Creating an OSC sender with Max/MSP
Physical computing with Arduino
Programming an Arduino board
Receiving data from Arduino in the openFrameworks project
Connection troubleshooting
Connecting more devices
Summary
8. Deploying the Project on iOS, Android, and Raspberry Pi
Running the project on an iOS device
Implementing video synthesizer for iOS
Building a project for iPad
Deploying the project on an iOS device
Using accelerometer
Running the project on an Android device
Installing s...

Table of contents