File to glb creates corrupt file.

Issue #87 new
Former user created an issue

When i load any Object file and export it to glb, the file isnt readable by any editor.

Scene Model = importer.ImportFile("fileName.obj");
importer.ExportFile(Model, "newfile.glb", "glb");
Error: Length in header does not match actual data length: 5081111 != 5081112

I tried with douzen of files.

Comments (2)

  1. Nicholas Woodfield repo owner

    What version of the library? What’s on master or one of the nuget releases? You may have better luck trying from master as that’s a more recent assimp native update

  2. Maxxxel

    Im using v5.0.0-beta1 from the Nuget Manager from within VStudio

    Also

    Scene Model = importer.ImportFile("fileName.obj");
    importer.ExportFile(Model, "newfile.obj", "obj");
    

    produces not the same file. The exported obj misses all textures.

  3. Log in to comment