C# Класс Reactor.Content.Importer.RActorProcessor

Наследование: ModelProcessor
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

ConvertMaterial() защищенный Метод

Changes all the materials to use our skinned model effect.
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 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
Результат Microsoft.Xna.Framework.Content.Pipeline.Processors.ModelContent

ProcessVertexChannel() защищенный Метод

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
Результат void