Playtime for Selkie and Momo

Playtime for Selkie and Momo

Selkie is the Aerialist who performs with The Glitch Mob. After the LA Show, we got together to play with some realtime projection + dancing stuff. I had only my phone (Samsung Droid Charge) to record with, hence the low-res image. The first video is an openFrameworks visual I’m working on, controlled here with the [...]

New Movie Loader in Quartz Composer for Snow Leopard

New Movie Loader in Quartz Composer for Snow Leopard

Exploring the awesome updates to the Movie Loader patch in the new Quartz Composer for Snow Leopard

Structure in VJ Performance

Structure in VJ Performance

An exploration of Structure – 4 Layers for Visual Performance.

Cut Up Video using Lucifer and Ableton Live

Cut Up Video using Lucifer and Ableton Live

Make realtime AV Cutups the easy way – with Lucifer and Ableton Live

Quartz Composer: 3D Cubes and Audio Input

Quartz Composer: 3D Cubes and Audio Input

A Beginner’s Tutorial on Lighting, Cubes and Audio Input to make an Interactive Toy in Quartz Composer.

AV Challenge 2: Part One, Making the Clips

AV Challenge 2: Part One, Making the Clips

Momo the Monster’s Method for AV Madness

Wii to MIDI Walkthrough for Windows

Wii to MIDI Walkthrough for Windows

Everything you need to get started making some interactive video on a Windows PC

Loop-R VJ Touchscreen System

Loop-R VJ Touchscreen System

Homemade Performance system from visual_basiq

Playsonic: AV Fun with a Game Controller

Playsonic: AV Fun with a Game Controller

From the 2007 Maker Faire – a project where Video Art meets Gaming and DJing

Retinal Rumble

Retinal Rumble

Show Me Yours and I’ll Show You Mine – live Internet Video Battle at the 2007 Maker Faire.

AV Sequencing with Live + VDMX + Monome

AV Sequencing with Live + VDMX + Monome

A solution for hands-on live audiovisual performance

VJ Kung Fu Promo

VJ Kung Fu Promo

See the new VJKUNGFU.TV Promo!

Crossfader Triggering with the NuVJ

Crossfader Triggering with the NuVJ

Using the NuVJ for AudioVisual performance – a remix and demo.

NuVJ Crash Course

NuVJ Crash Course

The basics on the NuVJ – what the buttons do, what it’s like to mix with.

A VJ’s Pet – Lemur

A VJ’s Pet – Lemur

Introduction to the Lemur Multi-Touch Interface device. How to connect it up, some things you can do with it.

Build a Projector Mount that will Go Anywhere

Build a Projector Mount that will Go Anywhere

You can’t count on venues to have a proper place to put your projector. Build one of these and you can go anywhere.

Staring Into The Snow Preview

Staring Into The Snow Preview

Preview of an ambient abstract piece about losing yourself in the holiday season.

Maker Faire VJ Clips

Maker Faire VJ Clips

Free VJ-Ready Clips from the Maker Faire 2006

Play a Movie in Quartz Composer

Play a Movie in Quartz Composer

QC can look daunting at first – here’s how to get started.

How To Install Quartz Composer

How To Install Quartz Composer

Free video processing app from Apple – you may already have it!

Visit the VJ Kung Fu Channel on Vimeo to download the original, high-quality Quicktime.

Quartz Composer: 3D Cubes and Audio Input

We’re going to make a 3D cube that responds to our voice.
launchqc.jpg
First we start up Quartz Composer. The icon will be different depending on whether you’re running OS X 10.5 or 10.4.
qc_new.png
From the File menu, choose New Blank (or simply ‘New’ in Tiger).

qc_clear.png
In Leopard, we need to open the Patch Creator. In Tiger, this is always open, and called the Patch Library, found anchored to the left side of the Editor. Type ‘Clear’ into the search field to drill down to the patch we want. Drag-and-drop the Clear patch to the Editor.
qc_dragcube.png
Now we’ll do the same with a cube. Type ‘cube’ into the search field, and then drag the patch into the Editor.
qc_apple_i.png
Select the Cube and press Apple-i to bring up the Inspector. This is where we can hand-adjust all the aspects of our Cube.
qc_whd.png
The cube is a little too big to work with, so we’ll take it down in size. Type 0.25 into the Width, Height and Depth fields.
qc_zpos_cube.png
Now let’s play with the X, Y and Z positions of the cube. Spin the dials to the right of the text fields labeled X Position, Y Position and Z Position and watch how the cube moves around in space. To change the values, you need to click and hold on a dial, and the move the mouse in small clockwise circles to raise the value, and counter-clockwise circles to lower it.
qc_xyz_0.png
Let’s reset these values to 0 by typing directly into the fields.

