售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Cover
Copyright
Credits
Foreword
About the Author
Acknowledgement
About the Reviewers
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 graphics PDF
Errata
Piracy
Questions
Mastering openFrameworks: Creative Coding Demystified
Appendix A. Working with Addons
Addons basics
Addons in openFrameworks
Installing a non-core addon
Linking addons to a new project
Using Project Generator
Linking an addon to an existing project
List of selected addons
Summary
Appendix B. Perlin Noise
Perlin noise basics
Using the ofNoise() function
Space-coherent noise
Summary
Index
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Z
Chapter 1. openFrameworks Basics
About openFrameworks
Use cases
Installing openFrameworks and running your first example
Installing on Windows
Installing on Mac OS with Xcode
Installing on Linux with Code::Blocks
openFrameworks' folders
The examples folder
The apps folder
The addons folder
File structure of a project
Code structure of a project
main.cpp
testApp.h
testApp.cpp
Creating a new project
Creating a project from an existing example
Creating a project using Project Generator
Creating your first project – the Pendulum example
Running the book's examples
Basic utility functions
Summary
Chapter 2. Drawing in 2D
Drawing basics
The background color of the screen
Pulsating background example
Geometric primitives
The simplest example of a flower
Controlling the drawing of primitives
Using ofPoint
Operations with points
Using control points example
Coordinate system transformations
Flower with petals example
Colors
Operations with colors
Color modifications example
Drawing with an uncleared background
Using FBO for offscreen drawings
Spirals example
Screen grabbing
Additional topics
Summary
Chapter 3. Building a Simple Particle System
The basics of particle systems
Interaction types
Computing particles' physics
Rendering particles
Creating a particle system – summary
A single particle
Control parameters
Defining the particle functions
Implementing a particle in the project
An emitter
The attraction, repulsion, and spinning forces
Graphical user interface
Additional topics
Summary
Chapter 4. Images and Textures
Raster and vector images
Loading and drawing an image
Rotating images
Color modulation
Transparency
Creating and modifying images
Creating images
Modifying images
Using ofTexture for memory optimization
Image warping and video mapping
Using images for internal calculations
An image as a mask
An image as a palette
Summary
Chapter 5. Working with Videos
Video basics
Playing a video file
Controlling the video playback
Processing a single video frame
The vertical lines image example
The replacing colors example
Processing multiple frames
Radial slit-scan example
Processing a live video from the camera
The video synthesizer example
Using image sequence
Using image sequence example
Summary
Chapter 6. Working with Sounds
Sound basics
Playing sound samples
The bouncing ball example
The singing voices example
Generating sounds
The PWM synthesis example
Image-to-sound transcoder example
Using a microphone
The loop sampler example
Getting spectral data from sound
Dancing cloud example
Summary
Chapter 7. Drawing in 3D
3D basics
Representation of 3D objects
3D scene rendering
Simple 3D drawing
The triangles cloud example
Using ofMesh
Enabling lighting and setting normals
Drawing sharp edges
Drawing line segments and points
Drawing line segments
Drawing points
Coloring the vertices
Texturing
Working with vertices
The oscillating plane example
The twisting knot example
Additional topics
Summary
Chapter 8. Using Shaders
Basics of shaders
Types of shaders
When to use shaders
Structure of a shader's code
A simple fragment shader example
Creating the fragment shader
The vertex shader
Embedding shaders in our project
Debugging shaders
Creating video effects with fragment shaders
Passing a float parameter to a shader
Passing the float array to the shader
Using Perlin noise in shaders
Processing several images
An audio-reactive project example
Deforming objects with a vertex shader
Vertex shader
Fragment shader
Using vertex shader in our project
Using a geometry shader
The furry carpet example
Additional topics
Summary
Chapter 9. Computer Vision with OpenCV
Understanding computer vision and OpenCV
Using ofxOpenCv
Working with ofxCv images
Image initializing
Algebraic operations with images
Drawing functions
Access to pixels
Working with color planes and color spaces conversion
Motion detection from movies
Discussing the algorithm's parameters
Motion detection from live video
Image filtering
The image filtering example
Geometrical transformations of images
Perspective distortion removing example
Searching for objects in an image
Using the ofxCvContourFinder class for finding contours
An example for searching bright objects in video
Using OpenCV functions
Optical flow
Summary
Chapter 10. Using Depth Cameras
Depth camera basics
Active infrared stereo cameras
Installing the ofxOpenNI addon
ofxOpenNI examples
Working with examples of depth images
Hand-tracking examples
User tracking examples
Creating interactive surface
Running the project
Additional topics
Summary
Chapter 11. Networking
Networking basics
Using OSC protocol
Sending data
Receiving data
Typical schemes of OSC usage
Using TCP protocol for streaming images
The streaming images example
Summary
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