Font compositing node

Renders anti-aliased text.

All Parameters Local variables

The Font COP renders anti-aliased text. If an input is attached, this COP will add a new plane to the sequence or modify an existing plane.

Both Type 1 and True Type fonts can be used. The fonts available are searched for in the HOUDINI_OUTLINEFONT_PATH environment variable.

Generator Usage

This operator is a generator, which allows it to create new sequences or planes. A generator can be used without any inputs, with one input or with two.

When a generator has no inputs, it generates a new sequence of frames. By default, most of the main generator parameters use the Composite Project settings:

  • Resolution

  • Pixel Aspect Ratio

  • Raster Depth

  • Sequence Range

  • Frame Rate

Each of these parameters may be overridden to enter specific values.

Tip

If you are working consistently in a certain bit depth, resolution or frame range, it is recommended that you alter the Composite Project settings rather than individually modify the generator nodes' settings. The Composite Project settings, when changed, will automatically update all COPs settings that are linked to it.

Note

Color and Alpha are always created, though if the generator does not include them in its Image Planes parameter, they will be empty.

Attaching a Node to the Merge Input

The Merge input is the main input on the top of the node. When connecting a node to this input, the generator creates a new plane and merges into that node’s sequence. The plane may exist in the input, in which case the generator can modify it using simple compositing operations or replace it entirely. This process is called 'Inline Generation'.

When using Inline Generation, the parameters on the Image and Sequence pages cannot be modified, as they are inherited from the input.

Note

If you disconnect the generator from its merge input, any overridden generator parameters (Resolution, Pixel Aspect Ratio, Sequence Range) will be modified to match the input’s settings, so that the generated output remains roughly the same.

Attaching a Node to the Mask Input

The Mask input is the side input. Connecting a node to this input will restrict the generated output to the area of the mask. This mask can be selected from the list of planes in the connected node, and inverted, brightened or dimmed, if desired.

If an input is connected to the Merge input, and the generator is modifying one of the input’s planes, the mask will blend the generated output with the input.

The parameters for selecting the mask can be found on the Mask page.

Parameters

Font

Start Font Manager

Launches the font manager, which can be used to add and remove fonts.

Font

The font to use.

Use Text File

If on, the text is read from an ASCII file instead of the 'Text' parameter.

Text

The text to render.

Text File

The name of the text file(s).

Text Line

When reading from a text file, this specifies the first line to start rendering.

Limit Num Lines

If on, this limits the number of lines rendered.

Text Size

The size of the text.

Kerning

Increases or decreases the horizontal and vertical spacing between characters and lines.

Italic

The italic angle.

Antialias

The render antialias level from 1×1 (none) to 8×8 (highest).

Font Detail

The level of detail to use when converting the font to polygons to be rendered.

Layout

Justify

How to orient the text around the text position.

Units

Specifies the units that the Translate and Pivot parameters are in (0-1 UVs, or 0-XRES pixels).

Translate

Translation of the text.

Scale

Scale of the text.

Rotate

Rotation of the text.

Pivot

Pivot location for Scale and Rotate.

Color

The color of the text.

Mask

The mask parameters control the mask applied when a node is connected to the mask input. The Effect Amount parameter is always available, whether a mask is connected or not.

Effect Amount

If no mask is present, this multiplies the output by a constant amount (0 = black, 1 = all output).

If a mask is present, this amount multiplies the mask.

Mask Plane

A mask can be a component of a plane or an entire plane. If a vector plane is supplied as a mask, its components are multiplied by the images' components.

Scalar Mask ('A', 'C.r')

C.r = I.r * M
C.g = I.g * M
C.b = I.b * M
Vector Mask ('C')

C.r = I.r * M.r
C.g = I.g * M.g
C.b = I.b * M.b

Invert Mask

Inverts the mask so that all fully 'masked' portions become unmasked. This saves you from inserting an Invert COP after the node with the mask.

Image

Parameters relating to the structure of the image generated, including Resolution, Pixel Aspect Ratio and Raster Depth.

Override Size

If off, the resolution of the image is defined by the resolution in the Composite Project settings. If on, any resolution can be specified.

Pixel Aspect Ratio

If off, the pixel aspect ratio of the image is defined by the pixel aspect ratio in the Composite Project settings. If on, any pixel aspect ratio can be specified.

The pixel aspect ratio determines the shape of the pixel; it represents the width of the pixel compared to the height. A pixel with an aspect ratio of '2' is twice as wide as it is high (2:1). Pixel aspect ratios less than 1 are taller than they are wide.

The image viewer attempts to show the image as it would appear by horizontally scaling the image by the pixel aspect ratio. This can result in slight artifacts for non-integer ratios (ie, 0.9:1, 1.442:1). Turn off 'Fast Pixel Aspect' in the Display Options to suppress these artifacts.

Many effect filters that have parameters that represent width and height will have the width scaled appropriately (such as Blur, Defocus, Expand).

Image Planes

Specifies the plane(s) to generate. Color and Alpha will always be present, but the generator does not always have to write to them.

The list of planes is all the ones Halo recognizes as special. Other planes can be added with the 'Custom Planes' parameter.

C, A (C:rgb A)

Color and Alpha

C, A (C:rgb A:rgb)

Color and 3-channel Alpha

C (rgb)

Color only

A

Alpha only

A (rgb)

3-channel Alpha only

M

Mask plane

M (rgb)

3-channel Mask plane

Z

Z Depth plane

L

Luminance plane

B (uv)

Bump plane

P (xyz)

Point plane

