C# 클래스 SkinnedModelPipeline.SkinnedModelProcessor

상속: ModelProcessor
파일 보기 프로젝트 열기: zfedoran/bubblebound 1 사용 예제들

공개 메소드들

메소드 설명
Process ( NodeContent input, ContentProcessorContext context ) : ModelContent

The main Process method converts an intermediate format content pipeline NodeContent tree to a ModelContent object with embedded animation data.

보호된 메소드들

메소드 설명
ConvertMaterial ( MaterialContent material, ContentProcessorContext context ) : MaterialContent

Override the ConvertMaterial method to apply our custom InstancedModel.fx shader.

비공개 메소드들

메소드 설명
CompareKeyframeTimes ( Keyframe a, Keyframe b ) : int

Comparison function for sorting keyframes into ascending time order.

FlattenTransforms ( NodeContent node, BoneContent skeleton ) : void

Bakes unwanted transforms into the model geometry, so everything ends up in the same coordinate system.

MeshHasSkinning ( MeshContent mesh ) : bool

Checks whether a mesh contains skininng information.

ProcessAnimation ( AnimationContent animation, int>.Dictionary boneMap ) : AnimationClip

Converts an intermediate format content pipeline AnimationContent object to our runtime AnimationClip format.

ProcessAnimations ( AnimationContentDictionary animations, IList bones ) : AnimationClip>.Dictionary

Converts an intermediate format content pipeline AnimationContentDictionary object to our runtime AnimationClip format.

ValidateMesh ( NodeContent node, ContentProcessorContext context, string parentBoneName ) : void

Makes sure this mesh contains the kind of data we know how to animate.

메소드 상세

ConvertMaterial() 보호된 메소드

Override the ConvertMaterial method to apply our custom InstancedModel.fx shader.
protected ConvertMaterial ( MaterialContent material, ContentProcessorContext context ) : MaterialContent
material MaterialContent
context ContentProcessorContext
리턴 MaterialContent

Process() 공개 메소드

The main Process method converts an intermediate format content pipeline NodeContent tree to a ModelContent object with embedded animation data.
public Process ( NodeContent input, ContentProcessorContext context ) : ModelContent
input NodeContent
context ContentProcessorContext
리턴 ModelContent