Getting Started with Quartz Composer
Pages: 1, 2, 3
Bam. Kick It Up a Notch.
Flying, rotating picture cube? No sweat. How about adding a sweet two-image animation? It's no trouble at all with Quartz Composer. Here's how.
Add a second image. Drag a new, second image onto your editor.
Make room for the new effect. Disconnect the original image from the Rotating Cube renderer. Move the existing Interpolation patch out of the way, without disconnecting it.
Add the Dissolve transition. Locate the Dissolve transition in your patch library and drag it onto the editor. Dissolve creates a transition from one image to another.
Add a second Interpolation patch. Drag it in from the Patch library.
Connect! Make the following connections: 1) Connect your original image to the Dissolve patch's Image input. 2) Connect your new image to the Dissolve patch's Target Image input. 3) Connect the new Interpolation to the Dissolve patch's Time input. 4) Finally, connect the Dissolve patch's image output to the Rotating Cube's Image input. These connections tell the Dissolve patch which images to dissolve from and to, using the Interpolation patch as a timer.
Examine the Viewer. The cube faces should now transition between your two pictures, although the change will look a little sharp to begin with.
Adjust the Interpolation settings. Select the new Interpolation (the one connected to Dissolve) and open the Inspector. Choose Input Parameters from the pop-up menu. Set the Duration to 2.5, the repeat mode to Mirrored Loop, and the Sinusoidal In-Out from the Interpolation pop-up menu. The 2.5 duration divides easily into the overall ten-second core animation. Mirrored creates a transition from one image to the other and then from that image back to the first, rather than jumping at the end. Sinusoidal interpolation creates a smoother-looking progression from one image to the next.
Examine the results. The animation in the viewer should look much smoother and nicer after you've applied these settings.
Add a final touch. Disconnect Dissolve from the Rotating cube and drag a copy of the Bloom stylize patch between the two. Connect Dissolve to Bloom's Image input, and Bloom's Image output to Rotating Cube's Image input.
Again, examine the results. Bloom adds a soft, framed, almost dreamy effect to your cube.
Save to disk. Save your Quartz animation to disk as MyThird.qtz.
Return to iMovie. Load in the two new animations (MySecond and MyThird) and watch them play back at full digital video quality.
As you've seen in this article, Quartz Composer can produce powerful and exciting iMovie-compatible graphic sequences with just a few minutes of work. The animations you've created here are only a taste of Quartz Composer's power. There's much, much more you can do with this incredibly powerful tool. Hopefully this article will act as a starting point and inspire you to explore and discover more of Quartz Composer's phenomenal abilities.
Erica Sadun has written, co-written, and contributed to almost two dozen books about technology, particularly in the areas of programming, digital video, and digital photography.
Return to the Mac DevCenter
You must be logged in to the O'Reilly Network to post a talkback.
Showing messages 1 through 4 of 4.
-
Absolutely Slick
2006-04-12 20:50:19 rmichaud [Reply | View]
This is awesome
I just quickly rigged up a photo cube screensaver of some family pictures using a cube renderer and some iterators. Took me all of 5 minutes or so and boom! new screensaver!
Cool!
-
Also fully supported in Keynote
2006-04-03 08:54:58 seattleseth [Reply | View]
Another way that I use quartz composer is in keynote to make a really cool object in a presentation or as a novel transition.
For a cool transition put a 'transition slide' between two normal standard slides with an automatic transition after .2-1s, depending on your quartz composition to make it look good. Then set the actual transition between all of the slides to dissolve, which usually works best, but feel free to play with it. This does take sometime to make it look smooth, but can be worth it.
For a quick demo of this make three slides with a black background. Set the middle slide to automatic transition with .5s delay and drap the 'particle system.qtz' or 'explosive.qtz' file from /Developer/Examples/Quartz Composer/Motion Graphic Compostions onto the middle slide. Set the first slide to transition on click with dissolve and start the presentation. This is rough, but gives you the general idea.
Takes a bit of extra work, but also can make really cool effects. If you take screenshots of begining and end slides you can incorporate them into the qtz composition.
-
Great screensavers!
2006-03-24 08:01:34 merlyn [Reply | View]
I didn't see a mention (may have skimmed past it) of using Quartz Composer files as Screen Savers.
Just put your .qtz file into ~/Library/Screen Savers, and you'll be able to select it with the Desktop & Screen Saver pref pane. I've got some very cool screen savers to choose from when I need them. And you can get a lot more from http://www.quartzcompositions.com/phpBB2/upload/index.php ... some very slick work there.






http://www.scriptsoftware.com/chatfx
ChatFX comes with many effects but rolling your own is a lot fun.