Closed anton-plebanovich closed 7 years ago
@anton-plebanovich I am able to load this .dae
file fine, albeit without the textures.
I think right now validateDataStructure
flag is causing the import to fail, as it is a strict validation.
However, yes, the API can definitely be improved bringing it in line with how native SCNScene
API works by passing in an NSError object, which will contain errors reported by assimp
.
Thanks for reporting this with a valid model file.
Thanks for the answer @dmsurti !
App doesn't crash with latest libassimp-fat.a
lib I built from source.
@dmsurti Are you using something different from master
branch? My model after conversion looks like this:
Created pull request with swift-compatible error processing - https://github.com/dmsurti/AssimpKit/pull/86
Are you using something different
@anton-plebanovich Yes, that is from a different branch I was working on for the next milestone.
pull request with swift-compatible error processing
Awesome. Thanks for the effort 👍 . I will be able to review this on Mon, will let you know my comments and/or merge this.
Fixed in #86.
Hi @dmsurti . I'm trying to catch Assimp C++ exceptions using
@try {} @catch (...) {}
block but for some reason exceptions do not reach it and application just crashes instead.Sample model: https://s3-eu-west-1.amazonaws.com/show-it/candle.dae
Sample code in
GameViewController.m
usingAssimpKit_Process_ValidateDataStructure
step:Stack Trace:
Is there any way to prevent application crash on exception?