assimp / assimp-net

Automatically exported from code.google.com/p/assimp-net
191 stars 82 forks source link

Broken Exporter #42

Open Pilzinsel64 opened 6 years ago

Pilzinsel64 commented 6 years ago

I realy don't know why, but exporting with Assimp.dll 64bit v4.1.0 doesn't work and v3.1.1 works. And I am testing since weeks now.

Here two test codes which work perfectly with v3.1.1 and with v4.1.0 I get a System.AccessViolationException:

grafik

grafik

Please fix that or tell me what I do wrong, I realy would use the Export-Feature.

Pilzinsel64 commented 6 years ago

Update: It only happens to the 64-bit version. But with 32-bit it creates the files but they are empty and my model isn't empty. In a test, I tried to export the same as I imported.

Starnick commented 5 years ago

This is because the newer native version has breaking changes in how its types are laid out in memory, so on the managed side you'll get all sorts of memory-related exceptions.

FYI, this is not the official repository for Assimpnet -- it is located on bitbucket (https://bitbucket.org/Starnick/assimpnet/src/master/), this is a repository cloned from my old googlecode one by the native authors.

AssimpNet has been updated to target the native 4.1.0 version, and release candidate nuget packages have been posted:

https://www.nuget.org/packages/AssimpNet/