Commit Graph

168 Commits

Author SHA1 Message Date
aris theophanidis
4d9d09c57e Fix crash when there is no navigation system.
#rb Mieszko.Zielinski
#preflight 6408b44d6c1b9295b9ab8084

[CL 24564492 by aris theophanidis in ue5-main branch]
2023-03-08 14:27:09 -05:00
aris theophanidis
19011a7a6c Fix memory corruption from FRecastTileGenerator::MarkDynamicAreas
#rb Yoan.StAmant
#rb Mieszko.Zielinski
#preflight 63f7a96e9009dd70d73fe364

[CL 24387981 by aris theophanidis in ue5-main branch]
2023-02-23 15:27:49 -05:00
Aris Theophanidis
0549a6511d Rename navigation console commands prefix from n to ai.nav
#rn The prefix for AI navigation console commands has been changed from n to ai.nav.
#jira none
#rb Yoan.StAmant
#rb Mieszko.Zielinski
#preflight 63dd110f2d4aef3dd1a89b6a

[CL 23989571 by Aris Theophanidis in ue5-main branch]
2023-02-03 09:06:53 -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
frederic doll
44f31f2927 Remove Recast steep slope filtering when the agent radius is only 1 voxel
#rb aris.theophanidis, mieszko.zielinski
#preflight 63d2c25fd21dbe1d29b14627

[CL 23888570 by frederic doll in ue5-main branch]
2023-01-27 14:20:41 -05:00
Aris Theophanidis
e3b3e57159 [Navmesh] Support navmesh resolution when doing async navdata gathering.
#jira none
#rb Yoan.StAmant
#preflight 63d28059574ab9cae4295d47

[CL 23866612 by Aris Theophanidis in ue5-main branch]
2023-01-26 08:37:17 -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
frederic doll
4c4ac0557b Add more info about geometry gathering in RecastNavMeshGenerator
#rb aris.theophanidis
#preflight 63c815f9b0652247509d167b

[CL 23761060 by frederic doll in ue5-main branch]
2023-01-18 14:08:52 -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
jeanmichel dignard
8d07a7338f Exec commands changes:
- Port some development only exec commands to Exec_Dev.

#rb none
#preflight 63c5c97f02024f93d822d678

[CL 23734254 by jeanmichel dignard in ue5-main branch]
2023-01-16 19:28:53 -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
Aris Theophanidis
ebb04f691c Change navigation geometry export warning to be based on triangle count and avoid repeating the warning.
#jira none
#rb Mieszko.Zielinski
#preflight 63c02e9e9b13f8369bfd4222

[CL 23664010 by Aris Theophanidis in ue5-main branch]
2023-01-12 11:13:02 -05:00
Aris Theophanidis
c8bfa7a2c7 Fix navigation bounds not being updated on load when "Update Navigation Automatically" is disabled.
This fixes world partitioned navmesh data chunks not being generated for areas covered by NavMeshBoundsVolume that are placed inside data layers.
#jira UE-172683
#rb Yoan.StAmant
#rb Mieszko.Zielinski
#preflight 63bee2676729b05ec9541300

[CL 23646407 by Aris Theophanidis in ue5-main branch]
2023-01-11 11:32:53 -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
frederic doll
b751da2b37 Avoid bounds fully included in the Max tile computation for navmesh generation
#rb aris.theophanidis
#preflight 6376aedd815e4b9b750f3739

[CL 23190993 by frederic doll in ue5-main branch]
2022-11-18 03:12:23 -05:00
aris theophanidis
bd8479f298 Fix misleading local variable name.
#jira none
#rb trivial
#preflight 63726f90bf76990b710a4e80

[CL 23119646 by aris theophanidis in ue5-main branch]
2022-11-14 11:46:30 -05:00
Aris Theophanidis
69748e483d [Navmesh] Keep the same Oodle compression in editor as in game to (avoid being slower in PIE)
#jira none
#rb Mieszko.Zielinski
#preflight 63726d07ee4d25f90acb13d2

[CL 23119391 by Aris Theophanidis in ue5-main branch]
2022-11-14 11:36:55 -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
3b720bc803 Navigation display improvements
Addition of tile building statistics
Addition of partitioning type, navdata count and triangle count
Addition of profile tags in the tile generation
#jira none
#rb Mieszko.Zielinski
#preflight 636a92b7dc30a4ce96a8b738

[CL 23032335 by Aris Theophanidis in ue5-main branch]
2022-11-08 13:00:51 -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
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -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