helix-toolkit / helix-toolkit

Helix Toolkit is a collection of 3D components for .NET.
http://helix-toolkit.org/
MIT License
1.89k stars 671 forks source link

Import failed: 3MF - helix DX Assimp #1885

Open galdenny opened 1 year ago

galdenny commented 1 year ago

I am struggling with the following issue for some time now so I decided to create some sample App to show the problem. There is a simple cone model created with 3D Builder and saved as 3MF and STL. If I use the HelixToolkit.SharpDX.Assimp 2.23.0 to load the files, the STL will load, but not the 3MF. After digging into the issue, I realized, that the AssimpNet library can be out of date.

Maybe it would be better to update AssimpNet to get fresh Assimp dlls.

I include my test project to demonstrate the issue. HelixDX_3mf_Test.zip

I also created a more detailed setup to test the problem. In that case I downloaded AssimpNet and Helix toolkit directly and connected them. The problem remained the same with newer dlls too. Assimp was not able the handle 3MF. The assimp scene was loaded, but it could not release the unmanaged pointer of the scene: aiReleaseImport

holance commented 1 year ago

Unfortunately there's no newer version of assimp net available.

galdenny commented 1 year ago

Yes, I have seen it too. But There must be a way to go forward with this issue. There is an Assimp Scene, so a Helix Scene Node could be created. The only thing is the issue with the unmanaged pointer.

I will try tu post this issue to the assimpnet issue tracker.