beastapi/beasttarget.h File Reference
|
ILBStatus | ILBAddBakeInstance (ILBTargetHandle target, ILBInstanceHandle bakeInstance, ILBTargetEntityHandle *targetEntity) |
|
ILBStatus | ILBAddBakePointCloud (ILBTargetHandle target, ILBPointCloudHandle pointCloud, ILBTargetEntityHandle *targetEntity) |
|
ILBStatus | ILBAddMeshToTarget (ILBTargetHandle target, ILBMeshHandle mesh, ILBTargetEntityHandle *targetEntity) |
|
ILBStatus | ILBAddPassToTarget (ILBTargetHandle target, ILBRenderPassHandle pass) |
|
ILBStatus | ILBCameraTargetSetRenderMode (ILBTargetHandle target, ILBCameraRenderModeType renderMode) |
|
ILBStatus | ILBCreateAtlasedTextureTarget (ILBJobHandle job, ILBConstString name, int32 maxWidth, int32 maxHeight, int32 maxTextures, ILBTargetHandle *target) |
|
ILBStatus | ILBCreateCameraTarget (ILBJobHandle job, ILBConstString name, ILBCameraHandle camera, int32 width, int32 height, ILBTargetHandle *target) |
|
ILBStatus | ILBCreatePointCloudTarget (ILBJobHandle job, ILBConstString name, ILBTargetHandle *target) |
|
ILBStatus | ILBCreateTextureTarget (ILBJobHandle job, ILBConstString name, int32 width, int32 height, ILBTargetHandle *target) |
|
ILBStatus | ILBCreateUVUnwrapTarget (ILBJobHandle job, ILBConstString name, float texelsPerUnit, ILBTargetHandle *target) |
|
ILBStatus | ILBCreateVertexTarget (ILBJobHandle job, ILBConstString name, ILBTargetHandle *target) |
|
ILBStatus | ILBEnableAtlasRescale (ILBTargetHandle target) |
|
ILBStatus | ILBEnableAtlasSpatial (ILBTargetHandle target) |
|
ILBStatus | ILBEnableWorldSpaceFilter (ILBTargetHandle target, ILBWorldSpaceFilterComponent component) |
|
ILBStatus | ILBGetFramebuffer (ILBTargetHandle target, ILBRenderPassHandle pass, int32 index, ILBFramebufferHandle *framebuffer) |
|
ILBStatus | ILBGetFramebufferCount (ILBTargetHandle target, int32 *count) |
|
ILBStatus | ILBGetUVLayerFromTarget (ILBTargetHandle target, ILBTargetEntityHandle targetEntity, ILBUVLayerHandle *uvLayer) |
|
ILBStatus | ILBGetUVLayerResolutionFromTarget (ILBTargetHandle target, ILBTargetEntityHandle targetEntity, int32 *width, int32 *height) |
|
ILBStatus | ILBGetVertexbuffer (ILBTargetHandle target, ILBRenderPassHandle pass, ILBTargetEntityHandle targetEntity, ILBFramebufferHandle *framebuffer) |
|
ILBStatus | ILBSetAtlasAlignment (ILBTargetHandle target, int32 alignment) |
|
ILBStatus | ILBSetAtlasPacking (ILBTargetHandle target, ILBAtlasPacking packing) |
|
ILBStatus | ILBSetAtlasPadding (ILBTargetHandle target, int32 padding) |
|
ILBStatus | ILBSetAtlasRescaleFrequencyThreshold (ILBTargetHandle target, float threshold) |
|
ILBStatus | ILBSetTargetResolution (ILBTargetHandle target, int32 width, int32 height) |
|
ILBStatus | ILBSetUVUnwrapCompactness (ILBTargetHandle target, float weight) |
|
ILBStatus | ILBSetUVUnwrapFlatness (ILBTargetHandle target, float weight) |
|
ILBStatus | ILBSetUVUnwrapSegmentationThreshold (ILBTargetHandle target, float threshold) |
|
ILBStatus | ILBSetUVUnwrapStraightness (ILBTargetHandle target, float weight) |
|
ILBStatus | ILBSetWorldSpaceFilterNormalDeviation (ILBTargetHandle target, ILBWorldSpaceFilterComponent component, float normalDeviation) |
|
ILBStatus | ILBSetWorldSpaceFilterSize (ILBTargetHandle target, ILBWorldSpaceFilterComponent component, float size) |
|
Different types of Atlas packing strategies.
Enumerator |
---|
ILB_AP_TEXEL |
Texel.
|
ILB_AP_BLOCK |
Block.
|
Camera modes in Live Ernst Session.
Enumerator |
---|
ILB_LEC_CAMERA_LIGHT_MAP_LIGHTING |
Return frame buffers containing a full shaded light mapped version of the camera view I.e.
Lighting will be applied according to the target texture/vertex light map settings
|
ILB_LEC_CAMERA_PER_PIXEL_LIGHTING |
Return frame buffers containing a full shaded per pixel version of the camera view I.e Lighting will be calculated per pixel, disregarding the texture/vertex light map settings.
|
World space filter components.
Enumerator |
---|
ILB_WSFC_DEFAULT |
Filter everything.
|
ILB_WSFC_DIRECT |
Filter only direct component.
|
ILB_WSFC_INDIRECT |
Filter only indirect component.
|
Adds an instance to bake to a texture or vertex bake target.
- Parameters
-
target | the target to add the instance to |
bakeInstance | the instance to bake |
targetEntity | the targetEntity for this instance. Can be 0 if you don't care |
- Returns
- The result of the operation.
- examples-physical/code/baking-live/baking-live.cpp, examples-physical/code/baking/baking.cpp, examples/code/atlas/atlas.cpp, examples/code/baking/baking.cpp, examples/code/ernst/ernst.cpp, examples/code/liveernst/liveernst.cpp, examples/code/lua/lua.cpp, examples/code/occlusion/occlusion.cpp, examples/code/readback/readback.cpp, examples/code/rnm/rnm.cpp, and examples/code/shbaking/shbaking.cpp.
Adds a point cloud to bake.
- Parameters
-
target | the target to add the point cloud to (only works for point cloud targets) |
pointCloud | the point cloud to bake |
targetEntity | the targetEntity for this instance. Can be 0 if you don't care |
- Returns
- The result of the operation.
Adds a mesh to be unwrapped to a UV unwrap target.
- Parameters
-
target | the target to add the mesh to (only works UV unwrap targets) |
mesh | the mesh to be unwrapped |
targetEntity | the target entity for this mesh. Needed to get the resulting uv layer back. |
- Returns
- The result of the operation.
Add a Render Pass to a target.
- Parameters
-
target | the target to add the pass to |
pass | the pass to add to the target |
- Returns
- The result of the operation.
- examples-physical/code/baking/baking.cpp, examples-physical/code/materials/materials.cpp, examples/code/atlas/atlas.cpp, examples/code/baking/baking.cpp, examples/code/cache/cache.cpp, examples/code/ernst/ernst.cpp, examples/code/lightsources/lightsources.cpp, examples/code/lua/lua.cpp, examples/code/materials/materials.cpp, examples/code/occlusion/occlusion.cpp, examples/code/pointcloud/pointcloud.cpp, examples/code/readback/readback.cpp, examples/code/renderstats/renderstats.cpp, examples/code/rnm/rnm.cpp, examples/code/shbaking/shbaking.cpp, examples/code/simple/simple.cpp, and examples/code/uvset/uvset.cpp.
Dictates which camera render mode used.
For classic final jobs type should always be ILB_LEC_CAMERA_PER_PIXEL_LIGHTING. For live ernst jobs ILB_LEC_CAMERA_PER_PIXEL_LIGHTING means final frame rendering per pixel while ILB_LEC_CAMERA_LIGHT_MAPPING_LIGHTING means light mapped lighting. This requires that all objects to be baked have been setup as well.
- Parameters
-
target | the target whose camera render mode will be set. |
renderMode | the camera type used in live ernst (per pixel or light mapped). |
Adds an atlased texture baking target to a job.
- Parameters
-
job | the job to add the target to |
name | the name of the target |
maxWidth | the maximum width in pixels of each generated texture |
maxHeight | the maximum height in pixels of each generated texture |
maxTextures | the maximum number of generated textures. 0 means don't care. |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
Adds a camera render target to a job.
- Parameters
-
job | the job to add the target to |
name | the name of the target |
camera | handle to the camera to render from |
width | the width in pixels of the image |
height | the height in pixels of the image |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
- examples-physical/code/materials-live/materials-live.cpp, examples-physical/code/materials/materials.cpp, examples/code/atlas/atlas.cpp, examples/code/baking/baking.cpp, examples/code/cache/cache.cpp, examples/code/ernst/ernst.cpp, examples/code/lightsources/lightsources.cpp, examples/code/materials/materials.cpp, examples/code/readback/readback.cpp, examples/code/renderstats/renderstats.cpp, examples/code/rnm/rnm.cpp, examples/code/simple/simple.cpp, and examples/code/uvset/uvset.cpp.
Adds a point cloud target to a job.
- Parameters
-
job | the job to add the target to |
name | the name of the target |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
Adds a texture baking target to a job.
- Parameters
-
job | the job to add the target to |
name | the name of the target |
width | the width in pixels of the texture target |
height | the height in pixels of the texture target |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
Adds an UV unwrap target to a job.
- Parameters
-
job | the job to add the target to. Must be a UV job created with ILBCreateUVJob. |
name | the name of the target |
texelsPerUnit | the number of texels per unit to be used with the resulting UV layout. This affects spacing between UV charts. |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
Adds a vertex baking target.
- Parameters
-
job | the job to add the target to |
name | the name of the target |
target | the handle to store the generated target in |
- Returns
- The result of the operation.
Enables automatic rescaling of instances in the atlas based on frequency information from the baked lightmaps.
- Parameters
-
- Returns
- The result of the operation.
Enables packing spatially close objects into the same texture.
- Parameters
-
- Returns
- The result of the operation.
Enable world space filter for a target.
- Parameters
-
target | the target to enable the filter on |
component | the component to apply the filter to |
- Returns
- The result of the operation.
Gets a framebuffer from a target Is only valid on targets rendering images and the target is done.
- Parameters
-
target | the target to get framebuffer from |
pass | the pass to get vertex data for |
index | of the framebuffer to get |
framebuffer | pointer to the handle that should receive the framebuffer |
- Returns
- The result of the operation.
Gets the number of framebuffers associated with this target Is only valid on targets rendering images and if the target is done.
- Parameters
-
target | the target to get the count for |
count | a pointer to the variable to receive the framebuffer count |
- Returns
- The result of the operation.
Gets a uv layer from a target Only valid on UV unwrap targets and when the target is done.
- Parameters
-
target | the target to get a UV layer from |
targetEntity | the target entity to get a UV layer for |
uvLayer | pointer to the handle that holds the new UV layer |
- Returns
- The result of the operation.
Gets the resulting resolution from packing the UV layout of the unwrapped mesh Only valid on UV unwrap targets and when the target is done.
- Parameters
-
target | the target to get resolution from |
targetEntity | the target entity to get resolution from |
width | the resolution width |
height | the resolution height |
- Returns
- The result of the operation.
Gets a framebuffer with vertex data from a target Is only valid on targets rendering vertex data and the target is done.
- Parameters
-
target | the target to get vertex buffer from |
pass | the pass to get vertex data for |
targetEntity | the target entity to get vertex data for |
framebuffer | pointer to the handle that should receive the framebuffer |
- Returns
- The result of the operation.
Sets the alignment on an atlased texture target.
- Parameters
-
target | the target |
alignment | the alignment |
- Returns
- The result of the operation.
Sets the packing strategy on an atlased texture target.
- Parameters
-
target | the target |
packing | the packing strategy, default is Block packing |
- Returns
- The result of the operation.
Sets the padding on an atlased texture target.
- Parameters
-
target | the target |
padding | the padding |
- Returns
- The result of the operation.
Sets the frequency cutoff for the atlas rescale mode.
Lightmaps with frequency content lower than this value will be downscaled relative this value. Lightmaps with higher frequency content will not be scaled.
- Parameters
-
target | the atlas target |
threshold | the cutoff frequency (default is 1.0f) |
- Returns
- The result of the operation.
Changes the resolution of a texture target when running an Live Ernst job.
- Parameters
-
target | the target to change resolution on |
width | the new width |
height | the new height |
Sets a weight for the importance of having compact (round) charts.
It affects the importance of compactness relative to flatness and straightness. Compactness is expensive to compute and will increase the computation time if enabled. If set to 0.0, compactness is ignored.
- Parameters
-
target | the UV unwrap target. |
weight | the weight for compactness, range 0.0 - 1.0, default is 0.0. |
- Returns
- The result of the operation.
Sets a weight for the importance of having flat charts.
It affects the importance of flatness relative to straightness and compactness. If set to 0.0, flatness is ignored (this will in most cases give a bad UV layout).
- Parameters
-
target | the UV unwrap target. |
weight | the weight for flatness, range 0.0 - 1.0, default is 1.0. |
- Returns
- The result of the operation.
Sets the threshold used when segmenting the mesh into charts for unwrapping.
Controls the number of charts created by setting the angular threshold (allowed normal deviation) for triangles in a chart. A higher threshold results in larger normal deviations and creates larger, but more curved charts; a lower threshold creates smaller, flat charts.
- Parameters
-
target | the UV unwrap target. |
threshold | the segmentation threshold, range 0.0 - 1.0, default is 0.3. |
- Returns
- The result of the operation.
Sets a weight for the importance of having straight chart boundaries.
It affects the importance of straightness relative to flatness and compactness. If set to 0.0, straightness is ignored.
- Parameters
-
target | the UV unwrap target. |
weight | the weight for straightness, range 0.0 - 1.0, default is 0.5. |
- Returns
- The result of the operation.
Set the maximum allowed normal deviation for world space filtering.
The filtered sample will exclude samples with a normal deviating more than the specified limit The normal deviation is specified in degrees The default limit is 25 degrees
- Parameters
-
target | the target to set the normal deviation for |
component | the component to set the normal deviation for |
normalDeviation | the maximum allowed normal deviation |
- Returns
- The result of the operation.
Set the world space filter size for a target.
The filter size is relative to the mean sample distance of the target The default filter size is 1 Start with a default filter size and tweak it to get the desired smoothness
- Parameters
-
target | the target to set the size for |
component | the component to set the size for |
size | the filter size |
- Returns
- The result of the operation.
Go to the source code of this file.