1

I'm interested in testing a custom image filter kernel using Quartz Composer. This seems like it should be possible given the docs (see Figure 9-2): https://developer.apple.com/library/content/documentation/GraphicsImaging/Conceptual/CoreImaging/ci_custom_filters/ci_custom_filters.html

I have installed Quartz Composer (via the XCode 8 tools), however, I can't find any option that allows me to enter my custom kernel shader code. Does anyone know how to do this?

mattnedrich
  • 7,577
  • 9
  • 39
  • 45

1 Answers1

0

In quartz composer go to the patch library (Command-Return default shortcut key) search for core image filter. You can load that into composition by double clicking or if its the top of your search hit Return. Click on the patch that you loaded in and go to the patch settings panel (Command-2 default shortcut). Place your code in the text field.

You can drag and drop a image in and wire the output image to your input of your core image filter patch. You need to wire it to a rendering patch to see it rendered in your viewer. Dropping in a billboard will help facilitate that. If you set the billboard's width to 2, it should fill viewers screen.

CameronS
  • 38
  • 7