Commit Graph

436 Commits

Author SHA1 Message Date
aris theophanidis
515c53fba6 [WP Navmesh] For navmeshes supporting runtime generation, copy cache data when filling navigation data chunk actors.
#jira UE-166490
#rb Stephen.Holmes
#preflight 63402fb1b20780acc1f5c035
#lockdown Julien.Marchand

[CL 22404321 by aris theophanidis in ue5-main branch]
2022-10-07 13:38:43 -04:00
Stephen Holmes
5dfa33affb Remove commented out code only
#review-22373730
#jira none
#preflight none

[CL 22398203 by Stephen Holmes in ue5-main branch]
2022-10-07 06:31:01 -04:00
Stephen Holmes
83171ee89e Fix for UE-161611 Bots do not perform most actions around map in BR and mostly appear static.
Issue was that the nav mesh bounds were not offset which was preventing offset dynamic navmesh from generating.

#review-22328259
#preflight 633c09c2bd3c9b60f2b5bd42
#jira UE-161611

[CL 22330478 by Stephen Holmes in ue5-main branch]
2022-10-04 10:33:45 -04:00
aris theophanidis
3b3a47bb42 [Navigation] Don't display "navmesh needs to be rebuilt" on-screen editor message in partitioned world.
It's not meaningful since loading and unloading parts of the world triggers it.
#jira UE-150793
#rb Mieszko.Zielinski
#rb Mikko.Mononen
#preflight 6336f6c2b34118b9b4a6c907

[CL 22279070 by aris theophanidis in ue5-main branch]
2022-09-30 15:45:31 -04:00
Aris Theophanidis
9386dee261 [WP Navmesh] Prevent creation of partitioned navmesh in non world-partitioned worlds
#jira UE-157334
#rb Mieszko.Zielinski
#preflight 63346e04e4106916067a3493

[CL 22225636 by Aris Theophanidis in ue5-main branch]
2022-09-28 13:07:40 -04:00
danny couture
54e2b17fb7 Fix assert while getting rid of old navigation data during serialize on async loading thread
#rb Kelby.Gamble, Aris.Theophanidis
#preflight 633464ad7e016676abd3edfa

[CL 22225575 by danny couture in ue5-main branch]
2022-09-28 13:04:06 -04:00
Stephen Holmes
1e39c05a09 Fix for crash while loading navmesh with async static mesh compilation enabled.
AddElementToNavOctree (through some of its resulting function calls) modifies PendingOctreeUpdates so invalidates the iterators, (via WaitUntilAsyncPropertyReleased(), UpdateComponentInNavOctree() ,  RegisterNavOctreeElement()).

This means we can't iterate through the TSet PendingOctreeUpdates in the normal way. Previously the code iterated through this which also left us open to other potential bugs in that we may have tried to modify elements we had already processed.

#Jira UE-156914
#review
#preflight 6331ae58b4515b7e22bb6ac8

[CL 22182942 by Stephen Holmes in ue5-main branch]
2022-09-26 10:16:31 -04:00
marc audy
311f7464bf Updated ../Engine/Source/Runtime/... to inline gen.cpp files
Before:
3648 unity files
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

After:
3548 unity files
Total CPU Time: 46643.828125 s
Total time in Parallel executor: 486.06 seconds

#jira
#preflight

[CL 22173263 by marc audy in ue5-main branch]
2022-09-24 13:57:58 -04:00
Stephen Holmes
ef0154ac65 Upgraded a lot of the navigation code. to use FVector::FReal rather than floats. Areas of code where there was little to gain from doing this but would break existing code have been left as float.
#review-22090184
#jira UE-159397
#preflight 632af1846919ce3998bd2195

[CL 22111650 by Stephen Holmes in ue5-main branch]
2022-09-21 09:16:42 -04:00
kelby gamble
47421b4312 Destroy NavigationData in CleanUpAndMarkPendingKill to fix KillPendingKill errors
#tests Forced a call to CleanUpAndMarkPendingKill in each place that it can be called from to make sure that a crash doesn't occur
[REVIEW] [at]stephan.delmer, [at]robert.millar, [at]aris.theophanidis, [at]mieszko.zielinski

[CL 22099568 by kelby gamble in ue5-main branch]
2022-09-20 15:12:03 -04:00
Aris Theophanidis
3fe9ad80e1 [Navigation] Addition of a warning when exporting component with too many verticies.
With a custimizable warning threshold through the GeometryExportVertexCountWarningThreshold property.
#jira none
#rb Mieszko.Zielinski
#preflight 6324ca71121ffddebca1229b

[CL 22059323 by Aris Theophanidis in ue5-main branch]
2022-09-16 16:21:02 -04:00
Aris Theophanidis
c4652e5977 [WP Navmesh] Get the required overlap (to build world partitioned navmesh) from the navigation system instead of using a constant.
#jira UE-150793
#rb Mieszko.Zielinski
#rb Mikko.Mononen
#preflight 63238e295a44869a7d0c7804