qc_xrot.png
Now let’s play with the X Rotation property. You’ll notice that the changes we’re making are very small. This is because Rotation is measured in degrees, so to go all the way around once, we need to increment from 0 to 360. Hold down the Shift key for faster rotation. We can recognize that the Cube is three-dimensional, but it’s hard to tell, and not very pleasing to look at. Let’s add some lighting to flesh out the look.
qc_addlighting.png
Type ‘lighting’ into the patch search, then drag and drop a Lighting environment into your composition. Notice the square edges on this patch. Our previous two patches, which are both Renderers, have rounded edges. The squared edges of this Lighting Environment patch tell us that we can put other patches inside of it.
qc_breadcrumbs.png
Select the cube and press Apple-X to Cut it to your clipboard just like you would with a Word Processor. Double-click on the Lighting patch and press Apple-V to paste your Cube back inside. In Leopard, you’ll see the above breadcrumb trail letting you know that we’re inside the Lighting Patch, which is inside the Root patch of our composition. In Tiger, you may have to click on the ‘Hierarchy Browser’ to see this. Click ‘Edit Parent’ to return to our Root Patch.
qc_lightatt.png
Back in our Root Patch, click on Lighting and press Apple-i to bring up the Inspector. Change Attenuation to 0.1 to smooth out the lighting, and play around with the Light 1 XY and Z Position to see how it affects the composition.

qc_lightcolor.png
Click on the color box next to Light 1 Color to bring up a color wheel. Pick a new color and observe the changes in your viewer.
qc_add_interp.png
Next we’re going to bring in an Interpolation patch which will provide some automated control.

qc_interp_inspect.png
In the Inspector for the Interpolation patch, choose a Start and End Value of 0 and 360, respectively. This tells the Interpolator what values we want it to output.
qc_intrp_cube.png
Connect the Result from the Interpolation patch to Y Rotation on Cube. Now the Interpolation patch is counting from 0 to 360 (using decimals in-between for a smooth output) and we’re using those numbers to change the Y Rotation on the cube. Change the Duration of your Interpolation from 1 to 0.1 and watch it go freakishly fast. Change it to 10 and observe it slow down. Revert it to 1 second and let’s move on.

Next we’ll add an Audio Input patch so we can interact with our composition.

qc_audio_2_cube.png
Connect the ‘Volume Peak’ output to the ‘Height’ input on the Cube.
In your viewer, your cube should now be responding to your default system input – on a laptop, this will be your internal Mic. On a desktop, you may need to plug in a Mic or some other External Audio source to see it respond.

NOTE: It is possible to redirect iTunes to your QC comp using a utility called Soundflower – look for a tutorial on this topic soon.

qc_route_thr_math.png
Looking at the viewer, you’ll notice that our Cube is not hitting the top and bottom of the display area. In order to change this, we’ll add a Math patch. We’ll route the signal through the Math patch (as pictured above) before sending it along to the cube.

In the Math Patch Inspector, we’ll change the Operation to Multiply, and try ’4′ for the amount. In Tiger you will default to having two operations – you can leave the other one blank.

qc_cube_tall.png
Now we should see the cube stretch all the way to the top and bottom of the screen. We can play with the multiplication amount until we find a spot we like.

Now it’s time to experiment on your own. Open up patches and change some values, see what happens. When you find a change you like, hook up an Interpolation or Audio Input patch to it. Stick Math patches in your routing streams to take control of your values. Experimenting like this works to cement the ideas you learn, and steadily increase your understanding of the Quartz Composer System.

This website uses IntenseDebate comments, but they are not currently loaded because either your browser doesn't support JavaScript, or they didn't load fast enough.

4 Responses to “Quartz Composer: 3D Cubes and Audio Input”

  1. cyberpatrolunit Says:

    Great tutorial MTM! I hear QC has adopted OSC?

  2. Andrey Says:

    Cool.
    How i can use it with different frequencys? for exmple i want to make cube for low frequency, and sphere for high freq. A find audio processor, but don't understand how make comutation between units.

  3. Soup Says:

    this video was crucial – thank you so much! Keep an eye on OpenDome.net for a project based off this starting block soon!

  4. Ariel Says:

    thanks!

Leave a Reply

You must be logged in to post a comment.