Texture Trigger

The Texture trigger enables to start or stop a behavior by returning true when the position of the root bone of an Entity is contained in a zone of a specified color of a Maya 2d or 3d Texture.

Creation

  • Behavior Editor / Trigger Library: 
  • Golaem Menu: Crowd Triggers / Triggers / CrowdTri Texture Node
  • MEL command: glmCrowdTriTextureCmd;

Configuration

A Texture Trigger defines the following specific attributes. For common attributes see Trigger Common Attributes.

Texture Attributes

In Mesh Link to the Maya mesh used to extract the uv from (only if the texture mapped in the In Texture is a 2dtexture)
In Texture

Link to the Maya texture (2d or 3d) to check

Operator

A comparison operator (equal, greater than…)

Value

A reference color value. For comparisons such as "greater than" and "lesser than", it's the lightness value of the color which is used (e.g. light blue > blue > dark blue)

Threshold

Error allowed between the texture current color and the reference color for the trigger to return true