beastapi/beasttargetentity.h File Reference
Target entities, the relationship between an instance and a bake target.
|
ILBStatus | ILBChangeTargetEntityType (ILBTargetEntityHandle entity, ILBTargetEntityType type) |
|
ILBStatus | ILBGetAtlasInformation (ILBTargetEntityHandle te, int32 *framebufferIndex, ILBVec2 *offset, ILBVec2 *scale) |
|
ILBStatus | ILBGetNormalizationData (ILBTargetEntityHandle entity, ILBRenderPassHandle pass, int channel, float *minValue, float *maxValue) |
|
ILBStatus | ILBGetTargetEntityInstance (ILBTargetEntityHandle entity, ILBStringHandle *name) |
|
ILBStatus | ILBGetTargetEntityResolution (ILBTargetEntityHandle entity, int32 *width, int32 *height) |
|
ILBStatus | ILBGetTargetEntityType (ILBTargetEntityHandle entity, ILBTargetEntityType *type) |
|
ILBStatus | ILBSetBakeResolution (ILBTargetEntityHandle target, int32 width, int32 height) |
|
ILBStatus | ILBSetBakeUVSet (ILBTargetEntityHandle target, ILBConstString uvName) |
|
ILBStatus | ILBSetTexelScale (ILBTargetEntityHandle target, float scale) |
|
ILBStatus | ILBSetUVTransform (ILBTargetEntityHandle target, const ILBVec2 *offset, const ILBVec2 *scale) |
|
Describes what kind of baking a target entity is using.
Enumerator |
---|
ILB_TT_TEXTURE |
Texture baking.
|
ILB_TT_VERTEX |
Vertex baking.
|
Changes the type of a target entity when running an Live Ernst job.
- Parameters
-
entity | the target to change type |
type | the new type |
Gets the atlas information for a target entity Only valid on Atlas texture target entities and texture target entities.
- Parameters
-
te | the target entity to get atlas information for |
framebufferIndex | a pointer to write where the index of the framebuffer |
offset | a pointer to write the offset in uv space of the atlased object. |
scale | a pointer to write the scale in uv space of the atlased object. |
- Returns
- The result of the operation.
Returns the minimum/maximum value in the selected entity.
Used to scale the LDR values read from the frame buffer to preserve the dynamic range.
The function will fail if the pass has not enabled normalization.
- Parameters
-
entity | the entity for which scale factors should be returned. |
pass | the render pass to get normalization values from |
channel | the framebuffer channel to use (ignored for global normalization) |
minValue | the minimum value for the framebuffer/entity. |
maxValue | the maximum value for the framebuffer/entity. |
- Returns
- The result of the operation.
Returns the name of the instance of a target entity.
Can only be used on update targets returned from an Ernst job.
- Parameters
-
entity | the update target entity |
name | the the name of the instance |
Returns the bake resolution selected in an Ernst session.
Can only be used on update targets returned from an Ernst job and with type == ILB_TT_TEXTURE
- Parameters
-
entity | the update target entity |
width | the x texture resolution |
height | the y texture resolution |
Returns the type of baking selected in an Ernst session.
Can only be used on update targets returned from an Ernst job.
- Parameters
-
entity | the update target entity |
type | the baking type selected on the entity |
Sets the requested resolution for the target entity.
For atlased targets: Will fail if the resolution is higher than the maximum resolution of the atlased target. For live Ernst targets: Will set the bake resolution of the instance attached to this entity. Not valid for other targets.
- Parameters
-
target | the target entity to set the resolution on |
width | the requested width |
height | the requested height |
- Returns
- The result of the operation
Sets the uv set to use when baking the target entity.
Will use default if the uv set is not present in the instance. Only valid for texture and atlased target entities
- Parameters
-
target | the target entity to set the uv set for |
uvName | the name of the uv set to use |
- Returns
- The result of the operation
Sets the relationship between world space coordinates and texels for an atlased target instance.
Only valid for atlased target instance.
- Parameters
-
target | the target entity to set the resolution on |
scale | the number of texels each world space unit should cover |
- Returns
- The result of the operation
Sets the a uv transform for a bake shape.
It will place the shape in a specific location of the texture. Only valid for texture target entities
- Parameters
-
target | the target entity to set the uv transform on |
offset | the offset in uv space for the object |
scale | the scale in uv space for the object |
- Returns
- The result of the operation
Go to the source code of this file.