Esempio n. 1
0
        private void viewMD3Model(string name)
        {
            md3Model = new MD3Model();
            if (md3Model.loadMD3Model(name))
            {
                md3Model = null;
                return;
            }

            refreshTreeView();
        }
Esempio n. 2
0
        private bool importMD3Model(string md3FileName)
        {
            MD3Model md3 = new MD3Model();

            if (md3.loadMD3Model(md3FileName))
            {
                return(true);
            }
            if (md3.getNumSurfaces() == 0)
            {
                MessageBox.Show("MD3 model you tried to import has no surfaces.",
                                "MD3 model has 0 surfaces.",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation,
                                MessageBoxDefaultButton.Button1);
                return(true);
            }
            model = new WavefrontOBJ();
            md3.addToSimpleStaticMeshBuilder(0, model);
            recreateGPUBuffers();
            UpdateDirectXDisplay();
            return(false);
        }