AirSim prevents low-level details crowd and traffic from being drawned in Cityscape Demo

About

I have added AirSim plugin to UE5 Cityscape demo. When using plugin game mode AirSimGameMode, for some reason it disables drawing for low-level mass ai objects. These objects are still tracked and existing (green squares), just drawing is disabled.

I want to make low-level mass ai objects to be drawn when the plugin gamemode is active. Do you have some ideas what can be the cause and what should I check in the first place?

How Has This Been Tested?

Debugging with MassTraffic.DebugVisualization 1 I concluded that higher level details mass ai objects are drawn as desired (all orange/red squares), but lower level-detail mass ai objects are not drawn at all (green squares).

Screenshots (if appropriate):


Related issue

Posted also on github plugin page: UE5 - AirSim prevents low-level details crowd and traffic from being drawned · Issue #4555 · microsoft/AirSim · GitHub

One another artifact (possibly related) is that sometimes low-poly low-quality buildings appear in strange places. Again, this is happening only when the plugin is Active.

For now, I have tried a lot of commands like reseting mass ai, forcing spawning, increasing culling angle frustrum etc… But still I did not solve the issue.

Ok Solved!

The issue is related to origin position and/or calling GetWorld()->SetNewWorldOrigin(…) in AirSim. As a fast workaround, commenting SetNewWorldOrigin and setting spawning location same as City Sample Demo (not 0,0,0) solves the issue.

This fix both issues: no rendering of smaller (“green”) mass objects and strange low-quality buildings spawning all around.

1 Like