There might be version compatibility issue ? or perhaps unity should update blend to fbx converter.
Opened this issue · 0 comments
convertedASCIfbx.txt
originalBlend.txt
The original blend file is the Blender 2.7 default cube.
fbx file is converted from a .blend file by the unity engine.
I keep trying to find a c# ASCI.fbx to BIN.fbx converter.
I am not versed in 3dmodel file formats. Had to delete assembly info files... wasn't working under Unity. This is how I execute your scripts
var reader = new UkooLabs.FbxSharpie.FbxAsciiReader(new FileStream(PostMan.NewFbxFilePath, System.IO.FileMode.Open)); var doc = reader.Read(); UkooLabs.FbxSharpie.FbxIO.WriteBinary(doc, Path.GetDirectoryName(PostMan.NewFbxFilePath) +Path.GetFileNameWithoutExtension(PostMan.NewFbxFilePath) + @"BIN.fbx" );
And this error pops up. Are these .fbx files generated by Unity have some unexpected data on them?
FbxException: Unexpected 'L', expected ':' or a single-char literal, near line 1 column 0 UkooLabs.FbxSharpie.Parsers.AsciiTokenParser.TryParseIdentifierOrCharToken (UkooLabs.FbxSharpie.FbxAsciiFileInfo fbxAsciiFileInfo, UkooLabs.FbxSharpie.Tokens.Token& token) (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/Parsers/AsciiTokenParser.cs:111) UkooLabs.FbxSharpie.FbxAsciiReader.ReadToken () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:72) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:243) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.ReadNode () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:272) UkooLabs.FbxSharpie.FbxAsciiReader.Read () (at Assets/FbxASCII2BinTool/UkooLabs.FbxSharpie/FbxAsciiReader.cs:317) BlendToFbxConverter.GUIDswapper (System.String old_blend_path, System.String new_fbx_path) (at Assets/BlendToFbxConverter.cs:204) BlendToFbxConverter.ProcessAllFiles () (at Assets/BlendToFbxConverter.cs:134) BlendToFbxConverter.StartProcessingFiles () (at Assets/BlendToFbxConverter.cs:122) BlendToFbxConverter.Update () (at Assets/BlendToFbxConverter.cs:151)