Commit Graph

95 Commits

Author SHA1 Message Date
Stephen Holmes
c0b14b5430 Fix for the editor viewports not being redrawn when the nav mesh has been rebuilt. This meant when many navigation related actors and components were edited (navmodifiers navlinks etc) the viewport did not reflect this uintil the user interacted with the level using the viewport.
#jira none
#review-23929796
#preflight 63d953f3ba4fadeef096366b

[CL 23945376 by Stephen Holmes in ue5-main branch]
2023-02-01 04:23:31 -05:00
frederic doll
684e951c95 Expose option to display Solid and Walkable heightfield in navmesh generation
#preflight 63caff0b8421864a9ca91fa8
#rb aris.theophanidis

[CL 23815894 by frederic doll in ue5-main branch]
2023-01-23 12:49:07 -05:00
aris theophanidis
462076df83 Fix balance macro warning
#jira none
#rb trivial
#preflight 63c8dcae02024f93d81c4b0e

[CL 23770211 by aris theophanidis in ue5-main branch]
2023-01-19 01:10:19 -05:00
Aris Theophanidis
1e4bdb0678 Deprecate unused FRecastNavMeshGenerationProperties
#jira none
#rb Maxime.Mercier
#preflight 63c860cc02024f93d8ec559d

[CL 23764609 by Aris Theophanidis in ue5-main branch]
2023-01-18 16:31:26 -05:00
Aris Theophanidis
45994379a5 [Navmesh] Addition of CellHeight in FNavMeshResolutionParam
#jira none
#rb Mieszko.Zielinski
#preflight 63c8054102024f93d8c56415

[CL 23755472 by Aris Theophanidis in ue5-main branch]
2023-01-18 09:53:42 -05:00
Aris Theophanidis
1e51958bfd Addition of a display option to display navmesh tile resolution
Offset navigation 2D debug text display on screen
#jira none
#rb Maxime.Mercier
#preflight 63c5ba4d2a6acaf1625cd326

[CL 23732536 by Aris Theophanidis in ue5-main branch]
2023-01-16 16:05:38 -05:00
Stephen Holmes
fb04b63f62 Ensure that no reload is needed for NavArea Registration to take effect
#Jira UE-113659
#preflight 63c1144a1a06fc6105bcd9e0
#review-23662782

[CL 23675153 by Stephen Holmes in ue5-main branch]
2023-01-13 03:31:19 -05:00
frederic doll
8b4e25d20f Add NavAgent selector in NavInvoker system : it allows to define areas where the navmesh should be generated for specific agents, not necessarily for all of them
#rb mieszko.zielinski, aris.theophanidis
#preflight 63bf05026729b05ec966f890

[CL 23658495 by frederic doll in ue5-main branch]
2023-01-11 20:55:27 -05:00
frederic doll
3957c56be0 Add option to allow pathfind query with an end location that has no valid polygon around
#rb aris.theophanidis, guillaume.guay, mieszko.zielinski
#preflight 63920af1cf0e31f727a0c844

[CL 23460163 by frederic doll in ue5-main branch]
2022-12-08 21:19:21 -05:00
Aris Theophanidis
03a838da84 First pass at allowing a mix of low, default and high resolution tiles on the navmesh.
CellSize is now deprecated and CellSizes for the various resolutions are stored in the NavMeshResolutionParams array of ARecastNavMesh.
Added NavMeshResolution property to ANavModifierVolume.
Remove duplicated data in dtNavMesh (m_walkableHeight, etc. already in dtNavMeshParams).
Addition of a resolution index to dtMeshHeader.
Increase navmesh version for addition of tile resolutions.
#jira none
#rb Mieszko.Zielinski
#preflight 639106341776b8c21c370f73

[CL 23434938 by Aris Theophanidis in ue5-main branch]
2022-12-07 16:42:43 -05:00
frederic doll
25437b9cdc Recast debug improvement :
- add way to generate only the debug tile
- add way to visualize the geometry received for navmesh generation

#rb aris.theophanidis
#preflight 63876314766a2aeed27a9fc7

[CL 23333278 by frederic doll in ue5-main branch]
2022-11-30 12:06:44 -05:00
frederic doll
dcc751ad73 add more debug logs when building tiles
#preflight 6375017e32484253057b7407
#rb luciano.ferraro

[CL 23160112 by frederic doll in ue5-main branch]
2022-11-16 15:00:33 -05:00
Stephen Holmes
be96784816 More conversion warnings fixes
#jira UE-166285
#preflight 636d16603852f8738a1d4775
#review-23055159

[CL 23079248 by Stephen Holmes in ue5-main branch]
2022-11-10 10:40:09 -05:00
Aris Theophanidis
7ca89a4180 Add navmesh and navsystem informations on screen when navigation display is enabled
Add bDrawTileBuildTimes property to display last tile build time
Add bDrawTileBuildTimesHeatMap property to display the navmesh as a colored heat map of tile build time
Fix UNavMeshRenderingComponent not clearing labels when they where turned off
Allow DebugLabels to be displayed in 2D on screen
Add draw distance clipping for navmesh label rendering
Addition of profile tags in NavMeshRenderingComponent
#jira none
#rb Mieszko.Zielinski
#preflight 63640460d308b70e6607fc77
#preflight 6364089cf233f06a1266b061

[CL 22960500 by Aris Theophanidis in ue5-main branch]
2022-11-03 14:49:40 -04:00
frederic doll
8a000d660b Improve navmesh generation debugging :
- add ways to see the heightfield bound (and max height)
- improve logging for components added to the NavOctree

#rb aris.theophanidis

[CL 22792849 by frederic doll in ue5-main branch]
2022-10-26 17:27:00 -04:00
mikko mononen
b61e12b277 Nav Corridor: fix nav corridor or high cost neighbour polygons
- fixed DetourNavMeshQuery storeWallSegment() returning some segments in reverse
- fixed degenerate cases in polygon clipping
- change corridor expansion to take fixed area cost into account to not expand to hard to reach areas

#rb Mieszko.Zielinski
#preflight 6349200d3c37eed48151e71d

[CL 22539724 by mikko mononen in ue5-main branch]
2022-10-14 19:06:35 -04:00
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
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
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
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
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
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
aris theophanidis
1cfe7b5e40 [Navmesh] When building a standard navmesh in a partitioned world, make sure the navigable world is loaded before building.
#rb Yoan.StAmant
#rb Patrick.Enfedaque
#preflight 62cede61b90bf53969727331

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 21071925 via CL 21072005 via CL 21072034
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21079721 by aris theophanidis in ue5-main branch]
2022-07-13 16:27:55 -04:00
Stephen Holmes
6dd0507189 Check that navigable areas have recast tiles indices that can fit in to an int32. An error log is output if this occurs.
#jira UE-158251
#review-21008880
#rb @Aris.Theophanidis

#preflight 62cd16656a67c3717a6a529b

[CL 21053829 by Stephen Holmes in ue5-main branch]
2022-07-12 04:27:28 -04:00