3D Graphics with Metal 路 Materials | raywenderlich.com


This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1258241-3d-graphics-with-metal/lessons/26
1 Like

Hi. I hope you and your family are fine with this SRAS all around the world.

I鈥檝e run code (final or starter with following tutorial) I have issue when I move mouse. That pointed error : rotation.y += delta.x * sensitivity Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

I don鈥檛 remember that happen on old Xcode, now is xcode 11.4

Do you know where that can be ?
I鈥檝e already clean xcode.

It鈥檚 scary, but so far :crossed_fingers:!

If you set all three rotations at once, it should be ok:

let y = rotation.y + delta.x * sensitivity
rotation = [rotation.x, y, rotation.z]

Try that!

I don鈥檛 know if you can see this thread from the Metal by Tutorials book: https://forums.kodeco.com/t/simd-badaccess-error

Thanks. that鈥檚 works now.
maybe end of year with new CPU on Mac that will bring new bug too :).

good day or evening, I will go sleep now is 1am in Paris.

1 Like