Free Sample
+ Collection

Cinder Creative Coding Cookbook

Rui Madeira, Dawid Gorny

If you know C++ this book takes your creative potential to a whole other level. The practical recipes show you how to create interactive and visually dynamic applications using Cinder which will excite and delight your audience.
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849518703
Paperback352 pages

About This Book

  • Learn powerful techniques for building creative applications using motion sensing and tracking
  • Create applications using multimedia content including video, audio, images, and text
  • Draw and animate in 2D and 3D using fast performance techniques

Who This Book Is For

This book is for artists, designers, and programmers who have previous knowledge of C++, but not necessarily of Cinder.

Table of Contents

Chapter 1: Getting Started
Creating a project for a basic application
Creating a project for a screensaver application
Creating a project for an iOS touch application
Understanding the basic structure of an application
Responding to mouse input
Responding to key input
Responding to touch input
Accessing files dropped onto the application window
Adjusting a scene after resizing the window
Using resources on Windows
Using resources on iOS and OS X
Using assets
Chapter 2: Preparing for Development
Setting up a GUI for tweaking parameters
Saving and loading configurations
Making a snapshot of the current parameter state
Using MayaCamUI
Using 3D space guides
Communicating with other software
How it works...
There's more...
See also
Preparing your application for iOS
Chapter 3: Using Image Processing Techniques
Transforming image contrast and brightness
Integrating with OpenCV
Detecting edges
Detecting faces
Detecting features in an image
Converting images to vector graphics
Chapter 4: Using Multimedia Content
Loading and displaying video
Creating a simple video controller
Saving window content as an image
Saving window animations as video
Saving window content as a vector graphics image
Saving high resolution images with the tile renderer
Sharing graphics between applications
Chapter 5: Building Particle Systems
Creating a particle system in 2D
Applying repulsion and attraction forces
Simulating particles flying in the wind
Simulating flocking behavior
Making our particles sound reactive
Aligning particles to a processed image
Aligning particles to the mesh surface
Creating springs
Chapter 6: Rendering and Texturing Particle Systems
Texturing particles
Adding a tail to our particles
How it works…
Creating a cloth simulation
Texturing a cloth simulation
Texturing a particle system using point sprites and shaders
Connecting the dots
Connecting particles with spline
Chapter 7: Using 2D Graphics
Drawing 2D geometric primitives
Drawing arbitrary shapes with the mouse
Implementing a scribbler algorithm
Implementing 2D metaballs
Animating text around curves
Adding a blur effect
Implementing a force-directed graph
Chapter 8: Using 3D Graphics
Drawing 3D geometric primitives
Rotating, scaling, and translating
Drawing to an offscreen canvas
Drawing in 3D with the mouse
Adding lights
Picking in 3D
Creating a height map from an image
Creating a terrain with Perlin noise
Saving mesh data
Chapter 9: Adding Animation
Animating with the timeline
Creating animation sequences with the timeline
Animating along a path
Aligning camera motion to a path
Animating text – text as a mask for a movie
Animating text – scrolling text lines
Creating a flow field with Perlin noise
Creating an image gallery in 3D
Creating a spherical flow field with Perlin noise
Chapter 10: Interacting with the User
Creating an interactive object that responds to the mouse
Adding mouse events to our interactive object
Creating a slider
Creating a responsive text box
Dragging, scaling, and rotating objects using multi-touch
Chapter 11: Sensing and Tracking Input from the Camera
Capturing from the camera
Tracking an object based on color
Tracking motion using optical flow
Object tracking
Reading QR code
Building UI navigation and gesture recognition with Kinect
Building an augmented reality with Kinect
Chapter 12: Using Audio Input and Output
Generating a sine oscillator
Generating sound with frequency modulation
Adding a delay effect
Generating sound upon the collision of objects
Visualizing FFT
Making sound-reactive particles

What You Will Learn

  • Process and analyze images and draw graphics in 2D or 3D
  • Create applications that use multimedia content including video, images, audio, and text
  • Draw and render particles to create powerful simulations
  • Animate using tweens, timeline, paths, and cameras
  • Create interesting animations with particle systems and physics
  • Interact with the user by tracking and sensing from the camera in real-time
  • Generate audio and create sound visualizations

In Detail

Cinder is one of the most exciting frameworks available for creative coding. It is developed in C++ for increased performance and allows for the fast creation of visually complex, interactive applications.

"Cinder Creative Coding Cookbook" will show you how to develop interactive and visually dynamic applications using simple-to-follow recipes.

You will learn how to use multimedia content, draw generative graphics in 2D and 3D, and animate them in compelling ways.

Beginning with creating simple projects with Cinder, you will use multimedia, create animations, and interact with the user.

From animation with particles to using video, audio, and images, the reader will gain a broad knowledge of creating applications using Cinder.

With recipes that include drawing in 3D, image processing, and sensing and tracking in real-time from camera input, the book will teach you how to develop interesting applications.

"Cinder Creative Coding Cookbook" will give you the necessary knowledge to start creating projects with Cinder that use animations and advanced visuals.


Read More