예제 #1
0
        /// <summary>
        /// The main Process method converts an intermediate format content pipeline
        /// NodeContent tree to a ModelContent object with embedded animation data.
        /// </summary>
        public override ModelContent Process(NodeContent input, ContentProcessorContext context)
        {
            SkinningData skinningData = SkinningHelpers.GetSkinningData(input, context, SkinnedEffect.MaxBones);
            ModelContent model        = base.Process(input, context);

            model.Tag = skinningData;
            return(model);
        }
예제 #2
0
        public override CpuSkinnedModelContent Process(NodeContent input, ContentProcessorContext context)
        {
            this.context = context;
            outputModel  = new CpuSkinnedModelContent();

            // cpu skinning can support any number of bones, so we'll just use int.MaxValue as our limit.
            outputModel.SkinningData = SkinningHelpers.GetSkinningData(input, context, int.MaxValue);

            ProcessNode(input);

            return(outputModel);
        }