Exemplo n.º 1
0
        /// <summary>
        /// Load the model asset from content
        /// </summary>
        /// <param name="content"></param>
        public void LoadContent(RenderMethod renderMethod)
        {
            this.model = ContentLoader.models[assetName];//content.Load<Model>(assetName);
            modelExtra = model.Tag as ModelExtra;
            System.Diagnostics.Debug.Assert(modelExtra != null);

            ObtainBones();

            ModelHelper.SetModelTechniques(model, "Bone", renderMethod);

            players = new List <BlendPlayer>();
        }
Exemplo n.º 2
0
        public R_Model(string assetName, RenderMethod renderMethod = RenderMethod.Deferred)
        {
            this.model = ContentLoader.models[assetName];

            ModelHelper.SetModelTechniques(model, "", renderMethod);
        }
Exemplo n.º 3
0
        public R_Model(Model model, RenderMethod renderMethod = RenderMethod.Deferred)
        {
            this.model = model;

            ModelHelper.SetModelTechniques(model, "", renderMethod);
        }