Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Patches  



1.1  Plugins  







2 Hidden options  





3 Native datatypes  



3.1  Type conversion  







4 Compositions  



4.1  Composition protocols  





4.2  Composition runtimes  





4.3  Composition repository  





4.4  Comparing compositions  







5 Related software  



5.1  Quartz Composer Visualizer  





5.2  Automator support  







6 History  





7 References  





8 External links  



8.1  Books  





8.2  Tutorials and documentation  





8.3  Mailing list  





8.4  Compositions  





8.5  Custom patches / plugins  





8.6  Images and videos  
















Quartz Composer






Deutsch
Français
Italiano

Polski
Svenska
Українська
 

Edit links
 









Article
Talk
 

















Read
Edit
View history
 








Tools
   


Actions  



Read
Edit
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
 
















Appearance
   

 






From Wikipedia, the free encyclopedia
 


Quartz Composer
Developer(s)Apple Computer
Stable release

4.6.2 / December 12, 2016

Operating systemMac OS X Tiger (Version 2.0)
Mac OS X Leopard (Version 3.0)
Mac OS X Leopard + iPhone SDK (Version 3.1)
Mac OS X Snow Leopard (Version 4.0)
macOS Sierra (Version 4.6.2)
Available inEnglish
TypeVisual programming language/Software development tool
LicenseProprietary
WebsiteApple - Quartz Composer (User Guide)

Quartz Composer is a node graph system provided as part of the Xcode development environmentinmacOS for processing and rendering graphical data. It is capable of making sophisticated animations for keynote or presentations, and creating animated screensavers.[1]

Quartz Composer uses OpenGL (including GLSL), OpenCL (only in Mac OS X Snow Leopard and later), OpenAL, Core Image, Core Video, JavaScript, and other technologies to create an API and a developer tool around a simple visual programming paradigm. Apple has embedded Quartz technologies deeply into the operating system. Compositions created in Quartz Composer can be played standalone in any QuickTime-aware application[2] (although only on Mac OS X Tiger and later), as a system Screen Saver,[3] as an iTunes Visualizer, from inside the Quartz Composer application, or can be embedded into a CocoaorCarbon application via supplied user interface widgets. While Quartz Composer is included with the iPhone SDK, as of December 2015 there is no way of running Quartz Compositions on iOS devices. Starting in macOS Catalina, the Quartz Composer framework has been deprecated, although it is still present for compatibility.[4]

Patches[edit]

Quartz programming through Quartz Composer works by implementing and connecting patches.[5] Similar to routines in traditional programming languages, patches are base processing units. They execute and produce a result. For better performance, patch execution follows a lazy evaluation approach, meaning that patches are only executed when their output is needed. There are three types of patches: Consumers, Processors, and External Input patches that can receive and output mouse clicks, scrolls, and movements; MIDI and audio; keyboard; or other movements. A collection of patches can be melded into one, called a macro. Macros can be nested and their subroutines also edited.

To control the order of rendering, each renderer is assigned a layer, indicated in its upper-right corner. Layers are rendered sequentially, lowest to highest. Renderers can be enabled or disabled, essentially turning on or off that particular layer. Turning off unused layers often results in better performance, since fewer upstream patches need to be evaluated.

Some patches can have subpatches, which allows for global parameter changes to just the included subpatches. This is useful for lighting, 3D transformation, and GLSL shaders, among other things. Subpatch support is indicated by square corners on a patch, rather than the typical rounded corners.

With Version 3.0, it became possible to turn compositions into Virtual Patches. These allow the user to reuse functionality without having to store duplicate copies in each composition. The Quartz Composer Editor allows the user to save a "flattened" copy (with the virtual patches fully expanded inside), for easy distribution. Version 4.0 extended this functionality even more, and automatically includes "flattened" copies of virtual patches for use as a fallback if the desired virtual patch isn't installed on the host system. This greatly simplifies composition distribution.

Network functionality was greatly improved with the release of Leopard. It became possible to transmit data and synchronize over a network interface, and it also added support for Open Sound Control transmission and reception.

Plugins[edit]

The Quartz Composer 3.0 interface.

Also new in Version 3.0 was the possibility to write custom patch plugins, using an Xcode template, and the notion of a "safe mode", where plugins and other unsafe patches fail to load. This prevents malicious compositions from performing dangerous or insecure operations. Custom patches using Apple's Xcode template are always considered unsafe.

It was possible to develop custom patch plugins for Version 2.0, but the API was undocumented and private, and was never supported by Apple. Eventually, templates were released to simplify this procedure.[6]

Hidden options[edit]

In the Quartz Composer editor, holding the option key while selecting "Preferences..." from the menu adds 3 additional tabs of options for the user to configure. These options include System settings, Editor settings, and QuickTime integration settings. Notable options include expanded tooltips, software rendering, and uncapped framerate rendering. Multisample antialiasing (MSAA) was added as a hidden option in version 4.0, allowing for antialiasing inside the QC Editor, though it only works on GPU's that support MSAA.

Native datatypes[edit]

Data inside QC can be one of the following types:

Two additional types were introduced in version 4.0:

Type conversion[edit]

