Quartz Composer

Post 10.6.4

cybero's picture

Glitches in QC after this recent update, none to report; in fact the one persistent glitch when working with OpenCL and running GROWL based applications resulting in interface clutter [seemed like a buffer glitch - just guessing] has - up to the time of writing, gone entirely.

:-)

Droste - Sample Code

cybero's picture

A new Core Image routine and spiffy example from the Developer Sample Code section - new accession to the stacks :-).

Requires 10.6.x, which I guess underlines how much 10.6 suits tasks unachievable under 10.5.x and earlier, even with Core Image.

Embedding Movies in Quartz Composer : Image Structures

gtoledo3's picture

It is possible to embed a movie in Quartz Composer, by following these steps:

  1. Convert the movie to an image sequence.

  2. Convert that sequence to a multipage document (like a pdf or gif).

  3. Place an Image patch on the surface of the QC Editor.

  4. Select the Image patch. Go to Settings, using the Patch Inspector. Under Image Options, select Extract All Images. Choose Import From File, choose your file, then select Open to load it into the Image patch.

    Now, the Image patch will output a structure of all frames from your movie/image sequence. By connecting a Structure Index to the output of the Image patch, and then connecting the output of the Structure Index patch to a Billboard (or other patches that render an input image), one will render the first frame in the sequence.

  5. Connect an Image Dimensions patch to the output of the Structure Index. Connect the Width and Height outputs to the Width and Height Inputs of the Billboard patch. To obtain both Width and Height Inputs for the Billboard patch, select the Patch Inspector, go to Settings, and select Custom Size.

    One should now have a Billboard rendering the first frame of the Image Sequence, referencing said Image for it's Width and Height.

  6. Now, select another Structure Index. Connect the output of the Image Patch to this Structure Index, and the output to the existing Billboard.

    By using an Interpolation or LFO patch, one could play through frames, but a good starting point for movie playback is to create a looper macro with definable FPS. There are multiple ways to achieve this. An easy way is to :

  7. Take the Patch Time, and multiply by an Operand using the Math patch, which will become the Frame Rate of the playback.

  8. Then, take a Math Expression patch and enter "a % b" into Settings.

    In this case, "a" will take the output of the Math patch. Place a Structure Count patch on the Editor, connect the input to the output of the Image patch, and the output Count to input "b" on the Math Expression patch.

  9. Take the second Structure Index that you created, and which should be connected to the Billboard, and connect the output Result of the Math Expression patch to the Index input of the Structure Index. Enter in the desired playback rate, by changing the multiplicative Operand on the Math Patch. Publish this input and call it Frame Rate.

...and you're done! One should have a qtz that is playing back an embedded movie, with ability to define the rate of playback.

For an example of this, reference the attached file.

Notes:

I've tested this with multi-page pdf's and gif images, though I'm guessing that multi-page tiff would likely work as well.

For creating your own from scratch, it's easy to convert movies to Image Sequences using Quicktime's Export to Image Sequence ability. From that point one, can use a utility program to create a gif, or use Preview to convert to pdf.

I would think it would be possible to merge a pdf document by using Preview, and according to some unofficial documentation I've read, but when I drop multiple pdf's onto the sidebar in Preview, it doesn't give me a "bound"/merged document. I've used an older free utility called "pdfsam", which will successfully create a merged pdf document with correct ordering.

For the sake of size (and cost of quality), one may want to reopen the merged pdf in Preview and Save using the "Reduce File Size" Quartz Filter option.

The creation of Image Sequence from movie, to merged pdf or gif file seems like something that should be scriptable, to avoid having to use various applications to prep the Image document, but I haven't investigated the automation of that process yet.

How to get old QC style back?

flarn2006's picture

How do I get the old style of Quartz Composer back? You know, like this: http://ecell3d.iab.keio.ac.jp/pict/quartzComposer.png instead of this: http://en.wikipedia.org/wiki/File:QuartzComposerSnowLeopard.png

It would be especially nice if I could have the patches and the composition all in one window like in the first screenshot.

TOXIQUE (A/V REMIX BY JANKENPOPP) (QC VS ABLETON LIVE)

jknppp's picture

Hello everybody, I just want to share with you this new video I did using Quartz Composer and Ableton Live in real time. This is the kind of automatic vj-ing stuff I use when I play live... I usually sing a french translation of the original lyrics on this cover.. I'm planing to make a DVD this year with my quartz stuff...
hope you like Thank you for watching :-)

TOXIC AUDIOVISUAL REMIX ORIGINAL SONG BY WHO YOU KNOW ;-) MUSIC+GFX+CODE : JANKENPOPP

ANIMATION GENERATED IN REAL TIME WITH ABLETON LIVE & QUARTZ COMPOSER IN 2010.

PREVIEW FROM JANKEN'S FIRST DVD, SOON TO COME, IF YOU WANT TO PARTICIPATE TO THIS DVD PROJECT, FEEL FREE TO CONTACT ME :-)

THANKS TO "LE POLE" FOR HELPING ME TO CAPTURE THIS OUT FROM MY COMPUTER ;-)