private void LoadModel() { AnimatedModelLoader loader = new AnimatedModelLoader(); animatedModel = (AnimatedModel)loader.Load("", "dude"); animatedModel.UseInternalMaterials = true; GeometryNode modelNode = new GeometryNode("Dude"); modelNode.Model = animatedModel; animatedModel.LoadAnimationClip("Take 001"); modelTransNode = new TransformNode(); modelTransNode.Translation = new Vector3(20, 0, 0); scene.RootNode.AddChild(modelTransNode); modelTransNode.AddChild(modelNode); }
private void LoadModel() { AnimatedModelLoader loader = new AnimatedModelLoader(); animatedModel = (AnimatedModel)loader.Load("", "dude"); animatedModel.UseInternalMaterials = true; GeometryNode modelNode = new GeometryNode("Dude"); modelNode.Model = animatedModel; animatedModel.LoadAnimationClip("Take 001"); modelTransNode = new TransformNode(); modelTransNode.Translation = new Vector3(20, 0, 0); scene.RootNode.AddChild(modelTransNode); modelTransNode.AddChild(modelNode); }