I know how to write GLSL fragment shader text code, and I'd like to add some of my own image filters to Vuo. How can I do that?
In Vuo 0.5.0, there isn't yet a way to create image filters using GLSL from the Vuo Editor. (We're planning to add this functionality, but it isn't ready yet.)
In the meantime, you can create a C node (outside the Vuo Editor) to embed your GLSL code. Here's the process:
- Download the Qt online installer and install using the default settings.
- Download the Vuo SDK and unpack it.
- Decide on a name for your node. Prefix it with your name or your company name. For example,
- In the Vuo SDK folder, open
example/node. Copy the
imageFilterfolder, renaming it to match your node name. Rename the
.cfiles to match the folder name (e.g.,
- Double-click the
.profile, which opens the project in Qt Creator. Click "Configure Project".
- In Qt Creator, double-click the
.profile, and change
test.adjustColorBrightness.cto your node class C file name and save.
- In the "Other Files" section of your project, you'll now see your C file. Double-click it.
- In the
VuoModuleMetadatacall, change the title, description, and keywords.
- Edit the GLSL code (around line 37).
- Build your Qt project (Build > Build All).
- Start the Vuo Editor (or restart it if it's already running) and add your new node to a composition.
See Developing a Node Class for more information.