N (xyz)

Normal plane

V (xyz)

Velocity plane

None

No planes generated.

Add Plane

When a generator is connected to an input, it generates a Mask plane by default. This parameter determines which planes are generated in this case. The list of planes to generate are the same as 'Image Planes'.

In addition, if the plane already exists in the input sequence, one of the following operations will be performed to combine the new plane.

Replace

Input plane replaced by the generated plane. (G)

Rename

Generated plane renamed.

Add

Input plane added to the generated plane (I+G)

Add

Input plane photographically added to the generated plane (I+G-I*G)

Subtract

Generated plane subtracted from the generated plane (I-G)

Multiply

Input plane multiplied by the generated plane (IxG)

Min

Minimum pixel value of input and generated planes (min{I,G})

Max

Maximum pixel value of input and generated planes (max{I,G})

Average

Average pixel value of the input and generated planes (I+G)/2

Custom Planes

This string parameter allows you to create your own plane formats. The syntax is:

planename(arraysize){comp1,comp2,comp3,comp4}:format(black,white)
All parts are optional except for planename. arraysize must be 1 or greater (default 1). comp1-4 are arbitrary strings representing the component names. 'format' is either i8, i16, i32, f16 or f32. black and white are integers representing the black & white points for integer formats.

Raster Depth

The byte format of the image. Higher bit depths provide better color resolution and range at the expense of memory.

8 Bit Integer

Lowest bit depth. Banding can occasionally be seen. Suitable for video.

16 Bit Integer

Intermediate bit depth. No banding can be seen, though clipping can still occur below and above the black and white points.

32 Bit Integer

Generally not used for color, 32bit integer values are used to store object IDs, counts, and other integer values with a large range.

16 Bit Floating Point

High bit depth. No banding can be seen, and no clipping occurs at white and black. Uses less memory than 32 bit float, however processing time for this format is slightly higher as it is not a native CPU data format. This format supports values in the range -65504 to +65504.

32 Bit Floating Point

High bit depth. No banding can be seen, and no clipping occurs at white and black. Uses 4x as much memory as 8bit, however, which is this formats main drawback.

Default Depth

Use the raster depth specified in the Composite Project options.

Black/White Points

The integer formats (8, 16 and 32 bit) can specify the raw values that the black and white points occur at. The white point must always be higher than the black point. The minimum and maximum values for the black and white points for each format are:

8 bit : 0 - 255
16 bit : 0 - 65535
32 bit : 0 - 2,147,483,647

Floating point formats always have their black point at 0 and their white point at 1.

Interlacing

Controls the ability to generate images that are compatible with interlaced images.

If you are manipulating the generated output with a filter that uses neighboring pixels (like Blur or Expand), it is recommended that you do not use Black Interlaced, as the filter will use the black scanlines as well.

The second menu determines which scanlines are in which fields (odd,even)

None

No interlacing.

Half Res Interlaced

The image is half the height of a normal frame, with the scanlines on every line.

Black Interlaced

The image is the same height as a normal frame, with the inactive scanlines filled with black.

Line Doubled

The image is the same height as a normal frame, with the inactive scanlines filled with their active neighbor.

Odd Dominant

Odd-numbered scanline fields come before even0numbered scanline fields.

Even Dominant

Even-numbered scanline fields come before odd-numbered scanline fields.

Odd Frames Only

Only odd-numbered scanline fields are produced.

Even Frames Only

Only even-numbered scanline fields are produced.

Sequence

This tab contains parameters which deal with the timing and frame range of the generated sequence.

Override Global Range

If off, the global animation range is used as the frame range. If on, the frame range of the sequence can be specified in the following parameters.

Still Image

A still image is time-invariant. It exists at every frame. If off, the Start Frame and Length are used to determine the frame range.

Start Frame

The starting frame of the sequence.

Length

The length of the sequence (number of frames in the sequence).

Frame Rate

If on, the frame rate of the sequence can be overridden.

Pre Extend

For sequences with a frame range, this determines how to show frames before the start frame.

Black Frames

Display black.

Cycle

Cycle the sequence, always playing it forward.

Mirror

Cycle the sequence, reversing the direction every cycle.

Hold

Hold the first frame indefinitely.

Hold N Frames

Hold the first frame for a certain number of frames; before that, show black frames.

Pre Hold

The number of frames to hold the first frame for, if 'Hold N Frames' is selected.

Post Extend

For sequences with a frame range, this determines how to show frames after the last frame.

Black Frames

Display black.

Cycle

Cycle the sequence, always playing it forward.

Mirror

Cycle the sequence, reversing the direction every cycle.

Hold

Hold the last frame indefinitely.

Hold N Frames

Hold the last frame for a certain number of frames; after that, show black frames.

Post Hold

The number of frames to hold the last frame for, if 'Hold N Frames' is selected.

Local variables

L

Sequence length

S

Start of sequence

E

End of sequence

IL

Input sequence length

SR

Sequence frame rate

NP

Number of planes in sequence

W,H

Width and height of image

I

Image index (0 at start frame)

IT

Image time (0 at start frame)

AI

Current plane array index

PI

Current plane index

PC

Num of channels in current plane

CXRES

Composite Project X resolution

CYRES

Composite Project Y resolution

CPIXA

Composite Project pixel aspect ratio

CDEPTH

Composite Project raster depth

CBP

Composite Project black point

CWP

Composite Project white point

Usages in other examples

Example name Example for

Tile compositing node

Load | Launch

Switch compositing node

Load | Launch

Composite compositing node

Load | Launch