C# Class Reactor.Content.Importer.RActorProcessor

Inheritance: ModelProcessor
Mostra file Open project: reisergames/reactor-v1

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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

Process() public method

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
return Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

ProcessVertexChannel() protected method

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
return void