Description | Hierarchy | Fields | Methods | Properties |
type TSkinnedMesh = class(TAnimatedMesh)
Mesh class for using some special functions of Skinned meshes.
![]() |
function AddJoint(Parent: TSkinnedMeshJoint = nil): TSkinnedMeshJoint; inline; |
![]() |
function AddMeshBuffer: TSkinMeshBuffer; inline; |
![]() |
function AddPositionKey(Joint: TSkinnedMeshJoint): TSkinnedMeshPositionKey; inline; |
![]() |
function AddRotationKey(Joint: TSkinnedMeshJoint): TSkinnedMeshRotationKey; inline; |
![]() |
function AddScaleKey(Joint: TSkinnedMeshJoint): TSkinnedMeshScaleKey; inline; |
![]() |
function AddWeight(Joint: TSkinnedMeshJoint): TSkinnedMeshWeight; inline; |
![]() |
function EnableHardwareSkinning(Enable: Boolean = True): Boolean; inline; |
![]() |
function GetJoint(Index: LongWord): TSkinnedMeshJoint; inline; |
![]() |
function GetJointIndex(const Name: AnsiString): LongInt; inline; |
![]() |
function GetJointName(Index: LongWord): AnsiString; inline; |
![]() |
function GetMeshBuffer(Index: LongWord): TSkinMeshBuffer; inline; |
![]() |
function UseAnimationFrom(Mesh: TSkinnedMesh): Boolean; inline; |
![]() |
procedure AnimateMesh(Frame, Blend: Single); inline; |
![]() |
procedure ConvertMeshToTangents; inline; |
![]() |
procedure Finalize; inline; |
![]() |
procedure SetInterpolationMode(Mode: TInterpolationMode); inline; |
![]() |
procedure SkinMesh; inline; |
![]() |
property IsStatic: Boolean read GetIsStatic; |
![]() |
property JointCount: LongWord read GetJointCount; |
![]() |
property MeshBufferCount: LongWord read GetMeshBufferCount; |
![]() |
property UpdateNormalsWhenAnimating: Boolean write SetUpdateNormalsWhenAnimating; |
![]() |
function AddJoint(Parent: TSkinnedMeshJoint = nil): TSkinnedMeshJoint; inline; |
Adds a new joint to the mesh, access it as last one. |
![]() |
function AddMeshBuffer: TSkinMeshBuffer; inline; |
Adds a new meshbuffer to the mesh, access it as last one. |
![]() |
function AddPositionKey(Joint: TSkinnedMeshJoint): TSkinnedMeshPositionKey; inline; |
Adds a new position key to the mesh, access it as last one. |
![]() |
function AddRotationKey(Joint: TSkinnedMeshJoint): TSkinnedMeshRotationKey; inline; |
Adds a new rotation key to the mesh, access it as last one. |
![]() |
function AddScaleKey(Joint: TSkinnedMeshJoint): TSkinnedMeshScaleKey; inline; |
Adds a new scale key to the mesh, access it as last one. |
![]() |
function AddWeight(Joint: TSkinnedMeshJoint): TSkinnedMeshWeight; inline; |
Adds a new weight to the mesh, access it as last one. |
![]() |
function EnableHardwareSkinning(Enable: Boolean = True): Boolean; inline; |
Enables or disables hardware skinning. |
![]() |
function GetJoint(Index: LongWord): TSkinnedMeshJoint; inline; |
Returns a single joint based on its index. |
![]() |
function GetJointIndex(const Name: AnsiString): LongInt; inline; |
Retrieves a joint's index based on its name. The index on success, else -1 |
![]() |
function GetJointName(Index: LongWord): AnsiString; inline; |
Returns a joint's name |
![]() |
function GetMeshBuffer(Index: LongWord): TSkinMeshBuffer; inline; |
Returns a single mesh buffer based on its index. |
![]() |
function UseAnimationFrom(Mesh: TSkinnedMesh): Boolean; inline; |
Use animation from another mesh. ReturnsTrue if all joints in this mesh were matched up (empty names will not be matched, and it's case sensitive). Unmatched joints will not be animated. |
![]() |
procedure AnimateMesh(Frame, Blend: Single); inline; |
Animates this mesh's joints based on frame input. |
![]() |
procedure ConvertMeshToTangents; inline; |
Converts the vertex type of all meshbuffers to tangents. E.g. used for bump mapping. |
![]() |
procedure Finalize; inline; |
Loaders should call this function after populating the mesh. |
![]() |
procedure SetInterpolationMode(Mode: TInterpolationMode); inline; |
Specifies how the animation will be interpolated between frames. |
![]() |
procedure SkinMesh; inline; |
Performs a software skin on this mesh based on joint positions. |
![]() |
property IsStatic: Boolean read GetIsStatic; |
Whether the mesh is non-animated. |
![]() |
property JointCount: LongWord read GetJointCount; |
The number of joints currently in the mesh. |
![]() |
property MeshBufferCount: LongWord read GetMeshBufferCount; |
The number of mesh buffers currently in the mesh. |