Error: FMatrix::InverseFast() trying to invert a NIL matrix

I’m getting this error in a clean project. It appears in the output log as soon as you set the scale of a skysphere to a large number. I can consistently reproduce, and the call stack is attached.

LogUnrealMath: Error: FMatrix::InverseFast(), trying to invert a NIL matrix, this results in NaNs! Use Inverse() instead.

To reproduce:

  1. Create a new blank project.
  2. Enable ‘Show Engine Content’
  3. Drag a SM_SkySphere into the scene (Engine Content/EngineSky/SM_SkySphere.SM_SkySphere)
  4. Set the x,y,z scale to be 100000, or any value above 20000.

The output log will show this error, and all your light bakes will start failing from this point onward.

Thanks

2 Likes