pkg> add Assimp
using Assimp.LibAssimp
# load asset
scene = aiImportFile("/your/file/path/xxx.glb",
aiProcess_CalcTangentSpace |
aiProcess_Triangulate |
aiProcess_JoinIdenticalVertices |
aiProcess_SortByPType)
if scene == C_NULL
@error aiGetErrorString() |> unsafe_string
end
# do something
# clean up
aiReleaseImport(scene)