When exporting the model as an .fbx file manually it looks great, but when using code:
var ex=new DzFbxExporter();
ex.writeFile(filename);
The model become colorless. The export setting for both of them were same. I can't figure out what's wrong with this.