Sprite SOP

From TouchDesigner 088 Wiki

Summary

The Sprite SOP creates geometry (quad sprites) at point positions defined by the CHOP referenced in the XYZ CHOP parameter.

PythonIcon.png spriteSOP_Class

Parameters

XYZ CHOP - A CHOP with 3 channels is required to specify the X, Y, and Z position of the quad to be generated. Each sample creates 1 quad. The created quads are centered at the points defined by each sample.

Camera - The geometry will always face the Camera COMP specified here.

Width CHOP - A 1 channel CHOP can be specified to set the width of the quad at that sample.

Color CHOP - A 3 channel CHOP can be specified to set the R, G, and B color values of the quad at that sample.

Alpha CHOP - A 1 channel CHOP can be specified to set the alpha of the quad at that sample.

Perspective Width - The width of the geometry created. This parameter only has an effect when the Use Constant Width is less that 1.0.

Use Constant Width - This blends between using Perspective Width and Constant Width. When Use Constant Width = 0, width is determined only by Perspective Width, when Use Constant Width = 1, width is determined only by Constant Width parameters below.

Constant Width Near - The width used for quads located at a position Constant Width Falloff Start or closer.

Constant Width Far - The width used for quads located at a position Constant Width Falloff End or farther.

Constant Width Falloff Start - At this position the or closer the geometry uses the Constant Width Near parameter for its width.

Constant Width Falloff End - At this position the or farther the geometry uses the Constant Width Far parameter for its width.

NOTE: Inbetween Falloff Start and Falloff End the width is determined using a half-cosine falloff between the two values.