Commit Graph

67 Commits

Author SHA1 Message Date
stephen holmes
bada563480 Fix for frequent check() in FRcTileBox due to invalid FBox bounds. This code should stop the issue being fatal and handle the bad case reasonably.
[CL 27912057 by stephen holmes in ue5-main branch]
2023-09-15 08:11:55 -04:00
yoan stamant
9d4992961c [Navigation] Added bounds to NavCollision since geometry can differ from StaticMesh
- Bumped the DDC version of the NavCollision
- Updated StaticMeshComponent to return bounds from the NavCollision when possible
- Fixed InstancedStaticMeshComponent not using the additional geometry of the NavCollision when exporting the custom navigable geomerty
- Updated InstancedStaticMeshComponent to compute bounds using the NavCollision for GetNavigationBounds, PartialNavigationUpdate and when gathering per instance transforms for navigation
- Updated UHierarchicalInstancedStaticMeshComponent to use bounds from the NavCollision for PartialNavigationUpdate
#jira UE-186525
#rb aris.theophanidis

[CL 27753562 by yoan stamant in ue5-main branch]
2023-09-11 10:47:11 -04:00
stephen holmes
a68ea9d01f added more debug info to help track down cause of conversion bugs
[REVIEW]

[CL 27717387 by stephen holmes in ue5-main branch]
2023-09-08 13:15:26 -04:00
yoan stamant
b6f974cc30 [NavigationSystem] replaced requirement of PrimitiveComponent by INavRelevantInterface + UObject.
Added dedicated delegates for UObject based registration and update.
#rb maxime.mercier
#rb aris.theophanidis
#jira UE-186525

[CL 26981216 by yoan stamant in ue5-main branch]
2023-08-09 20:35:21 -04:00
aris theophanidis
2d7a4adee9 [Navmesh] Fix voxel filtering issue when using high AgentMaxSlope values in combination with high CellSize values.
#rb Mieszko.Zielinski

[CL 26263218 by aris theophanidis in ue5-main branch]
2023-06-27 13:37:19 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
aris theophanidis
ccff6bbade [Navmesh] Addition of tile generation history and stats when LogNavigationHistory is set to Log.
#rb Mieszko.Zielinski

[CL 26012395 by aris theophanidis in ue5-main branch]
2023-06-15 09:37:15 -04:00
aris theophanidis
baac550c36 Bump the priority of dirty tiles near invokers when using sorting by invokers priority.
#rb Yoan.StAmant
#rb Maxime.Mercier
#preflight 645d5428cf788a2558f97d75

[CL 25440013 by aris theophanidis in ue5-main branch]
2023-05-11 20:49:39 -04:00
aris theophanidis
e6e1bbb3ba [Navmesh] Addition of invoker priorities
#rb Mikko.Mononen
#preflight 645951366534a4f504d98f0d

[CL 25382949 by aris theophanidis in ue5-main branch]
2023-05-08 22:04:12 -04:00
olivier lamothe
9f2574b15e Remove unnecessary calls to UNavigationSystemV1::GetMutableOctree accessor
#rb [at]Mieszko.Zielinski,[at]Yoan.St-Amant
#rnx

[CL 25085388 by olivier lamothe in ue5-main branch]
2023-04-18 09:46:23 -04:00
aris theophanidis
8609b7ea39 [Navmesh] CSV profiler: addition of task count and task wait time per layer
#rb Yoan.StAmant
#preflight 6410acfc290c6e5d7707ffa1

[CL 24643683 by aris theophanidis in ue5-main branch]
2023-03-14 16:39:38 -04:00
mieszko zielinski
ec52f1082c Cut out all AI-related UE_DEPRECATED(4.x) code
#preflight 63ede8f3e92f139c513f0cef

[CL 24256631 by mieszko zielinski in ue5-main branch]
2023-02-16 08:31:16 -05:00
Aris Theophanidis
aca23ff8a0 [Navmesh] Fix crash occurring when NavigationRelevantData array is being modified during GC (when FRecastTileGenerator::AddReferencedObjects is called)
The change moves emptying NavigationRelevantData to the main thread so that it does not occur at any moment.
#jira none
#rb Maxime.Mercier
#rb Mieszko.Zielinski
#preflight 63d92768f626715201d8034c

[CL 23926631 by Aris Theophanidis in ue5-main branch]
2023-01-31 09:51:22 -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
ca3b0d5f19 Change Navmesh debug display to only see the tiles around the debug actor even when active tile generation is enabled
#rb aris.theophanidis
#preflight 639b7ea02540a78d27fb51eb

[CL 23535064 by frederic doll in ue5-main branch]
2022-12-15 20:04:53 -05:00
Aris Theophanidis
20ea419434 Fix missing default tile resolution initialisation
#jira none
#rb trivial
#preflight 63914e88c0652bbec233e290

[CL 23441303 by Aris Theophanidis in ue5-main branch]
2022-12-07 21:50:57 -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
Stephen Holmes
2f18773caa Addressing the remaining AI numeric conversion issues.
#jira UE-166285
#review
#preflight 638a031b35192facc1c0fd77

[CL 23372606 by Stephen Holmes in ue5-main branch]
2022-12-02 10:07:29 -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
Aris Theophanidis
a173b410ad [Navmesh] Optimization: remove unnecessary extra agent radius tile expansion when computing tile bounds.
This avoids unnecessary collision gathering as well a preventing unnecessary tile dirtiness.
Also resolves issue in Z where an NavModifierVolume would incorrectly dirty a tile below itself if within agent radius.
Addition of n.UseTightBoundExpansion console command to revert back to previous behavior as a fallback precaution.
#jira UE-127165
#rb Mikko.Mononen
#fyi Frederic.Doll
#fyi Guillaume.Guay
#preflight 6377b9d3f514e1ded9ba198b

[CL 23197691 by Aris Theophanidis in ue5-main branch]
2022-11-18 12:23:09 -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
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
aris theophanidis
50bc74b4f8 [Navmesh] Add log tracking FRecastNavMeshGenerator RebuildAll() time (independently of the loading time)
Change OnNavigationGenerationFinished() to display actor label and full name instead of package name.
#rb Yoan.StAmant
#preflight 62d6d896dc4397d3840d7b30

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 21165279 via CL 21171402 via CL 21171752
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21183781 by aris theophanidis in ue5-main branch]
2022-07-20 12:57:26 -04:00
Stephen Holmes
d92f4e1e00 Time slicing recast ledge span filtering.
#review-20774616
#rb Aris.Theophanidis
#preflight 62b42e4f1463893419c1a6cb
#jira FORT-426667

[CL 20792905 by Stephen Holmes in ue5-main branch]
2022-06-23 08:13:10 -04:00
Stephen Holmes
93eab593e0 Added debugging code to better track down slow time sliced sections of code.
#review-20593115
#rb Aris.Theophanidis
#preflight 62b1e968827ccccb2ce32cbc
#jira none

[CL 20759306 by Stephen Holmes in ue5-main branch]
2022-06-21 12:13:45 -04:00