[CL 22038349 by Aris Theophanidis in ue5-main branch]
2022-09-15 17:03:58 -04:00
stephen holmes
6489ad102b Remove FSerializeFloatAsDoubleHack. This was straight forward as we were not seriliazling any floats currently just FReals as doubles.
#preflight 631b5475a20b67673be95e8f
#jira UE-159397

[CL 21961617 by stephen holmes in ue5-main branch]
2022-09-12 05:16:38 -04:00
bryan sefcik
07894f4a07 Removed redundant private include paths from build.cs files.
Fixed include paths to be relative to the private or public folders.
Hid or removed includes that reached into other private module folders.
Updated PublicInclude paths when necessary.

#jira
#preflight 631a717cec45fbf3d74d4ba7

[CL 21916033 by bryan sefcik in ue5-main branch]
2022-09-09 00:53:22 -04:00
aris theophanidis
4591a7aa67 [Navigation] Only update actor and components in navoctree if the actor is initalized.
#rb Mieszko.Zielinski
#preflight 631a3a1ea20b67673b9eef3d

[CL 21910448 by aris theophanidis in ue5-main branch]
2022-09-08 21:27:54 -04:00
Filoppi
70811d24d0 PR #8622: Make UNavigationSystemV1::PerformNavigationBoundsUpdate() virtual (Contributed by Filoppi)
#jira UE-135077
#rb Mieszko.Zielinski
#preflight 6312012fd34a78c1123f1a86

[CL 21758036 by Filoppi in ue5-main branch]
2022-09-02 09:22:31 -04:00
aris theophanidis
52316cb264 [Navigation] Addition of a warning in UNavigationSystemV1::GetNavDataForProps to warn about using invalid FNavAgentProperties
#rb Maxime.Mercier
#preflight 630e013b556fc14dce6a3e15

[CL 21702480 by aris theophanidis in ue5-main branch]
2022-08-30 11:49:20 -04:00
nicoell
97f7a3bd0e PR #8743: Prevent RecastNavMeshGenerator dirtying tiles if dirty areas merely touch them (Contributed by nicoell)
#jira UE-137894
#rb Mieszko.Zielinski
#rb Maxime.Mercier
#preflight 6308c69f1670d55ad5f683f2

[CL 21589037 by nicoell in ue5-main branch]
2022-08-26 09:30:11 -04:00
henrik karlsson
213a68824f * UnrealHeaderTool - Fixed so destructor is declared and defined for code gen classes
* UnrealTypeDefinitionInfo - Explicitly added destructor to make sure code gen is not adding.
* Niagra - Fixed bug where function was declared as non-inline virtual but implemented as inline.
* RecastNavmesh - Made sure destructor is outside #ifdef for UHT to more easily parse the header and generate proper code

#rb Tim.Smith
#preflight 630660a4c00af5e2946af6a6

[CL 21555810 by henrik karlsson in ue5-main branch]
2022-08-24 19:22:18 -04:00
Zak Middleton
80627edb67 #ue5 - Move ConvertArrayType and ConvertArrayTypeClampMax to UE::LWC namespace.
#jira none
#rb none
#preflight 62fc03232265303c4ba38780

[CL 21414621 by Zak Middleton in ue5-main branch]
2022-08-16 17:11:27 -04:00
Aris Theophanidis
ede20b5880 [Navmesh] Only include navigation relevant component when computing UNavModifierComponent navigation bounds
#jira UE-160479
#rb Mieszko.Zielinski
#rb Mikko.Mononen
#preflight 62fb9cc6086f90bbc43940f5

[CL 21404301 by Aris Theophanidis in ue5-main branch]
2022-08-16 09:48:43 -04:00
guillaume guay
21dcd46188 Added GetPolyTileRef method to retrieve a FNavTileRef from a NavNodeRef
[REVIEW] [at]aris.theophanidis

#ROBOMERGE-AUTHOR: guillaume.guay
#ROBOMERGE-SOURCE: CL 21387545 via CL 21391189 via CL 21391883
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v975-21357124)

[CL 21394376 by guillaume guay in ue5-main branch]
2022-08-15 17:16:14 -04:00
Aris Theophanidis
940b9c12dd [Navmesh] Fix transformed convex collision generating wrong navmesh
#jira UE-150091
#rb Mikko.Mononen
#preflight 62fa4269153b17e7462e70ec

[CL 21385823 by Aris Theophanidis in ue5-main branch]
2022-08-15 09:08:19 -04:00
jeanfrancois dube
2675b5d1f0 Make sure AbstractNavData doesn't support external packaging since it's always transient.
#rb aris.theophanidis
#preflight none
#rnx

#ROBOMERGE-AUTHOR: jeanfrancois.dube
#ROBOMERGE-SOURCE: CL 21289529 via CL 21289675 via CL 21289719
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21292428 by jeanfrancois dube in ue5-main branch]
2022-08-09 13:26:27 -04:00
aris theophanidis
fa28636eff Fix crash in PIE on navmesh RebuildAll() using normal navmesh in a WP world
#rb Yoan.StAmant
#preflight none
#rnx

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 21202572 via CL 21202595 via CL 21202604
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21204064 by aris theophanidis in ue5-main branch]
2022-07-21 13:31:44 -04:00