2D Layer

2D Layer  -  A single 2D Layer

TextureLayer TextureLayer TextureLayer TextureLayer

This topic describes the different types of 2D layers in Smode.

Learn more about how to use 2D layers in compositions by reading: Basics of 2D Compositing .

Basically, 2D Layers are used to generate an image, modify it and then render it. Here are the involved elements to perform this:

  • TextureGenerator Icon 2D Generator : The generator represents a source of images. Many different types of generator exist: still images, videos, live video feeds, shaders generating an image in real-time…
  • TextureModifier Icon 2D Modifier : A 2D layer contains a chain of modifiers that are applied to the image of the Generator. A wide number of 2D modifiers are provided ranging from simple colorimetry operations to advanced stylization effects.
  • TextureMask Icon 2D Mask : Any 2D modifier in Smode can be modulated with 2D masks that define for every pixel the level of application of this modifier. Masks enable numerous applications from traditional transparency-masking to advanced modulation of stylisation and distortion effects.
  • TextureRenderer Icon 2D Renderer : Once the image is modified, it gets rendered by its TextureRenderer Icon 2D Renderer . By default there is one such renderer, but it’s very easy to turn it into a GroupTextureRenderer Icon Group 2D Renderer to get the layer displayed multiple times (without nearly any additional cost). Each renderer has an opacity and a blending mode and it is possible to add local TextureModifier Icon 2D Modifier on renderers.

The following picture illustrates how the different components constituting a 2D layer operate together:  2DsystemSchematic  2DsystemSchematic

Note: To group multiple objects together, select them and press [CTRL] + [SHIFT] + [G]. This will have different effects if you choose TextureRenderer Icon 2D Renderer , TextureModifier Icon 2D Modifier or TextureLayer Icon 2D Layer .

Note: A group of TextureLayer Icon 2D Layer is not rasterized and has no specific resolution. If you want to create a Compo Icon Compo while grouping them, use the [CTRL] + [SHIFT] + [C] shortcut.


Here is a little composition made from a lot of 2D layers (images, videos, sprite-sheets) that runs on Smode in real time: