Commit Graph

62 Commits

Author SHA1 Message Date
aris theophanidis
25ec0fe467 [Navmesh] Increase the height where the navmesh can generate (now using 29 bits instead of 15, allowing 26000 km of altitude when using 5 cm CellHeight).
Changed rcCompactSpan to use rcSpanUInt for y
#jira UE-170917
#rb Mikko.Mononen
#preflight 6479f9d8e83bf655eec1bf78

[CL 25762526 by aris theophanidis in ue5-main branch]
2023-06-02 11:24:51 -04:00
edwin maynard
ad7dff1c8b [Backout] - CL25685905 (backed out due to cis issues)
[FYI] Aris.Theophanidis
Original CL Desc
-----------------------------------------------------------------
[Navmesh] Increase the height where the navmesh can generate (now using 29 bits instead of 15, allowing 26000 km of altitude when using 5 cm CellHeight).
Removed unused hmin and hmax from dtTileCacheLayerHeader.
Increased navmesh version to 27.
#jira UE-170917
#rb Mikko.Mononen
#preflight 64764387d8097b4382ebda24

[CL 25690551 by edwin maynard in ue5-main branch]
2023-05-30 17:37:39 -04:00
aris theophanidis
44f7f8b892 [Navmesh] Increase the height where the navmesh can generate (now using 29 bits instead of 15, allowing 26000 km of altitude when using 5 cm CellHeight).
Removed unused hmin and hmax from dtTileCacheLayerHeader.
Increased navmesh version to 27.
#jira UE-170917
#rb Mikko.Mononen
#preflight 64764387d8097b4382ebda24

[CL 25685952 by aris theophanidis in ue5-main branch]
2023-05-30 15:51:51 -04:00
stephen holmes
59e7bb912b Navlink / offmeshconnection Ids are now based on a deterministic 64 bit city hash rather than a 32 bit incremental ID.
#jira UE-139061
[REVIEW] Yoan.StAmant
#preflight 645246b2743c256cd68c2b8f

#lockdown marc.audy

[CL 25333876 by stephen holmes in ue5-main branch]
2023-05-04 09:29:33 -04:00
aris theophanidis
566bd24ce3 Addition of AgentMaxStepHeight into FNavMeshResolutionParam
#rb Yoan.StAmant
#preflight 6436d6740c19befb6c93d674

[CL 25018392 by aris theophanidis in ue5-main branch]
2023-04-12 19:07:51 -04:00
aris theophanidis
ff829d1253 Revert CL 24676912
#rb trivial
#preflight skip

[CL 24684926 by aris theophanidis in ue5-main branch]
2023-03-17 01:07:51 -04:00
aris theophanidis
ffac2d15a0 Fix issue in FPImplRecastNavMesh::Raycast when no hit is found.
#rb Maxime.Mercier
#preflight 641356ed5d3e25354fd11185

[CL 24679089 by aris theophanidis in ue5-main branch]
2023-03-16 16:50:02 -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
steve robb
6a31618d42 Removed TIsSame from misc. engine files (part of a larger change to deprecate TIsSame).
#rb devin.doucette
#preflight 63c01cac8f4acc7b54d8832d

[CL 23678906 by steve robb in ue5-main branch]
2023-01-13 11:47:02 -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
04bc28783f [Navmesh] On previous navmesh version, read deprecated CellSize property during serialization to avoid invalidating the navmesh
#rb Maxime.Mercier
#jira UE-172700
#preflight 6398f1440a671525508164ea

[CL 23497495 by Aris Theophanidis in ue5-main branch]
2022-12-13 16:51:10 -05:00
Aris Theophanidis
3d575257b4 Fix crash in Lyra (needed when tileWidth of loading navmesh mismatch)
#jira UE-172700
#rb Yoan.StAmant
#preflight 6398d99b680483bcb1016f45

[CL 23496182 by Aris Theophanidis in ue5-main branch]
2022-12-13 15:18:04 -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
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
Aris Theophanidis
ae0bd8e9fa [Navmesh] In FPImplRecastNavMesh::GetNavMeshTilesIn(), use FRcTileBox to find min and max tile coordinates.
Note: At CL 21589037, FRcTileBox has been fixed to avoid including tiles that are just touching bounds borders so this applies the fix to GetNavMeshTilesIn() as well.
#rb Mieszko.Zielinski
#jira none
#preflight 634eec11864d9be23637affb

[CL 22607428 by Aris Theophanidis in ue5-main branch]
2022-10-18 14:45:15 -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
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
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
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
737c1a42e5 [Navmesh] Add warnings when tiles could not be added because the tile limit has been reached
#preflight 62b36c75c603be61480dad27

[CL 20779709 by Aris Theophanidis in ue5-main branch]
2022-06-22 15:36:07 -04:00
Aris Theophanidis
2e4408b29b [Navmesh] Use FNavTileRef instead if int32 for updated tiles to fix issue where a tile would be reuse from the tile pool while it would still be referenced in the updated tile list (causing unpredictable results).
Also includes improved tile logging.
#rb Mieszko.Zielinski
#jira none
#preflight 62a0c659232daff7b3f10b18

[CL 20558326 by Aris Theophanidis in ue5-main branch]
2022-06-08 12:29:58 -04:00
Aris Theophanidis
7ee1676796 Fix gameplay debugger navmesh rendering issue
When using bRestrictBuildingToActiveTiles, GetDebugGeometry() would gather the data for all the active tiles for each tile in the TileSet instead of only once, leading to unsuable framerate.
#rb Mieszko.Zielinski
#jira none
#preflight 627434d8fd59d6606e05341a

[CL 20064369 by Aris Theophanidis in ue5-main branch]
2022-05-05 16:48:48 -04:00