Method BakeMaterials
BakeMaterials(PiXYZAPI, OccurrenceList, OccurrenceList, int, int, BakeMapList, bool, bool, BakingMethod, int, double, bool, float, int)
Utility function to bake materials from one source to another
Declaration
public static void BakeMaterials(PiXYZAPI pxz, OccurrenceList destination, OccurrenceList source, int resolution, int padding, BakeMapList maps, bool oneToOne, bool gpuBaking, BakingMethod method = BakingMethod.RayOnly, int channel = 0, double tolerance = -1, bool overrideUVs = true, float offset = 0, int upscaling = 1)
Parameters
Type | Name | Description |
---|---|---|
PiXYZAPI | pxz | Pixyz session |
OccurrenceList | destination | Destination occurrences to bake to. Will be modified |
OccurrenceList | source | Source occurrences to bake from |
int | resolution | Output maps resolution |
int | padding | Maps padding |
BakeMapList | maps | Type of maps to bake |
bool | oneToOne | One/one relation between source and destination. Faster to execute. |
bool | gpuBaking | Use GPU Baker. Faster to execute. |
BakingMethod | method | Baking method to use. |
int | channel | UV channel on which to bake. |
double | tolerance | Projection tolerance |
bool | overrideUVs | Modify destination UVs. If false it's the responsibility of the user to prepare and pack UVs. |
float | offset | Projection offset. |
int | upscaling | Upscaling factor to apply to resolution (e.g bake in 2048 and downsize to 1024) |