Search icon
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Multimedia Programming with Pure Data

You're reading from  Multimedia Programming with Pure Data

Product type Book
Published in Jul 2013
Publisher Packt
ISBN-13 9781782164647
Pages 350 pages
Edition 1st Edition
Languages
Author (1):
Bryan, Wai-ching CHUNG Bryan, Wai-ching CHUNG
Profile icon Bryan, Wai-ching CHUNG

Table of Contents (17) Chapters

Multimedia Programming with Pure Data
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Getting Started with Pure Data 2. Computer Graphics with the GEM Library 3. Image Processing 4. Interactivity 5. Motion Detection 6. Animation with Particle System 7. Audio Programming 8. Interface with the Outside World 9. Extending Pure Data Communities and References Index

Obtaining images from external sources


The first step is to create an empty patch with the basic GEM window setup. Create a new Pure Data patch. Save it to your folder with name Image001.pd. Put in the gemwin object, with the create and destroy messages. Use a toggle box to control the rendering. To work with the examples, you also need a few digital image files in formats such as JPEG, PNG, a few video clips in QuickTime (MOV) or MP4 formats. For live video, you also need a working webcam connected to your computer.

The following screenshot is the patch content:

In the patch, we need a gemhead object. We also have a new object—pix_image. And then, we connect another new object—pix_texture, finally to a rectangle object. There is a message box for the pix_image object. It is a message to instruct the pix_image object to open an external file with name Sample01.png that resides in the same folder with the Pure Data patch. If the PNG file does exist and is a valid image document, the image...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}