Packs or unpacks composite data types, combining multiple individual data streams into a single composite type or extracting individual channels from one.
When to Use
The most common composite type is the Material, whose members are a diffuse color, plus optional normal, height, ambient occlusion, roughness, metalness and mask maps.
- Editing one channel of a Material: Unpack it, process a member, and pack it back together.
- Using a Material’s maps elsewhere: Unpack a Material and use its individual outputs for further processing.
- Building a composite by hand: Pack individual maps into a single composite output.
How to Use
The quickest start is to place a new Composite Type device and connect a composite wire, such as a Material, to it: the device picks up the type and creates the matching ports. You can also choose the Type yourself.
Packing Components into a Composite
- Select the desired composite Type from the dropdown.
- Set Pack/Unpack to Pack to Composite Type.
- The device creates input ports for each member of that type.
- Connect the individual components to the appropriate inputs.
- The output will be the packed composite type.
Unpacking a Composite into Components
- Place a new Composite Type device.
- Connect a composite wire (such as a Material) to its input.
- The device detects the type, switches to Unpack from Composite Type, and creates output ports for each member.
- Use the individual outputs for further processing.
Connecting a composite wire to the output of a new, untyped device works the same way: the device picks up that type and switches to Pack to Composite Type.
Inputs
Until a type is chosen, the device has a single input and a single output, both labeled Waiting….
Pack Mode
One input per member of the selected composite type, named after the member (for a Material: diffuse, normal, height, ao, roughness, metalness, mask, options). Each input takes that member’s data type. Members the type marks as optional are optional ports; the rest are required.
Unpack Mode
| Port | Type | Required/Optional | Description |
|---|---|---|---|
| (named after the type, e.g. Material) | Composite Type | Required | The composite to unpack into its members. |
Outputs
Pack Mode
| Port | Type | Description |
|---|---|---|
| (named after the type, e.g. Material) | Composite Type | The packed composite. |
Unpack Mode
One output per member of the composite type, named after the member and carrying that member’s data type.
Parameters
Type — Selects which composite type to work with. The list shows the composite types World Machine knows about, by their full name (for example Core.Material or Core.3025.Water). While no type has been chosen, the list starts with (Autodetect): the type is then picked up automatically from the first composite wire you connect.
Pack/Unpack — Selects the operation mode. Only shown once a type has been chosen. Default: Unpack from Composite Type.
- Pack to Composite Type — Combines individual inputs into a composite output.
- Unpack from Composite Type — Separates a composite input into individual outputs.
Tips and Tricks
- Required members must be connected when packing; if one is missing, the device produces no output. Optional members can be left unconnected.
- Automatic detection only happens while the device has no type. Once a type is set, choose a different one from Type to switch.
Limitations
- This device cannot be masked and does not support presets.