GLTFSceneKit icon indicating copy to clipboard operation
GLTFSceneKit copied to clipboard

Animation not working

Open kirandb opened this issue 7 years ago • 7 comments

Spider_3_scaled.glb.zip gltf with animation not loading , failing with error : Error Domain=AGXMetalA9 Code=3 "Cannot convert attribute from MTLAttributeFormatShort4 to an unsigned integer type" UserInfo={NSLocalizedDescription=Cannot convert attribute from MTLAttributeFormatShort4 to an unsigned integer type}

attached the glb I am trying to load

kirandb avatar Apr 17 '18 11:04 kirandb

Thank you for reporting! Are you using iPhone? If so, could you tell me the iOS version and which model you're using? I guess it's the known issue of SceneKit, and I added the workaround for some versions of iOS, but I might need to expand the target versions.

It seems working fine on my MacBook. spider

magicien avatar Apr 17 '18 12:04 magicien

I tested on version 11.3 & 10.* in iphone 6s & iphone x both are crashing

kirandb avatar Apr 17 '18 12:04 kirandb

dae for the same model works on both using scenekit , so I am not sure whats missing in conversion to gltf

kirandb avatar Apr 17 '18 12:04 kirandb

I don't think the gltf file has a problem. SceneKit for iOS has some problems to handle data arrays. I'm going to check it with iOS 11.3 & iPhoneX.

magicien avatar Apr 18 '18 01:04 magicien

knight_multi_anim__bind.zip

Hi ya any update on this .. this is failing for any models with animations even on iOS 10

kirandb avatar Apr 19 '18 09:04 kirandb

Any update mate ??

Also does this framework compatible with glft 2.0?

I am not getting animation clips name either from the model too

Please, could you help me on this?

On Wed, Apr 18, 2018 at 2:35 AM, magicien [email protected] wrote:

I don't think the gltf file has a problem. SceneKit for iOS has some problems to handle data arrays. I'm going to check it with iOS 11.3 & iPhoneX.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/magicien/GLTFSceneKit/issues/17#issuecomment-382215743, or mute the thread https://github.com/notifications/unsubscribe-auth/ACASw0--UMghQtZjm0YS25XZe4O_rhvwks5tpphtgaJpZM4TYGEe .

kirandb avatar Apr 25 '18 15:04 kirandb

You can specify rendering api to solve this issue. like: SCNView.init(frame: CGRect.zero, options: [SCNView.Option.preferredRenderingAPI.rawValue : SCNRenderingAPI.openGLES2])

Unfortunately, it does not work for ARKit. ARKit forces use Metal instead

kaiyuanheshang avatar Jul 10 '18 08:07 kaiyuanheshang