SceneKit SCNVector math Crippled on M1

I've seen two crashes in the fox sample code already for simple SCNVector functions.

The enemies also don't move - I suppose that's a Gameplay Kit error.

I can see glimpses of other possible problems too - and of course the intermittent display stutter is there. (You know, the one on every OS after High Sierra for any Metal backed view)

I tried both on m1 native and rosetta.

Unless I have some wrong setting, SceneKit's SCNVector math seems crippled at the moment.

Already sent reports...

Can someone else confirm the crashes?

  • This crashes with an access error for me consistently on M1:

    SCNMatrix4Mult(SCNMatrix4Identity, SCNMatrix4Identity)

Add a Comment

Replies

Yes, the following code crashes on M1, but runs fine on Intel

Code Block swift
      // rotate the diffuse contents 
      let translation = SCNMatrix4MakeTranslation(0, -1, 0)
      let rotation = SCNMatrix4MakeRotation(CGFloat.pi / 2, 0, 0, -1)
      let transform = SCNMatrix4Mult(translation, rotation)
      self.materials.screen.diffuse.contentsTransform = transform



I can confirm I'm seeing the same behavior as well. Basic properties like boundingBox on SCNNodes fail in pretty spectacular ways. This basically kills the app =\

Would love to hear some news about what's up. Is this just the way we figure out to switch to RealityKit?