Data can usually be converted to other types transparently. In Quartz Composer 3.0, the connections between patches change color to indicate conversions that are taking place. Yellow connections mean no conversion is taking place, Orange indicates a possible loss of data from conversion (Number to Index), and Red indicates a severe conversion; Image to Boolean, for example.

Compositions[edit]

Quartz Composer documents are called Compositions. Compositions are Binary Property Lists (though XML versions are also supported) with a filename extension .qtz, and a com.apple.quartz-composer-composition UTI.[7] Patches, their connections, and their input port states are saved in the composition file. Images can be stored inside a composition as well, making for self-contained compositions with embedded graphics. By dragging a movie file into the Quartz Composer editor, a reference to the movie file is created, providing a changing image that can be connected to a renderer.

Compositions also store metadata such as composition author, copyright, and description. The user can also add arbitrary metadata items, if desired.

Many image formats are supported, including JPEG, JPEG2000, GIF, PNG, TIFF, TGA, OpenEXR, BMP, ICO, PDF, PICT, ICNS, and some raw digital camera types.[8] Images are maintained in their native form for as long as possible before rasterizing for display. This means that Quartz Composer will keep vector images as vectors when cropping, scaling, rotating, or translating which allows it to work with very large logical image dimensions without consuming large amounts of memory or processing time. Such functionality is most apparent when working with text-based images, or PDFs.

Version 3.0 added the ability to add annotations to areas of the composition, called notes. These notes parallel comments in other programming languages. Notes can be yellow, red, green, blue, or gray, and can overlap other notes.

Composition protocols[edit]

In Version 3.0, the concept of Composition Protocols was introduced. Protocols provide a template of required and optional inputs and outputs to qualify conforming compositions for various purposes. The following protocols are available by default:

There is an additional protocol that Apple uses in their private API:

One new protocol was added in version 4.0:

There is no officially supported way to add additional protocols to Quartz Composer. However, there are some undocumented methods that may make this possible in the future.[9]

Composition runtimes[edit]

In addition to protocols, compositions can also conform to different runtimes where Quartz Composer is available. In Leopard, there are runtimes for Tiger (32-bit), as well as 32-bit and 64-bit versions of the Leopard Quartz Composer runtime. The editor can also indicate used patches that are unsafe, or unavailable in Tiger to aid in making compatible compositions.

Composition repository[edit]

A System-wide Composition Repository is available as of Version 3.0.[10] This allows applications to share and make use of common compositions for effects and processing. It is also possible for applications to query the repository for compositions that match certain criteria, such as protocol conformance.

The Repository is spread across 3 file system locations:

Adding compositions to the repository is as simple as adding the composition file to one of these locations.

Comparing compositions[edit]

It became possible to compare compositions in Quartz Composer 3.0. This feature allows the user to compare inputs, rendered output, and graph appearance of any two compositions.

Related software[edit]

Quartz Composer Visualizer[edit]

A developer tool called Quartz Composer Visualizer was released with Quartz Composer 3.0 that allows compositions to be rendered across multiple screens on a single machine, or even spanned across several machines and displays.

Automator support[edit]

Support for some Automator actions was added with the release of Leopard.

History[edit]

Pierre-Olivier Latour originally developed the predecessor to Quartz Composer under the name PixelShox Studio.[11]

References[edit]

  1. ^ Chen, Jim X. "Guide to Graphics Software Tools".
  • ^ Quartz Composer User Guide Archived March 4, 2009, at the Wayback Machine
  • ^ Quartz Composer Users Guide - Making a Screen Saver Archived March 4, 2009, at the Wayback Machine
  • ^ Xcode 11 Release Notes
  • ^ Quartz Composer User Guide - Patches[permanent dead link]
  • ^ fdiv.net: Xcode Template for Custom Quartz Composer Patches
  • ^ Uniform Type Identifiers Overview
  • ^ Using the ImageIO Framework
  • ^ Creating Your Own Protocols
  • ^ Quartz Composer User Guide: Composition Repository[permanent dead link]
  • ^ "PixelShox Technology". Archived from the original on January 29, 2017. Retrieved March 8, 2009.
  • External links[edit]

    Books[edit]

    Tutorials and documentation[edit]

    Mailing list[edit]

    Compositions[edit]

    Custom patches / plugins[edit]

    Images and videos[edit]


    Retrieved from "https://en.wikipedia.org/w/index.php?title=Quartz_Composer&oldid=1228603486"

    Categories: 
    Visual programming languages
    MacOS development
    Hidden categories: 
    Webarchive template wayback links
    All articles with dead external links
    Articles with dead external links from July 2016
    Articles with permanently dead external links
    Articles with short description
    Short description is different from Wikidata
    Use mdy dates from October 2013
    Articles containing potentially dated statements from December 2015
    All articles containing potentially dated statements
    Articles to be expanded from May 2018
    All articles to be expanded
    Articles using small message boxes
     



    This page was last edited on 12 June 2024, at 04:20 (UTC).

    Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



    Privacy policy

    About Wikipedia

    Disclaimers

    Contact Wikipedia

    Code of Conduct

    Developers

    Statistics

    Cookie statement

    Mobile view



    Wikimedia Foundation
    Powered by MediaWiki