02-06-2025, 01:11 PM
It is recommended to use Ab4d.SharpEngine.glTF library to import .glb files - .glb is a binary glTF file. This way you will not need to use the native Asimp library.
You can try that by starting theĀ WPF, Avalonia, WinForms or WinUI samples project, then open the "glTF Importer and Exporter" and then drag and drop the glb file to the sample.
However, with the Assimp library you can check if the native Assimp library was able to read the file - check if theĀ _assimpImporter.NativeAssimpScene is not null.
You can also subscribe to logging by using the following:
Have you tried importing the .glb file into the Assimp importer sample in the WPF, Avalonia, WinForms or WinUI samples project - it also uses logging and should report any errors.
You can try that by starting theĀ WPF, Avalonia, WinForms or WinUI samples project, then open the "glTF Importer and Exporter" and then drag and drop the glb file to the sample.
However, with the Assimp library you can check if the native Assimp library was able to read the file - check if theĀ _assimpImporter.NativeAssimpScene is not null.
You can also subscribe to logging by using the following:
Code:
_assimpImporter.LoggerCallback = (message, data) => System.Diagnostics.Debug.WriteLine($"Assimp: {message}");
_assimpImporter.IsVerboseLoggingEnabled = true;Have you tried importing the .glb file into the Assimp importer sample in the WPF, Avalonia, WinForms or WinUI samples project - it also uses logging and should report any errors.
Andrej Benedik

