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)); }
private MeshLoader() { textureFactory = new RAMTextureFactory(); converter = new OBJToRAMMeshConverter(textureFactory); }