Example #1
0
        // -----------------------------------------------------
        // 予め、情報をコピーするmeshを選定し、並び替えておく
        // -----------------------------------------------------
        private void SelectMeshes()
        {
            mesh_list     = new List <TSOSubMesh>();
            material_list = new T2PMaterialList(fig.TSOList, category);

            int tso_num      = 0;
            int sub_mesh_num = 0;

            foreach (TSOFile tso in fig.TSOList)
            {
                for (int script_num = 0; script_num < tso.sub_scripts.Length; script_num++)
                {
                    foreach (TSOMesh mesh in tso.meshes)
                    {
                        foreach (TSOSubMesh sub_mesh in mesh.sub_meshes)
                        {
                            if (sub_mesh.spec == script_num)
                            {
                                if (meshes_flag[sub_mesh_num++] == true)
                                {
                                    mesh_list.Add(sub_mesh);
                                    material_list.Add(tso_num, script_num, edge_flag_flag, spheremap_flag);
                                }
                            }
                        }
                    }
                }
                tso_num++;
            }
        }
Example #2
0
        // -----------------------------------------------------
        // 予め、情報をコピーするmeshを選定し、並び替えておく
        // -----------------------------------------------------
        private void SelectMeshes()
        {
            meshes        = new List <TSOSubMesh>();
            material_list = new T2PMaterialList(fig.TSOList, categories, TextureFilePrefix, UseSpheremap);

            int tso_num      = 0;
            int sub_mesh_num = 0;

            foreach (TSOFile tso in fig.TSOList)
            {
                for (int script_num = 0; script_num < tso.sub_scripts.Length; script_num++)
                {
                    foreach (TSOMesh mesh in tso.meshes)
                    {
                        foreach (TSOSubMesh sub_mesh in mesh.sub_meshes)
                        {
                            if (sub_mesh.spec == script_num)
                            {
                                if (use_meshes[sub_mesh_num++] == true)
                                {
                                    meshes.Add(sub_mesh);
                                    material_list.Add(tso_num, script_num, UseEdge, tso.FileName);
                                }
                            }
                        }
                    }
                }
                tso_num++;
            }
        }