Collada export issue.

Help
2013-05-10
2013-06-03
  • modermodemet
    modermodemet
    2013-05-10

    Hi,

    I'm trying to export a mesh as DAE, but results in an error, however, exporting as OBJ works just fine.

    Assimp::Importer importer;
    const aiScene *scene = importer.ReadFile( "C:\\imp.dae", aiProcess_CalcTangentSpace | aiProcess_Triangulate | aiProcess_JoinIdenticalVertices | aiProcess_SortByPType);
    //Returns aiReturn_FAILURE (-1)
    aiReturn err = aiExportScene(scene, "dae", "C:\\exp.dae", NULL);
    //Returns aiReturn_SUCCESS (0)
    err = aiExportScene(scene, "obj", "C:\\exp.obj", NULL);
    

    Any guesses what could be wrong?

    Thanks.

     
  • modermodemet
    modermodemet
    2013-05-10

    Forgot to mention that in release mode it returns 0, but won't create a file.

     
  • modermodemet
    modermodemet
    2013-05-11

    Oh god, i'm retarded…

    aiExportScene(scene, "dae", "C:\\exp.dae", NULL);
    

    to

    aiExportScene(scene, "collada", "C:\\exp.dae", NULL);
    

    Badum-tish!

    I even rebuilt Assimp32.dll hoping that would fix :)

    Also,

    Forgot to mention that in release mode it returns 0, but won't create a file.

    Just my retardness again, did print err after obj exported.