static void Test1() { string dir = @"C:\Users\dell\AppData\Local\Colossal Order\Cities_Skylines\Addons\Import\ARDumps\"; string file1 = "RoadMediumNode._ascii.fbx"; var doc = FbxIO.ReadAscii(dir + file1); string fileA = "testA_" + file1; FbxIO.WriteAscii(doc, dir + fileA); doc = FbxIO.ReadAscii(dir + fileA); string fileB = "testB_" + file1; FbxIO.WriteBinary(doc, dir + fileB); // i can't open this doc = FbxIO.ReadBinary(dir + fileB); FbxIO.WriteAscii(doc, dir + "testC_" + file1); // i can open this }
static void Test4() { Test3(); string dir = @"C:\Users\dell\AppData\Local\Colossal Order\Cities_Skylines\Addons\Import\ARDumps\"; string file1 = "RoadMediumNode._ascii.fbx"; // can open this string file2 = "TEST3_RoadMediumNode.binary.fbx"; // can open this string file3 = "TEST3_RoadMediumNode.ascii.fbx"; string fileB = "TEST3B_RoadMediumNode.binary.fbx"; Console.WriteLine("reading binary ..."); var doc1 = FbxIO.ReadBinary(dir + file2); FbxIO.WriteAscii(doc1, dir + file3); var doc2 = FbxIO.ReadAscii(dir + file3); doc1.Diff(doc2); FbxIO.WriteBinary(doc2, dir + fileB); }