【问题标题】:Assimp 5.0.0 crash on exportAssimp 5.0.0 在导出时崩溃
【发布时间】:2019-12-12 23:50:16
【问题描述】:

我正在尝试导出我的 aiScene(与 assimp 4.1.0 一起正常工作),每次程序结束并调用它的导出函数时都会崩溃。 我将 aiScene 子类化,构造函数如下所示:

customAiScene::customAiScene()
{
    mFlags = 0;
    mRootNode = NULL;
    mNumMeshes = 0;
    mMeshes = NULL;
    mNumMaterials = 0;
    mMaterials = NULL;
    mNumAnimations = 0;
    mAnimations = NULL;
    mNumTextures = 0;
    mTextures = NULL;
    mNumLights = 0;
    mLights = NULL;
    mNumCameras = 0;
    mCameras = NULL;
    mPrivate = NULL;
    exporter = new Assimp::Exporter();
    int n = exporter->GetExportFormatCount();
    for (int i = 0; i < n; i++) {
        const aiExportFormatDesc* formatDescription = exporter->GetExportFormatDescription(i);
        wxString sDesc = wxString::FromUTF8(formatDescription->description);
        wxString sExt = wxString::FromUTF8(formatDescription->fileExtension);
        wxString sID = wxString::FromUTF8(formatDescription->id);
        MyApp::showMessage(wxString::Format(wxT("export format: %s,%s,%s"), sDesc, sExt, sID), "l");
    }
}

稍后,设置数据后,我将场景导出:

exporter->Export(this, exportFormatDesc, filePath);

正如我所说,使用 assimp 4.1.0 它可以正常工作(但我需要 FBX 导出,因此是新版本的原因)。 感谢您的帮助。

【问题讨论】:

    标签: assimp exporter


    【解决方案1】:

    我会和我们现在的主人一起检查你的代码。这似乎是一个错误。

    我打开了问题报告https://github.com/assimp/assimp/issues/2846 来跟踪您的问题。

    【讨论】:

      猜你喜欢
      • 2016-04-29
      • 2016-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多