openFrameworks Essentials
eBook - ePub

openFrameworks Essentials

Denis Perevalov, Igor (Sodazot) Tatarnikov

Compartir libro
  1. 206 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

openFrameworks Essentials

Denis Perevalov, Igor (Sodazot) Tatarnikov

Detalles del libro
Vista previa del libro
Índice
Citas

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es openFrameworks Essentials un PDF/ePUB en línea?
Sí, puedes acceder a openFrameworks Essentials de Denis Perevalov, Igor (Sodazot) Tatarnikov en formato PDF o ePUB, así como a otros libros populares de Computer Science y Computer Networking. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
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...

Índice