class
ChartAggregator
Computes new texture coordinates for a geometry with overlapping UV charts.
Properties
Property | Description |
AutomaticTextureSizeMultiplier | A texture dimension length multiplier for the automatic texture size. |
ChartAggregatorMode | Determines which method to use when aggregating the UVs. TextureSizeProportions: Aggregated UV charts will be scaled to keep their relative pixel density relative to all other UV charts. The user can still set the size of the output texture maps. SurfaceArea: Aggregated UV charts will have their size set based on its actual geometrical size. OriginalPixelDensity: The combined atlas will be resized to fit each chart so that all charts retain the same amount of pixels as they originally had. This will override any manually set texture size. UVSizeProportions: Aggregated UV charts will have their size set based on its original UV size, disregarding the size of the texture they are used in. |
ExpandZeroAreaUVs | If ExpandZeroAreaUVs is enabled then triangles that have zero area will be slightly expanded. |
ForcePower2Texture | If UseAutomaticTextureSize is enabled, then force the texture sizes to be a power of 2. |
GutterSpace | The minimum number of pixels between charts. |
InputMaterialCount | The number of input materials used in the original geometry for mapping to multiple output materials. This needs to be set before you can set any specific in-out material mapping. 0 signifies that no in-out material mapping is used, ie. the process will produce one resulting mapping image. |
LockUVRotation | If LockUVRotation is enabled, only the original UV rotation will be used. Otherwise 4 rotations are used (90 degree rotations). |
OriginalChartProportionsChannel | Set OriginalChartProportionsChannel to an SG_MATERIAL_CHANNEL_[...]. This channel determines which texture channel to look at when determining which chart sizes to keep. |
OutputMaterialCount | The number of output mapping images that are to be generated. The triangle field OutputMaterialIds also needs to be set, or the material IDs of the original geometry needs to be set to a specific output material in this setting object. |
SurfaceAreaScale | If multiple UV charts overlap and have the same material, SurfaceAreaScale specifies which of those instances determines the the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
TexCoordLevel | Which TexCoord level to get charts from during re-parameterization. If a TexCoordName is set, it will override the TexCoordLevel. |
TexCoordName | Which TexCoord name to get charts from during re-parameterization. |
TextureHeight | The height of the texture to use. |
TextureWidth | The width of the texture to use. |
UseAutomaticTextureSize | The automatic_texture_size flag. If true, then texture sizes will be computed for the reduced mesh depending on its pixel size on screen. |
UseVertexWeights | The UseVertexWeights flag to scale the charts according to their vertex weights. |
Methods
Static methods
Method | Description |
IsClassA | Returns true if the class is a or is a descendant of the class named as the type parameter. |
SafeCast | SafeCast makes sure the input object is of a class that can be cast into spChartAggregator, and if this is the case, returns the object cast into spChartAggregator. |
Properties details
AutomaticTextureSizeMultiplier
A texture dimension length multiplier for the automatic texture size.
Syntax
SetAutomaticTextureSizeMultiplier parameters
Type | Name | Min | Max | Description |
real | value | | | The desired multiplier. |
GetAutomaticTextureSizeMultiplier return value
Type: real
Syntax
SetAutomaticTextureSizeMultiplier parameters
Type | Name | Min | Max | Description |
float | value | | | The desired multiplier. |
GetAutomaticTextureSizeMultiplier return value
Type: float
Syntax
SetAutomaticTextureSizeMultiplier parameters
Name | Type | Min | Max | Description |
value | float | | | The desired multiplier. |
GetAutomaticTextureSizeMultiplier return value
Type: float
ChartAggregatorMode
Determines which method to use when aggregating the UVs. TextureSizeProportions: Aggregated UV charts will be scaled to keep their relative pixel density relative to all other UV charts. The user can still set the size of the output texture maps. SurfaceArea: Aggregated UV charts will have their size set based on its actual geometrical size. OriginalPixelDensity: The combined atlas will be resized to fit each chart so that all charts retain the same amount of pixels as they originally had. This will override any manually set texture size. UVSizeProportions: Aggregated UV charts will have their size set based on its original UV size, disregarding the size of the texture they are used in.
Syntax
SetChartAggregatorMode parameters
GetChartAggregatorMode return value
Type: EChartAggregatorMode
Default: TextureSizeProportions
Key | Value | Comment |
TextureSizeProportions | 0 | Aggregated UV charts will be scaled to keep their relative pixel density relative to all other UV charts. The user can still set the size of the output texture maps. |
SurfaceArea | 1 | Aggregated UV charts will have their size set based on its actual geometrical size. |
OriginalPixelDensity | 2 | The combined atlas will be resized to fit each chart so that all charts retain the same amount of pixels as they originally had. This will override any manually set texture size. |
UVSizeProportions | 3 | Aggregated UV charts will have their size set based on its original UV size, disregarding the size of the texture they are used in. |
Syntax
SetChartAggregatorMode parameters
GetChartAggregatorMode return value
Type: EChartAggregatorMode
Default: TextureSizeProportions
Key | Value | Comment |
TextureSizeProportions | 0 | Aggregated UV charts will be scaled to keep their relative pixel density relative to all other UV charts. The user can still set the size of the output texture maps. |
SurfaceArea | 1 | Aggregated UV charts will have their size set based on its actual geometrical size. |
OriginalPixelDensity | 2 | The combined atlas will be resized to fit each chart so that all charts retain the same amount of pixels as they originally had. This will override any manually set texture size. |
UVSizeProportions | 3 | Aggregated UV charts will have their size set based on its original UV size, disregarding the size of the texture they are used in. |
Syntax
SetChartAggregatorMode parameters
GetChartAggregatorMode return value
Type: EChartAggregatorMode
Default: TextureSizeProportions
Key | Value | Comment |
EChartAggregatorMode_TextureSizeProportions | 0 | Aggregated UV charts will be scaled to keep their relative pixel density relative to all other UV charts. The user can still set the size of the output texture maps. |
EChartAggregatorMode_SurfaceArea | 1 | Aggregated UV charts will have their size set based on its actual geometrical size. |
EChartAggregatorMode_OriginalPixelDensity | 2 | The combined atlas will be resized to fit each chart so that all charts retain the same amount of pixels as they originally had. This will override any manually set texture size. |
EChartAggregatorMode_UVSizeProportions | 3 | Aggregated UV charts will have their size set based on its original UV size, disregarding the size of the texture they are used in. |
ExpandZeroAreaUVs
If ExpandZeroAreaUVs is enabled then triangles that have zero area will be slightly expanded.
Syntax
SetExpandZeroAreaUVs parameters
Type | Name | Min | Max | Description |
bool | value | | | The new ExpandZeroAreaUVs. |
GetExpandZeroAreaUVs return value
Type: bool
Syntax
SetExpandZeroAreaUVs parameters
Type | Name | Min | Max | Description |
bool | value | | | The new ExpandZeroAreaUVs. |
GetExpandZeroAreaUVs return value
Type: bool
Syntax
SetExpandZeroAreaUVs parameters
Name | Type | Min | Max | Description |
value | bool | | | The new ExpandZeroAreaUVs. |
GetExpandZeroAreaUVs return value
Type: bool
ForcePower2Texture
If UseAutomaticTextureSize is enabled, then force the texture sizes to be a power of 2.
Syntax
SetForcePower2Texture parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag. |
GetForcePower2Texture return value
Type: bool
Syntax
SetForcePower2Texture parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag. |
GetForcePower2Texture return value
Type: bool
Syntax
SetForcePower2Texture parameters
Name | Type | Min | Max | Description |
value | bool | | | The desired flag. |
GetForcePower2Texture return value
Type: bool
GutterSpace
The minimum number of pixels between charts.
Syntax
SetGutterSpace parameters
Type | Name | Min | Max | Description |
unsigned int | value | | | The value to which GutterSpace will be set. |
GetGutterSpace return value
Type: unsigned int
Syntax
SetGutterSpace parameters
Type | Name | Min | Max | Description |
uint | value | | | The value to which GutterSpace will be set. |
GetGutterSpace return value
Type: uint
Syntax
SetGutterSpace parameters
Name | Type | Min | Max | Description |
value | int | | | The value to which GutterSpace will be set. |
GetGutterSpace return value
Type: int
The number of input materials used in the original geometry for mapping to multiple output materials. This needs to be set before you can set any specific in-out material mapping. 0 signifies that no in-out material mapping is used, ie. the process will produce one resulting mapping image.
Syntax
Type | Name | Min | Max | Description |
unsigned int | value | | | The number of outputs. |
Type: unsigned int
Syntax
Type | Name | Min | Max | Description |
uint | value | | | The number of outputs. |
Type: uint
Syntax
Name | Type | Min | Max | Description |
value | int | | | The number of outputs. |
Type: int
LockUVRotation
If LockUVRotation is enabled, only the original UV rotation will be used. Otherwise 4 rotations are used (90 degree rotations).
Syntax
SetLockUVRotation parameters
Type | Name | Min | Max | Description |
bool | value | | | The new LockUVRotation. |
GetLockUVRotation return value
Type: bool
Syntax
SetLockUVRotation parameters
Type | Name | Min | Max | Description |
bool | value | | | The new LockUVRotation. |
GetLockUVRotation return value
Type: bool
Syntax
SetLockUVRotation parameters
Name | Type | Min | Max | Description |
value | bool | | | The new LockUVRotation. |
GetLockUVRotation return value
Type: bool
OriginalChartProportionsChannel
Set OriginalChartProportionsChannel to an SG_MATERIAL_CHANNEL_[...]. This channel determines which texture channel to look at when determining which chart sizes to keep.
Syntax
SetOriginalChartProportionsChannel parameters
Type | Name | Min | Max | Description |
const char * | value | | | The new OriginalChartProportionsChannel value. |
GetOriginalChartProportionsChannel return value
Type: spString
Syntax
SetOriginalChartProportionsChannel parameters
Type | Name | Min | Max | Description |
string | value | | | The new OriginalChartProportionsChannel value. |
GetOriginalChartProportionsChannel return value
Type: string
Syntax
SetOriginalChartProportionsChannel parameters
Name | Type | Min | Max | Description |
value | str | | | The new OriginalChartProportionsChannel value. |
GetOriginalChartProportionsChannel return value
Type: str
OutputMaterialCount
The number of output mapping images that are to be generated. The triangle field OutputMaterialIds also needs to be set, or the material IDs of the original geometry needs to be set to a specific output material in this setting object.
Syntax
SetOutputMaterialCount parameters
Type | Name | Min | Max | Description |
unsigned int | value | 1 | SG_MAXIMUM_CHART_AGGREGATOR_OUTPUT_MATERIAL_COUNT | The number of outputs. |
GetOutputMaterialCount return value
Type: unsigned int
Syntax
SetOutputMaterialCount parameters
Type | Name | Min | Max | Description |
uint | value | 1 | SG_MAXIMUM_CHART_AGGREGATOR_OUTPUT_MATERIAL_COUNT | The number of outputs. |
GetOutputMaterialCount return value
Type: uint
Syntax
SetOutputMaterialCount parameters
Name | Type | Min | Max | Description |
value | int | 1 | SG_MAXIMUM_CHART_AGGREGATOR_OUTPUT_MATERIAL_COUNT | The number of outputs. |
GetOutputMaterialCount return value
Type: int
SurfaceAreaScale
If multiple UV charts overlap and have the same material, SurfaceAreaScale specifies which of those instances determines the the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false.
Syntax
SetSurfaceAreaScale parameters
Type | Name | Min | Max | Description |
ESurfaceAreaScale | value | | | The SurfaceAreaScale value to use. |
GetSurfaceAreaScale return value
Type: ESurfaceAreaScale
Default: LargestInstance
Key | Value | Comment |
LargestInstance | 0 | If multiple UV charts overlap and have the same material, the largest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
SmallestInstance | 1 | If multiple UV charts overlap and have the same material, the smallest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
Average | 2 | If multiple UV charts overlap and have the same material, the average of all the instances determine the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
Syntax
SetSurfaceAreaScale parameters
Type | Name | Min | Max | Description |
ESurfaceAreaScale | value | | | The SurfaceAreaScale value to use. |
GetSurfaceAreaScale return value
Type: ESurfaceAreaScale
Default: LargestInstance
Key | Value | Comment |
LargestInstance | 0 | If multiple UV charts overlap and have the same material, the largest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
SmallestInstance | 1 | If multiple UV charts overlap and have the same material, the smallest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
Average | 2 | If multiple UV charts overlap and have the same material, the average of all the instances determine the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
Syntax
SetSurfaceAreaScale parameters
Name | Type | Min | Max | Description |
value | ESurfaceAreaScale | | | The SurfaceAreaScale value to use. |
GetSurfaceAreaScale return value
Type: ESurfaceAreaScale
Default: LargestInstance
Key | Value | Comment |
ESurfaceAreaScale_LargestInstance | 0 | If multiple UV charts overlap and have the same material, the largest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
ESurfaceAreaScale_SmallestInstance | 1 | If multiple UV charts overlap and have the same material, the smallest instance determines the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
ESurfaceAreaScale_Average | 2 | If multiple UV charts overlap and have the same material, the average of all the instances determine the output scale. It is only valid when the ChartAggregatorMode is SurfaceArea and SeparateOverlappingCharts is false. |
TexCoordLevel
Which TexCoord level to get charts from during re-parameterization. If a TexCoordName is set, it will override the TexCoordLevel.
Syntax
SetTexCoordLevel parameters
Type | Name | Min | Max | Description |
unsigned int | value | | | The level/id of the TexCoord to use (i.e. 0-255). |
GetTexCoordLevel return value
Type: unsigned int
Syntax
SetTexCoordLevel parameters
Type | Name | Min | Max | Description |
uint | value | | | The level/id of the TexCoord to use (i.e. 0-255). |
GetTexCoordLevel return value
Type: uint
Syntax
SetTexCoordLevel parameters
Name | Type | Min | Max | Description |
value | int | | | The level/id of the TexCoord to use (i.e. 0-255). |
GetTexCoordLevel return value
Type: int
TexCoordName
Which TexCoord name to get charts from during re-parameterization.
Syntax
SetTexCoordName parameters
Type | Name | Min | Max | Description |
const char * | value | | | The name of the TexCoord to use (i.e. 'TexCoord0'-'TexCoord255'). |
GetTexCoordName return value
Type: spString
Syntax
SetTexCoordName parameters
Type | Name | Min | Max | Description |
string | value | | | The name of the TexCoord to use (i.e. 'TexCoord0'-'TexCoord255'). |
GetTexCoordName return value
Type: string
Syntax
SetTexCoordName parameters
Name | Type | Min | Max | Description |
value | str | | | The name of the TexCoord to use (i.e. 'TexCoord0'-'TexCoord255'). |
GetTexCoordName return value
Type: str
TextureHeight
The height of the texture to use.
Syntax
SetTextureHeight parameters
Type | Name | Min | Max | Description |
unsigned int | value | | | The texture height. |
GetTextureHeight return value
Type: unsigned int
Syntax
SetTextureHeight parameters
Type | Name | Min | Max | Description |
uint | value | | | The texture height. |
GetTextureHeight return value
Type: uint
Syntax
SetTextureHeight parameters
Name | Type | Min | Max | Description |
value | int | | | The texture height. |
GetTextureHeight return value
Type: int
TextureWidth
The width of the texture to use.
Syntax
SetTextureWidth parameters
Type | Name | Min | Max | Description |
unsigned int | value | | | The texture width. |
GetTextureWidth return value
Type: unsigned int
Syntax
SetTextureWidth parameters
Type | Name | Min | Max | Description |
uint | value | | | The texture width. |
GetTextureWidth return value
Type: uint
Syntax
SetTextureWidth parameters
Name | Type | Min | Max | Description |
value | int | | | The texture width. |
GetTextureWidth return value
Type: int
UseAutomaticTextureSize
The automatic_texture_size flag. If true, then texture sizes will be computed for the reduced mesh depending on its pixel size on screen.
Syntax
SetUseAutomaticTextureSize parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag. |
GetUseAutomaticTextureSize return value
Type: bool
Syntax
SetUseAutomaticTextureSize parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag. |
GetUseAutomaticTextureSize return value
Type: bool
Syntax
SetUseAutomaticTextureSize parameters
Name | Type | Min | Max | Description |
value | bool | | | The desired flag. |
GetUseAutomaticTextureSize return value
Type: bool
UseVertexWeights
The UseVertexWeights flag to scale the charts according to their vertex weights.
Syntax
SetUseVertexWeights parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag value. |
GetUseVertexWeights return value
Type: bool
Syntax
SetUseVertexWeights parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag value. |
GetUseVertexWeights return value
Type: bool
Syntax
SetUseVertexWeights parameters
Name | Type | Min | Max | Description |
value | bool | | | The desired flag value. |
GetUseVertexWeights return value
Type: bool
Methods details
GetClass
Get the name of the ChartAggregator class.
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: spString
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: string
Syntax
Parameters
GetClass takes no parameters.
Return value
Type: str
The minimum number of pixels between charts.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
Return value
Type: unsigned int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
Return value
Type: uint
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
Return value
Type: int
The previously set material mapping for mat_id.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | InMaterialId | | | The input material ID. |
Return value
Type: int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | InMaterialId | | | The input material ID. |
Return value
Type: int
Syntax
Parameters
Name | Type | Min | Max | Description |
InMaterialId | int | | | The input material ID. |
Return value
Type: int
GetKeepOriginalChartSizesTextureHeight
If KeepOriginalChartSizes is enabled: calling GetKeepOriginalChartSizesTextureWidth and GetKeepOriginalChartSizesTextureHeight after parameterization will return the final texture sizes.
Syntax
Parameters
GetKeepOriginalChartSizesTextureHeight takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetKeepOriginalChartSizesTextureHeight takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetKeepOriginalChartSizesTextureHeight takes no parameters.
Return value
Type: int
GetKeepOriginalChartSizesTextureHeightForMaterialIndex
If KeepOriginalChartSizes is enabled: calling GetKeepOriginalChartSizesTextureWidth and GetKeepOriginalChartSizesTextureHeight after parameterization will return the final texture sizes.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | OutputID | | | The output id. |
Return value
Type: unsigned int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | OutputID | | | The output id. |
Return value
Type: uint
Syntax
Parameters
Name | Type | Min | Max | Description |
OutputID | int | | | The output id. |
Return value
Type: int
GetKeepOriginalChartSizesTextureWidth
If KeepOriginalChartSizes is enabled: calling GetKeepOriginalChartSizesTextureWidth and GetKeepOriginalChartSizesTextureHeight after parameterization will return the final texture sizes.
Syntax
Parameters
GetKeepOriginalChartSizesTextureWidth takes no parameters.
Return value
Type: unsigned int
Syntax
Parameters
GetKeepOriginalChartSizesTextureWidth takes no parameters.
Return value
Type: uint
Syntax
Parameters
GetKeepOriginalChartSizesTextureWidth takes no parameters.
Return value
Type: int
GetKeepOriginalChartSizesTextureWidthForMaterialIndex
If KeepOriginalChartSizes is enabled: calling GetKeepOriginalChartSizesTextureWidth and GetKeepOriginalChartSizesTextureHeight after parameterization will return the final texture sizes.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | OutputID | | | The output id. |
Return value
Type: unsigned int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | OutputID | | | The output id. |
Return value
Type: uint
Syntax
Parameters
Name | Type | Min | Max | Description |
OutputID | int | | | The output id. |
Return value
Type: int
GetTextureHeightForMaterialIndex
The height of the texture to use.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
Return value
Type: unsigned int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
Return value
Type: uint
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
Return value
Type: int
GetTextureWidthForMaterialIndex
The width of the texture to use.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
Return value
Type: unsigned int
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
Return value
Type: uint
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
Return value
Type: int
IsA
Returns true if ChartAggregator is a or is a descendant of the class named as the type parameter.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if ChartAggregator is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if ChartAggregator is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if ChartAggregator is, or is a descendant of. |
Return value
Type: bool
IsNull
Returns true if the ChartAggregator object is invalid.
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Syntax
Parameters
IsNull takes no parameters.
Return value
Type: bool
Parameterize
Executes the parameterization of the geometry.
Syntax
Parameters
Type | Name | Min | Max | Description |
GeometryData | geom | | | The geometry which is to be parameterized. |
RealArray | arr | | | The array where the result is stored. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
GeometryData | geom | | | The geometry which is to be parameterized. |
RealArray | arr | | | The array where the result is stored. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
geom | GeometryData | | | The geometry which is to be parameterized. |
arr | RealArray | | | The array where the result is stored. |
Return value
Type: bool
The minimum number of pixels between charts.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
unsigned int | value | | | The value to which GutterSpace will be set. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
uint | value | | | The value to which GutterSpace will be set. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
value | int | | | The value to which GutterSpace will be set. |
The material mapping for InMaterialId, meaning what material of the generated LOD InMaterialId will be baked into. Both InputMaterialCount and OutputMaterialCount need to be set for this mapping to work, and all original materials need to be mapped to an existing output id.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | InMaterialId | | | The input material ID. |
int | OutMaterialId | | | The output material ID. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | InMaterialId | | | The input material ID. |
int | OutMaterialId | | | The output material ID. |
Syntax
Parameters
Name | Type | Min | Max | Description |
InMaterialId | int | | | The input material ID. |
OutMaterialId | int | | | The output material ID. |
SetMaterialTable
The scene material table.
Syntax
Parameters
Type | Name | Min | Max | Description |
MaterialTable | value | | | The scene material table. |
Syntax
Parameters
Type | Name | Min | Max | Description |
MaterialTable | value | | | The scene material table. |
Syntax
Parameters
Name | Type | Min | Max | Description |
value | MaterialTable | | | The scene material table. |
SetSeparateOverlappingCharts
The Separate Overlapping Charts flag. If charts are overlapping in the original texture coords, they will be separated.
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag value. |
Syntax
Parameters
Type | Name | Min | Max | Description |
bool | value | | | The desired flag value. |
Syntax
Parameters
Name | Type | Min | Max | Description |
value | bool | | | The desired flag value. |
SetTextureHeightForMaterialIndex
The height of the texture to use.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
unsigned int | value | | | The texture height. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
uint | value | | | The texture height. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
value | int | | | The texture height. |
SetTextureTable
The scene texture table.
Syntax
Parameters
Type | Name | Min | Max | Description |
TextureTable | value | | | The scene texture table. |
Syntax
Parameters
Type | Name | Min | Max | Description |
TextureTable | value | | | The scene texture table. |
Syntax
Parameters
Name | Type | Min | Max | Description |
value | TextureTable | | | The scene texture table. |
SetTextureWidthForMaterialIndex
The width of the texture to use.
Syntax
Parameters
Type | Name | Min | Max | Description |
unsigned int | id | | | The output material ID. |
unsigned int | value | | | The texture width. |
Syntax
Parameters
Type | Name | Min | Max | Description |
uint | id | | | The output material ID. |
uint | value | | | The texture width. |
Syntax
Parameters
Name | Type | Min | Max | Description |
id | int | | | The output material ID. |
value | int | | | The texture width. |
Static methods details
IsClassA
Returns true if the class is a or is a descendant of the class named as the type parameter.
Syntax
Parameters
Type | Name | Min | Max | Description |
const char * | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Type | Name | Min | Max | Description |
string | type | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
Syntax
Parameters
Name | Type | Min | Max | Description |
type | str | | | Name of the class to check if the class is, or is a descendant of. |
Return value
Type: bool
SafeCast
SafeCast makes sure the input object is of a class that can be cast into spChartAggregator, and if this is the case, returns the object cast into spChartAggregator.
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: ChartAggregator
Syntax
Parameters
Type | Name | Min | Max | Description |
Object | object | | | Object to cast. |
Return value
Type: ChartAggregator
Syntax
Parameters
Name | Type | Min | Max | Description |
object | Object | | | Object to cast. |
Return value
Type: ChartAggregator