2D generators are at the core of 2D Layers since they define their source image, i.e. the image on which subsequent modifiers and renderers will operate.
Here are the main type of 2D generators in Smode:
The most simple way to import a still image in a compo is to drag it from the file tree to the element tree:
When selecting the image layer, you can move or resize it from the visualizer.
Smode supports these formats:.jpg, .png (with alpha layer), .psd(with layers importation),.tga,.tif.
The Uniform generator outputs an image fully filled with a unique color, which is black by default. The color of Uniform is defined as a RGBA value (Red/Green/Blue/Alpha), which means that Uniform can generate partially transparent images if needed.
There are two types of gradients: Linear Gradient and Radial Gradient.
There are two types of noise generators: Noise and White Noise.
Smode has a 2D generator of text:
As every other generator in Smode, a Text generator has its own resolution. By default, this resolution is Inherited from the resolution of the compo, which means that the text is rasterized to be displayed as a layer covering the whole compo. If the intent is to display a small text somewhere, you can reduce the resolution manually to have something more consistent.
In order to enable live video input, first configure at least one video input device in the preferences of Smode. For this, go to the preferences, in Engine>Video Inputs, click on button Add, select the correct Device Identifier and click on Apply Changes:
Once this is done, you can create a video input layer with menu 2D Layers>Video Input. This status of the video input device is available in the Devices tab on the bottom-left part of Smode:
The Test Pattern generator is often useful to debug video signal and content addressing issues.
Almost any aspect of the test pattern (grid, diagonals, central circles, text label, ...) can be customized through the parameters. The image below shows four different settings of these parameters:
Glitch generates flashing frames: every odd frame is a full black image and every even frame is full white. In general, this generator is used to determine the quality of the video output (to debug e.g. vertical synchronisation or frame rate issues). With a good quality output, a Glitch layer should be appearing flashing in a very regular way, without never having any grip in the signal.
Smode has a number of other procedural generators that are less often used than the ones describe above.
The full list of those generators is available within the menu 2D Layer.