TriLib 2.2.8
Loading...
Searching...
No Matches
Public Attributes | Protected Member Functions | List of all members
TriLibCore.Mappers.ByNameLipSyncMapper Class Reference

Represents a Mapper that search Visemes by searching Blend-Shape Keys names. More...

Inheritance diagram for TriLibCore.Mappers.ByNameLipSyncMapper:
TriLibCore.Mappers.LipSyncMapper

Public Attributes

StringComparisonMode StringComparisonMode
 String comparison mode to use on the mapping.
 
bool CaseInsensitive = true
 Is the string comparison case insensitive?
 
List< VisemeCandidateVisemeCandidates
 The viseme candidates. A viseme candidate is a reference between visemes and valid blend-shape names for the viseme.
 
- Public Attributes inherited from TriLibCore.Mappers.LipSyncMapper
int CheckingOrder
 Defines the mapper priority when using other mappers in the same AssetLoaderOptions.
 

Protected Member Functions

override int MapViseme (AssetLoaderContext assetLoaderContext, LipSyncViseme viseme, IGeometryGroup geometryGroup)
 Maps a Geometry Blend-Shape Key to a Viseme.
Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
visemeThe Viseme name.
geometryGroupThe Geometry Group, containing all child Geometries.
Returns
The blend-shape key index, if found, otherwise, -1.

 
virtual int MapViseme (AssetLoaderContext assetLoaderContext, LipSyncViseme viseme, IGeometryGroup geometryGroup)
 Maps a Geometry Blend-Shape Key to a Viseme.
 

Additional Inherited Members

- Public Member Functions inherited from TriLibCore.Mappers.LipSyncMapper
virtual bool Map (AssetLoaderContext assetLoaderContext, IGeometryGroup geometryGroup, out int[] output)
 Tries to match the Visemes with Blend-Shapes Key indices and outputs the indices in the "output" parameter.
 
- Static Public Attributes inherited from TriLibCore.Mappers.LipSyncMapper
const int VisemeCount = 14
 The viseme count.
 

Detailed Description

Represents a Mapper that search Visemes by searching Blend-Shape Keys names.

Member Function Documentation

◆ MapViseme()

override int TriLibCore.Mappers.ByNameLipSyncMapper.MapViseme ( AssetLoaderContext  assetLoaderContext,
LipSyncViseme  viseme,
IGeometryGroup  geometryGroup 
)
protectedvirtual

Maps a Geometry Blend-Shape Key to a Viseme.

Parameters
assetLoaderContextThe Asset Loader Context reference. Asset Loader Context contains the Model loading data.
visemeThe Viseme name.
geometryGroupThe Geometry Group, containing all child Geometries.
Returns
The blend-shape key index, if found, otherwise, -1.

Reimplemented from TriLibCore.Mappers.LipSyncMapper.