Method BeginBakingSession
BeginBakingSession(OccurrenceList, OccurrenceList, int, int, double, double, double, bool, bool, ElementFilter)
Start a new baking session. This must be called prior to any of the bakeSomethingMap function.
Declaration
[HandleProcessCorruptedStateExceptions]
public uint BeginBakingSession(OccurrenceList destinationOccurrences, OccurrenceList sourceOccurrences, int uvChannel = 0, int resolution = 1024, double rayOffset = 0, double rayMaxDist = -1, double opacityThreshold = -1, bool useCurrentPosition = false, bool shareMaps = true, ElementFilter sourceElements = ElementFilter.Polygons)
Parameters
| Type | Name | Description |
|---|---|---|
| OccurrenceList | destinationOccurrences | Occurrences of the meshes where to store the baked map |
| OccurrenceList | sourceOccurrences | Occurrences of components from which to bake maps (if empty use destination) |
| int | uvChannel | UV channel of destOccurrence to use for the map generation |
| int | resolution | Map resolution |
| double | rayOffset | Offset from source mesh |
| double | rayMaxDist | Maximum search distance for ray tracing during baking computation (-1 means infinity) |
| double | opacityThreshold | If the opacity is under this threshold, considers as fully transparent and store the color behind the intersection |
| bool | useCurrentPosition | Use the current position instead of the T-Pose of the input occurrence |
| bool | shareMaps | If true, all the destinationOccurrences will share the same maps |
| ElementFilter | sourceElements | Defines the type of elements from which baking is performed (polygons or points). |
Returns
| Type | Description |
|---|---|
| uint |