C# Class Reactor.Content.Importer.RActorProcessor

Inheritance: ModelProcessor
Afficher le fichier Open project: reisergames/reactor-v1

Méthodes publiques

Méthode Description
Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

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

Méthodes protégées

Méthode Description
ConvertMaterial ( MaterialContent material, ContentProcessorContext context ) : MaterialContent

Changes all the materials to use our skinned model effect.

ProcessVertexChannel ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent geometry, int vertexChannelIndex, ContentProcessorContext context ) : void

Private Methods

Méthode Description
CompareKeyframeTimes ( Keyframe a, Keyframe b ) : int

Comparison function for sorting keyframes into ascending time order.

FlattenTransforms ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent node, Microsoft.Xna.Framework.Content.Pipeline.Graphics.BoneContent skeleton ) : void

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

GenerateTangents ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : void

Generates Tangent Data for a Mesh

MeshHasSkinning ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.MeshContent mesh ) : bool

Checks whether a mesh contains skininng information.

ProcessAnimation ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.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 ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent node, ContentProcessorContext context, string parentBoneName ) : void

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

Method Details

ConvertMaterial() protected méthode

Changes all the materials to use our skinned model effect.
protected ConvertMaterial ( MaterialContent material, ContentProcessorContext context ) : MaterialContent
material MaterialContent
context ContentProcessorContext
Résultat MaterialContent

Process() public méthode

The main Process method converts an intermediate format content pipeline NodeContent tree to a ModelContent object with embedded tangent animation data.
public Process ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent input, ContentProcessorContext context ) : Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent
input Microsoft.Xna.Framework.Content.Pipeline.Graphics.NodeContent
context ContentProcessorContext
Résultat Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

ProcessVertexChannel() protected méthode

protected ProcessVertexChannel ( Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent geometry, int vertexChannelIndex, ContentProcessorContext context ) : void
geometry Microsoft.Xna.Framework.Content.Pipeline.Graphics.GeometryContent
vertexChannelIndex int
context ContentProcessorContext
Résultat void