Select to view content in your preferred language

Error after building lighting

784
2
12-13-2022 01:18 PM
shahbaar
Occasional Contributor

Hi,

I have a project created with the VR template in 5.0.3. 

When I build lightning, there is an error in the console saying "LogUnrealMath: Error: TMatrix<T>::InverseFast(), trying to invert a NIL matrix, this results in NaNs! Use Inverse() instead."

The error is printed every frame and the frame rate drops significantly. The issue seems to be with the map actor, since the error disappears when I hide the map actor. 

Anybody else having this issue or knows what's causing it?

0 Kudos
2 Replies
SNauman
Occasional Contributor

Hi, couple questions:
- Do you have any unique models/meshes in your project?
- Are you using a skybox or something else?
- Did you try finding where in the code this message is being flagged? There should be a line in the console

0 Kudos
shahbaar
Occasional Contributor

Yeah I had a bunch of things in the scene, but removing those didn't solve the issue. 

I was eventually able to figure out that it was the directional light causing the problem. Switching it from stationary to movable resolved the issue. So seems like for some reason the ArcGIS map doesn't like stationary directional light? If the scene has no ArcGIS actors, there is no error even with stationary light. 

I have only tested this in a project created with VR template. But both plugin versions have the same behavior ( 1.0.0  with UE 5.0.3 and 1.1.0 with UE5.1.0  )

0 Kudos