Commit Graph

55 Commits

Author SHA1 Message Date
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
frederic doll
ffd235bd12 Add way to get random position inside a specified nav polygon
I need that because I do a floodfill query (with ARecastNavMesh::FindPolysAroundCircle) and then need to test positions to move in the resulting polygons

[REVIEW] aris.theophanidis, mikko.mononen

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 19465568 via CL 19465588 via CL 19465610 via CL 19466833 via CL 19475574 via CL 19475839
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v935-19464907)

[CL 19476450 by frederic doll in ue5-main branch]
2022-03-23 01:26:18 -04:00
frederic doll
860eed028c Fix missing array initialization in FPImplRecastNavMesh::FindPolysAroundCircle resulting in NodePolyCost not being returned
#rb aris.theophanidis

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 19429994 via CL 19429998 via CL 19432864 via CL 19438357 via CL 19438526
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v930-19419903)

[CL 19442444 by frederic doll in ue5-main branch]
2022-03-18 18:51:49 -04:00
fred kimberley
7fbfaf57c8 Require explicit constructors/casts when converting between FVector, FVector3d, and FVector3f.
#jira UE-122078
#rb Andrew.Davidson, Colin.McGinley
#preflight standard build

#ROBOMERGE-AUTHOR: fred.kimberley
#ROBOMERGE-SOURCE: CL 18817999 in //UE5/Release-5.0/... via CL 18818012 via CL 18822871
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18824721 by fred kimberley in ue5-main branch]
2022-02-02 07:59:31 -05:00
aris theophanidis
5f924d7c06 [Navmesh] Moving the initialization of dtNavMesh parameters into the init() and serializing the parameters in ARecastNavMesh.
(for safer initialization flow and fix potential mismatch between navmesh actor and serialized navmesh data)
#rb Stephen.Holmes, Mieszko.Zielinski, Frederic.Doll
#preflight 61f7f4a3114ec25fe09cf120

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18790349 via CL 18790766 via CL 18791060 via CL 18791564 via CL 18791967
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)

[CL 18792194 by aris theophanidis in ue5-main branch]
2022-01-31 12:29:15 -05:00
stephen holmes
b96646319e Fix for broken nav mesh links after UE5 integrate. Submitting for Frederic Doll.
#rb Frederic.Doll, Stephen.Holmes, Aris.Theophanidis
#preflight 61f265a1706ac5ea0cf479b8

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18752174 via CL 18752190 via CL 18752201 via CL 18752320 via CL 18752399
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18752407 by stephen holmes in ue5-main branch]
2022-01-27 07:31:13 -05:00
stephen holmes
5aa9445cf5 Added LLM tags for the navigation octree.
Also removed two unnecessary tags in the nav mesh code.
The new LLM tags mirror the existing STAT_Navigation_CollisionTreeMemory functionality.

#preflight 61e9be95f160213534a34b64?step=5a6e

#ROBOMERGE-OWNER: stephen.holmes
#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18680481 via CL 18681738 via CL 18682025 via CL 18682845 via CL 18682857 via CL 18682876
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18682897 by stephen holmes in ue5-main branch]
2022-01-20 17:35:30 -05:00
Aris Theophanidis
2bd1f24a66 [WP Navmesh] Fix removed actors still showing in the editor actor list after navmesh build
Enable usage of source control provider when building WP navmesh
Fix issue with deleted packages being added to source control
Make sure WP navmesh actor in WP levels remains empty (data is provided by navmesh chunk actors)
#jira UE-114032
#rb Yoan.StAmant
#robomerge 5.0
#preflight 61e839b93778a195dee90f08

[CL 18659327 by Aris Theophanidis in ue5-main branch]
2022-01-19 11:44:26 -05:00