Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
3D-object import in Ad4b Engine
#2
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:
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
  


Messages In This Thread
3D-object import in Ad4b Engine - by hiii - 02-06-2025, 01:01 PM
RE: 3D-object import in Ad4b Engine - by abenedik - 02-06-2025, 01:11 PM
RE: 3D-object import in Ad4b Engine - by abenedik - 02-20-2025, 12:16 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)