コード例 #1
0
        public static RAMMesh CreateMerchantsHouseMeshOLD()
        {
            ObjImporter importer = new ObjImporter();


            importer.AddMaterialFileStream("MerchantsHouse.mtl", new FileStream(TestFiles.MerchantsHouseMtl, FileMode.Open));
            importer.ImportObjFile(TestFiles.MerchantsHouseObj);

            var textureFactory = new RAMTextureFactory();

            /*textureFactory.AddAssemblyResolvePath(typeof(ObjImporter).Assembly,
             *                                    "MHGameWork.TheWizards.OBJParser.Files.maps");*/
            var conv = new OBJToRAMMeshConverter(textureFactory);

            return(conv.CreateMesh(importer));
        }
コード例 #2
0
 private MeshLoader()
 {
     textureFactory = new RAMTextureFactory();
     converter      = new OBJToRAMMeshConverter(textureFactory);
 }