Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ XR Studio

Mixer Layer

  • Last UpdatedApr 28, 2023
  • 1 minute read

The following layer type can mix input from other layers:

  • Mixer Renderer (type=mixer)

Types of mixers

There is one type of mixer operations:

  • chromaKey

chromaKey

Code example

This is a code example for mixer layer with chromaKey type.

<Layer name="MixerLayer" type="mixer">

<mixer type="chromaKey">

<keyColor value="255 0 255"/>

<!-- the color used to cut the foreground pixels -->

<keyTolerance value="0"/>

<!-- chroma key tolerance -->

<backgroundInput value="VideoLayer"/>

<!-- the name of the bkg input Layer -->

<foregroundInput value="SceneLayer"/>

<!-- the name of the foreground input Layer -->

</mixer>

</Layer>

keyTolerance formula

diff = abs(fore.r - keyColor.r) + abs(fore.g - keyColor.g) + abs(fore.b - keyColor.b);

if((diff / 3) <= keyTolerance) then cut;

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in