C_GenerateMap
C_GenerateMap allows you to generate stitch_map and ppass_map channels. The stitch_map UV channels represent the absolute pixel positions of an image normalized between 0 and 1, whereas the ppass_map XYZ channels represent the normalized 3D coordinates of a latlong image ranging between -1 and 1.
C_GenerateMap has one optional input to set the format of the map. If nothing is connected to the Source input, use the Format dropdown to select the format of the ppass or stmap.
Inputs and Controls
Connection Type |
Connection Name |
Function |
Input |
Source |
An optional input to set the format of the map. If nothing is connected to the src input, the Project Settings > full size format is used. |
Control (UI) |
Knob (Scripting) |
Default Value |
Function |
---|---|---|---|
Use GPU if available |
useGPUIfAvailable |
enabled |
When enabled, rendering occurs on the Local GPU specified, if available, rather than the CPU. Note: Enabling this option with no local GPU allows the script to run on the GPU whenever the script is opened on a machine that does have a GPU available.
|
Map |
Map |
ppass |
Sets whether a ppass_map or stitch_map is generated. |
channels |
channels |
ppass_map |
Sets which layer the specified data is written into: • ppass - the XYZ data is written into the first three channels of the selected layer. • stmap - the UV data is written into the first two channels of the selected layer. Note: All other existing channels in the layer are set to zero. |
Format |
format |
Dependent on Project Settings or parent node |
Sets the format of the output map when the Source input is not connected. If the Source input is connected, the format is obtained from the parent node and the Format control is disabled. |