HeapsIO / heaps

Heaps : Haxe Game Framework

Home Page:http://heaps.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utf-8 support for FBX files

trethaller opened this issue · comments

FBX files containing non ANSI characters (like "Cheminée") will be correctly converted on JS but not HL, where the recorded length of the string will not take into account the extra utf-8 bytes, causing the binary load to blow up.

Does it explode on decoding or on encoding to HMD?
In case it explodes on decoding:
hxd.fmt.fbx.Parser:187 - bytes.getString() defaults to UTF8 encoding based on documentation.
If it fails, that means that Autodesk FBX encoders blatantly do stupid thing and encode the string character length, not byte length (and then cause lots of issues with compatibility with Blender, that's what we get for using proprietary undocumented format)
Also weird that it works fine on JS.