x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

[Closed] SwarmAgent problems UE (trying to invert a NIL matrix)

Hi I'm trying to port our project from 4.7 to 4.8, I have fixed some c++ errors and now it compiles and I can play the game.

The problem is that all previously generated lightmaps seems to be broken, so I decided to recompile lights.

The swarm agent starts but in the "Lightmass Starting" process this error appears in the log:

link text

After this, the build process ends but there is no crash.

What can I do to solve this?

EDIT:

I have launched the engine in DebugGame configuration and this breakpoint is reached in the gathering scene geometry process: alt text

I think that this is a problem with some foliage mesh, becouse I don´t use any instanced static meshes directly in my project.

I have tried to compile in an empty map with some foliage meshes and it works.

I will keep investigating but It would be nice some help please.

Product Version: UE 4.8
Tags:
more ▼

asked Jun 16 '15 at 04:50 PM in Using UE4

avatar image

iscaru1988
211 7 13 20

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

The question has been closed Jun 18 '15 at 08:10 AM by iscaru1988 for the following reason:

The question is answered, right answer was accepted


1 answer: sort voted first

At the end I achieved to fix this issue by changing this lines in UnrealMatrix.h:

 UE_LOG(LogUnrealMath, Error, TEXT("FMatrix::InverseFast(), trying to invert a NIL matrix, this results in NaNs! Use Inverse() instead."));
 ensureMsg(false, TEXT("FMatrix::InverseFast(), trying to invert a NIL matrix, this results in NaNs! Use Inverse() instead."));

To this:

 UE_LOG(LogUnrealMath, Error, TEXT("FMatrix::InverseFast(), trying to invert a NIL matrix, returning identity matrix [RG CODE]."));
 return FMatrix::Identity;

This is what the Inverse() functions does inside, after this I recompiled the editor and the unreal Lightmasss and it worked fine.

more ▼

answered Jun 18 '15 at 08:08 AM

avatar image

iscaru1988
211 7 13 20

avatar image Jun 18 '15 at 12:04 PM

This error usually comes from a null scaled static object that can be identified using the Map Check tool, it would display an error looking like this :

Error Cylinder6 Cylinder6 : Invalid DrawScale/DrawScale3D

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question