Re: package file request
Hi, yes we need to convert all mesh in the mesh directory and sub-directory (i added an option to scan recursive in readDirectory, it returns global filenames if recursive)
You can create a temporary level if you don't want to touch the one in memory and load file by file :
Something like (doing by head, code is not 100% sure) :
MLevel * currentLevel = engine->getLevel();
MLevel * tempLevel = new MLevel();
engine->setLevel(tempLevel);
MMesh * mesh = MMesh::getNew();
(for all meshs)
{
mesh->clear();
if(engine->getMeshLoader()->loadData(filename, mesh))
exportMeshBin(filenameDest, mesh);
tempLevel->clear();
(same for armatureAnim, texturesAnim and MaterialsAnim files)
}
mesh->destroy();
engine->setLevel(currentLevel);
SAFE_DELETE(tempLevel);
It will unfortunately load textures also for now,
but I will add an option to the xml mesh loader this week-end to not do it