Exemplo n.º 1
0
        public void TestExportComplex()
        {
            var tex = new RAMTexture();

            tex.GetCoreData().DiskFilePath = "trolo.png";


            var meshFact = new EngineMeshFactory(new RAMTextureFactory());
            var mesh     = meshFact.loadMeshFromFile(TWDir.GameData.FullName + "\\Core\\MerchantsHouse.obj",
                                                     TWDir.GameData.FullName + "\\Core\\MerchantsHouse.mtl",
                                                     "MerchantsHouse.mtl");
            var exporter = new OBJExporter();

            var objMesh = exporter.ConvertFromTWMesh(mesh);


            exporter.SaveToFile(objMesh, TWDir.GameData.CreateSubdirectory("Scattered\\Tests").FullName + "\\OBJExporterHouse.obj");
        }
 public AssetsWrapper()
 {
     TextureFactory = new RAMTextureFactory();
     MeshFactory    = new EngineMeshFactory(TextureFactory);
     AssetFactory   = new EngineAssetFactory();
 }