Exemplo n.º 1
0
        private void CreateBonePointNode(string filename)
        {
            EZMFile ezmFile = EZMFile.Load(filename);

            ezmFile.LoadTextures();
            var rootElement = this.scene.RootNode;

            for (int i = 0; i < ezmFile.MeshSystem.Meshes.Length; i++)
            {
                EZMMesh mesh  = ezmFile.MeshSystem.Meshes[i];
                var     model = new NodePointModel(mesh.Skeleton.Bones);
                var     node  = NodePointNode.Create(model);
                node.DiffuseColor = Color.Red;
                rootElement.Children.Add(node);
            }
        }