ai:patching_basics
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ai:patching_basics [2018/10/13 11:24] – icke_siegen | ai:patching_basics [2018/10/15 13:07] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 5: | Line 5: | ||
In the beginning - when it was just the Salvation engine - almost everything needed to be patched: the engine offered a collection of modules, each specialising in a very small task, and the operator/ | In the beginning - when it was just the Salvation engine - almost everything needed to be patched: the engine offered a collection of modules, each specialising in a very small task, and the operator/ | ||
+ | Also, you can change how Ai works by changing the Stage Patch - this includes making Ai completely unresposive, | ||
===== Where to start ===== | ===== Where to start ===== | ||
Line 17: | Line 18: | ||
{{: | {{: | ||
- | ===== Patches and Modules ===== | + | ===== Patches, Ports and Modules ===== |
- | In the very end, the stage patch you consist | + | In the very end, the stage patch consists |
==== Modules ==== | ==== Modules ==== | ||
- | Modules are the smallest parts of Ai. They are provided by the Salvation engine which is the very core of Ai. Hence, you cannot create modules yourself, but you can combine the existing modules in a meaningful way. For a full list of the available modules please see Distrib\Help\Ai_Man_v8.chm or the Module Definitions section in the V9 User Manual which is available at the [[https:// | + | {{ : |
In order to insert a module right-click somewhere on the background of your patch canvas and from the context menu select '' | In order to insert a module right-click somewhere on the background of your patch canvas and from the context menu select '' | ||
+ | |||
+ | There is a separate page about the details of re-arranging, | ||
Modules are represented by grey rectangles with a blue title bar and a number of controls (buttons, text fields, knobs etc.) and ports. | Modules are represented by grey rectangles with a blue title bar and a number of controls (buttons, text fields, knobs etc.) and ports. | ||
+ | |||
+ | ==== Ports ==== | ||
+ | |||
+ | Ports are the inputs and outputs of the modules, and are shown as triangles. If they are pointing up then they are the module' | ||
+ | * blue ports are control values - usually single numbers, or vectors comprising of a bunch of numbers (e.g.RGBW) | ||
+ | * green ports are textures - e.g. 2D images and videos | ||
+ | * yellow ports conduct the rendered video stream | ||
+ | * white ports are for text and other multidimensional things | ||
+ | |||
+ | Connecting ports is rather easy: just draw a line from one output port to an input port (or vice versa) - as soon as you drop the other end of the virtual cable onto a suitable port, a line appears, indicating the connection. There are some rules to follow: | ||
+ | * ports can be connected only with other ports of the same colour/kind | ||
+ | * each input accepts only one source, however outputs can feed multiple inputs | ||
+ | * ports which are currently not connected appear with a dot in the middle | ||
+ | * in order to disconnect a port/remove a cable, right-click the port and select '' | ||
+ | |||
+ | ==== Patches ==== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
+ | There is a separate page about the details of re-arranging, | ||
+ | |||
+ | ===== Our first patch ===== | ||
+ | |||
+ | You're still with me? Let's do it. Here is your first patch: | ||
+ | - open a new patch file as decribed above (preferably select File/New from the top menubar) | ||
+ | - in the blank patch window, right-click somewhere, select ' | ||
+ | - Next, we want to make the background other than black. Insert a ' | ||
+ | - Okay, let's bring in some colour. Insert an ' | ||
+ | - Now we want to show some text. We want to generate something for the output, hence let's look in the Generator section. We'll find a ' | ||
+ | - But as soon as we connect the yellow port, the output window turns black - because each input can take only one output (thus the connection to the coloured rectangle went lost), and because the Text module has no text input to display. Let's proceed with this. From the ' | ||
+ | - However, it looks like the text always starts in the center of the window. If we resize the window, the text resizes and repositions accordingly. In order to fix this, we obviously need to reposition the rendered text output. The module ' | ||
+ | - In order to finally combine the generated text with our colourful background we need to somehow combine both video streams. The module ' | ||
+ | |||
+ | Congratulations! You created your first own Ai patch. Was it really that complicated? | ||
ai/patching_basics.1539429890.txt.gz · Last modified: 2018/10/13 11:24 by icke_siegen