Gorilla.Armature
Unit Gorilla.Armature.pasClasses
- TGorillaArmature = class ( TGorillaTransform )
- TGorillaHAnimHumanoid = class ( TGorillaTransform )
Constants
- const ARMATURES_COLORS : array[0..9] of TAlphaColor = ;
TGorillaArmature
The basic instance for skin- or skeleton animation nodes An armature instance belongs to a specific shape / mesh. The represented hierarchy is defined by the skeleton node and its children.
Ancestors
Members
Fields
- protected FSkeletons :
TList<Gorilla.Transform.TGorillaTransform>
- protected FMeshes :
TGorillaMeshList
- protected FJointMap :
TDictionary<Gorilla.DefTypes.TJointDef,Gorilla.Joint.TGorillaJoint>
- public ArmatureIndex :
Integer
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function GetShowJoints ( ) : Boolean ;
- protected procedure SetShowJoints ( AValue : Boolean ) ;
- protected function GetJointsRenderColor ( ) : TAlphaColor ;
- protected procedure SetJointsRenderColor ( AValue : TAlphaColor ) ;
- protected procedure Render ( ) ; override;
- protected procedure doOnVertexJointsListValueNotify ( ASender : TObject; const AItem : TVertexJoints; AAction : TCollectionNotification ) ;
- protected procedure DoLoadHierarchyFromDef ( ADef : TTransformDef ) ; override;
- protected procedure DoLoadControllersFromDef ( ADef : TArmatureDef ) ;
- protected procedure DoLoadUncontrolledJoints ( ADef : TArmatureDef ) ;
- protected procedure DoDuplicate
(
ASource :
TComponent; ADuplicator :
TGorillaDuplicator
)
;
override;
Duplicates a TGorillaMesh/TGorillaModel and all of its submeshes. The method copies the complete memory structure and refreshes necessary lists and standalone components
- public procedure LinkJoint ( const ADef : TJointDef; const AJoint : TGorillaJoint ) ;
- public function FindJoint ( const ADef : TJointDef ) : TGorillaJoint ;
- public procedure CalculateInverseBindTransformMatrix ( const ACtrl : TControllerDef ) ;
- public procedure LoadFromDefinition ( const ADef : TCustomDef ) ; override;
- public procedure PrepareSkinAnimation ( ) ; virtual;
- public procedure PrepareSkinAnimationStep ( ACtrl : TControllerDef ) ; virtual;
- public procedure AnimateSkin
(
const
AMeshBuffers :
TDictionary<Gorilla.DefTypes.TMeshDef,FMX.Types3D.TVertexBuffer>
=
nil
)
;
This method is automatically called by the render method. It will apply the current joint transformation to the shape.
Parameters
- const AMeshBuffers : TDictionary<Gorilla.DefTypes.TMeshDef,FMX.Types3D.TVertexBuffer> = nil - This parameter is used by the caching mechanism. Supply a specific number of vertex buffers equal to the number of sub meshes in a model.
- public procedure DebugOut ( ) ;
Properties
- public Skeletons : TList<Gorilla.Transform.TGorillaTransform>
The starting point of the skeleton. This is the TGorillaHAnimJoint node at the top of the joint hierarchy.
read FSkeletons - public Meshes : TObjectList<Gorilla.Mesh.TGorillaMesh>
- public ShowJoints : Boolean
- public JointsRenderColor : TAlphaColor
TGorillaHAnimHumanoid
The basic instance for skin- or skeleton animation nodes An armature instance belongs to a specific shape / mesh. The represented hierarchy is defined by the skeleton node and its children.
Ancestors
Members
Fields
- protected FSkeletons :
TList<Gorilla.Transform.TGorillaTransform>
- protected FMeshes :
TGorillaMeshList
- protected FJointMap :
TDictionary<Gorilla.DefTypes.TJointDef,Gorilla.Joint.TGorillaJoint>
- public ArmatureIndex :
Integer
Methods
- public constructor Create ( AOwner : TComponent ) ;
- public destructor Destroy ( ) ;
- protected function GetShowJoints ( ) : Boolean ;
- protected procedure SetShowJoints ( AValue : Boolean ) ;
- protected function GetJointsRenderColor ( ) : TAlphaColor ;
- protected procedure SetJointsRenderColor ( AValue : TAlphaColor ) ;
- protected procedure Render ( ) ; override;
- protected procedure doOnVertexJointsListValueNotify ( ASender : TObject; const AItem : TVertexJoints; AAction : TCollectionNotification ) ;
- protected procedure DoLoadHierarchyFromDef ( ADef : TTransformDef ) ; override;
- protected procedure DoLoadControllersFromDef ( ADef : TArmatureDef ) ;
- protected procedure DoLoadUncontrolledJoints ( ADef : TArmatureDef ) ;
- protected procedure DoDuplicate
(
ASource :
TComponent; ADuplicator :
TGorillaDuplicator
)
;
override;
Duplicates a TGorillaMesh/TGorillaModel and all of its submeshes. The method copies the complete memory structure and refreshes necessary lists and standalone components
- public procedure LinkJoint ( const ADef : TJointDef; const AJoint : TGorillaJoint ) ;
- public function FindJoint ( const ADef : TJointDef ) : TGorillaJoint ;
- public procedure CalculateInverseBindTransformMatrix ( const ACtrl : TControllerDef ) ;
- public procedure LoadFromDefinition ( const ADef : TCustomDef ) ; override;
- public procedure PrepareSkinAnimation ( ) ; virtual;
- public procedure PrepareSkinAnimationStep ( ACtrl : TControllerDef ) ; virtual;
- public procedure AnimateSkin
(
const
AMeshBuffers :
TDictionary<Gorilla.DefTypes.TMeshDef,FMX.Types3D.TVertexBuffer>
=
nil
)
;
This method is automatically called by the render method. It will apply the current joint transformation to the shape.
Parameters
- const AMeshBuffers : TDictionary<Gorilla.DefTypes.TMeshDef,FMX.Types3D.TVertexBuffer> = nil - This parameter is used by the caching mechanism. Supply a specific number of vertex buffers equal to the number of sub meshes in a model.
- public procedure DebugOut ( ) ;
Properties
- public Skeletons : TList<Gorilla.Transform.TGorillaTransform>
The starting point of the skeleton. This is the TGorillaHAnimJoint node at the top of the joint hierarchy.
read FSkeletons - public Meshes : TObjectList<Gorilla.Mesh.TGorillaMesh>
- public ShowJoints : Boolean
- public JointsRenderColor : TAlphaColor