Commit Graph

129 Commits

Author SHA1 Message Date
Aris Theophanidis
fc29e3dad9 Build fix for 'GetTileIdsFromNavTileRefs': is not a member of 'FNavTileRef'
#jira UE-156146
#rb trivial
#preflight skip
#rnx

[CL 20562200 by Aris Theophanidis in ue5-main branch]
2022-06-08 15:11:29 -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
Zak Middleton
f6067e1851 #ue5 - TruncToInt(double) and similar *ToInt(double) functions now return int64 rather than int32. Fixed up existing uses of *ToInt(double) functions to use explicit *ToInt32(double) where old result type was expected to be int32.
Enabled overloads of Max() and Min() with mixed signed integral arguments (promoting to largest type). Unsigned are not allowed to implicitly mix.
Added explicit overload of Clamp(int64, int32, int32) => int64 to allow for easier upgrades, and once type truncation warnings are enabled in more modules they can be evaluated per-case.


#jira UE-124808
#preflight 6297a9b0e809e387be231e60
#rb Andy.Davidson

[CL 20456547 by Zak Middleton in ue5-main branch]
2022-06-01 14:56:52 -04:00
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
Aris Theophanidis
e65180d107 [WP Dynamic Navmesh] Handle preexisting spawned objects when loading cells
#rb Yoan.StAmant
#jira UE-150793
#preflight 6290c68a1f0041249bed5027

[CL 20392089 by Aris Theophanidis in ue5-main branch]
2022-05-27 08:58:40 -04:00
Stephen Holmes
6fa4991713 Fix for nav mesh not being present in various levels.
Issue was associated with IsWorldPartitionedDynamicNavmesh change.

#review-20362143
#preflight 628e1a1b9f6fbd94aded8a69

[CL 20362569 by Stephen Holmes in ue5-main branch]
2022-05-25 08:00:27 -04:00
Aris Theophanidis
e2dab4ca3d [WP navmesh] Limit tile building to the loaded space when using a WP dynamic navmesh
- Update and use active tiles when using URecastNavMeshDataChunk
- Keep track of dirty areas origin
- Fix some logs TileRef
#rb Mieszko.Zielinski
#jira UE-150793
#preflight 6286493e9016c6dd8982744e

[CL 20279641 by Aris Theophanidis in ue5-main branch]
2022-05-19 09:59:18 -04:00
luciano ferraro
f41d494120 Improved Debug log regarding the tiles being dirtied by a dirty area (LogNavigationDirtyArea) by also showing how many tiles are new in the pending dirty list, instead of just the total, which sometimes is misleading
[REVIEW] [at]Loic.Devaux, [at]Karl.Dubois, [at]Guillaume.Guay, [at]Aris.Theophanidis

#ROBOMERGE-AUTHOR: luciano.ferraro
#ROBOMERGE-SOURCE: CL 20178772 via CL 20181533 via CL 20181757 via CL 20181832 via CL 20181875
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20183664 by luciano ferraro in ue5-main branch]
2022-05-13 13:24:53 -04:00
Aris Theophanidis
5c4115f532 [WP Dynamic Navmesh] First pass on WP dynamic navmesh
- Dynamic navmesh in a world partitioned map is now allowed to build a base navmesh and stream cells from it
- Ignore navigation dirtiness coming from objects loading/unloading that are part of the base navmesh
- Addition of vlog boxes on addition and removal of navigation data chunk actors
#rb Yoan.StAmant
#jira UE-150793
#preflight 626fe108220f89f0ad3fdb14

[CL 20008063 by Aris Theophanidis in ue5-main branch]
2022-05-02 10:10:57 -04:00
aris theophanidis
379c9008c5 [Navmesh] Fix broken "Mask Fill Collision Under" feature (regression from CL 17897123)
#jira UE-141641
#rb Yoan.StAmant
#rnx
#lockdown julien.marchand
#preflight 6201871ce9567e667309dbaa

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18895186 via CL 18895202 via CL 18895234 via CL 18896471 via CL 18896758
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18897012 by aris theophanidis in ue5-main branch]
2022-02-07 20:06:23 -05:00
aris theophanidis
641029df84 Wrapping RawNavData pointer to help narrow a crash
(with some extra const)
#rb Maxime.Mercier
#preflight 61fc2b043b22793ca369a98d

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18852387 via CL 18852907 via CL 18853018 via CL 18854025 via CL 18854798
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v910-18824042)

[CL 18854824 by aris theophanidis in ue5-main branch]
2022-02-03 18:11:49 -05: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
Andrew Davidson
4a3e582384 LWC: Remove UE_LARGE_WORLD_COORDINATES_DISABLED toggle
#rb stephen.holmes
[FYI] zak.middleton
#preflight 61f7d18b114ec25fe09648d6

#ROBOMERGE-OWNER: Andrew.Davidson
#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18788533 in //UE5/Release-5.0/... via CL 18788583 via CL 18788850
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v908-18788545)
#ROBOMERGE-CONFLICT from-shelf
#preflight 61f7eb7a114ec25fe0990f8c

[CL 18789644 by Andrew Davidson in ue5-main branch]
2022-01-31 10:10:51 -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
5c12d1675a Fix for navmesh queries (related to CL 18595413)
In the ANavigationData::RebuildAll() flow, NavDataGenerator->RebuildAll() is called and it releases the detour navmesh to make a new one. In that flow, the new dtNavMesh params where never sets, causing m_bvQuantFactor to be 0 and navmesh queries to fail.
(not that RebuildAll() flow can be called automatically when bNavigationAutoUpdateEnabled is enabled in editor)
#jira UE-139610
#rb Stephen.Holmes
#preflight 61e9643e276892ce10921113

#ROBOMERGE-AUTHOR: aris.theophanidis
#ROBOMERGE-SOURCE: CL 18673754 in //UE5/Release-5.0/... via CL 18674060 via CL 18674106
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v902-18672795)

[CL 18674160 by aris theophanidis in ue5-main branch]
2022-01-20 09:45:01 -05:00
stephen holmes
e50f3afb72 Recast Memory Optimizations
#rb Aris.Theophanidis, Mikko.Mononen
#preflight 61dffc545c17cc8daba9ccd7

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18595413 in //UE5/Release-5.0/... via CL 18595426 via CL 18595434
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Test -> Main) (v899-18417669)

[CL 18596691 by stephen holmes in ue5-main branch]
2022-01-13 10:09:07 -05:00
UnrealBot
c47e81b2cb Branch snapshot for CL 18531810
[CL 18531810 in ue5-main branch]
2022-01-06 16:44:09 +00:00
UnrealBot
2987349d36 Branch snapshot for CL 18514113
[CL 18514113 in ue5-main branch]
2022-01-05 20:41:17 +00:00
Aris Theophanidis
de767a0440 [Navmesh] Fix CalculateMaxTilesCount() changing per platform and target
#rb Yoan.StAmant, Guillaume.Guay
#fyi Karl.Dubois, Loic.Devaux
#robomerge FnMain
#preflight 61d5d02c1a3fd09dcbd39db0

[CL 18520620 by Aris Theophanidis in ue5-main branch]
2022-01-05 12:26:19 -05:00
stephen holmes
958f8a9d70 [Backout] - CL18404146
[FYI] Stephen.Holmes
Original CL Desc
-----------------------------------------------------------------
Memory optimizations for Recast (Detour). I used UE_LOG in recast as it's already there. Also I only added [at]UE BEGIN [at]UE END for the big stuff as a hint that its been changed in case of issues.

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18417786 in //UE5/Release-5.0/... via CL 18417810
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18417812 by stephen holmes in ue5-release-engine-test branch]
2021-12-09 07:11:32 -05:00
stephen holmes
d81cea02c3 Memory optimizations for Recast (Detour). I used UE_LOG in recast as it's already there. Also I only added [at]UE BEGIN [at]UE END for the big stuff as a hint that its been changed in case of issues.
[at]Aris.Theophanidis, [at]Mikko.Mononen
#preflight 61b0706418370fb3a0e6da2c

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18404146 in //UE5/Release-5.0/... via CL 18404149
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v896-18170469)

[CL 18404152 by stephen holmes in ue5-release-engine-test branch]
2021-12-08 04:50:39 -05:00
luciano ferraro
c1511879e5 Added a log that shows when a dirty area is dirtying one or more tiles:
- usable to understand (per navmesh) how many tiles we are dirtying and what the biggest offenders are

[REVIEW] [at]Loic.Devaux, [at]Guillaume.Guay, [at]Mieszko.Zielinski, [at]Aris.Theophanidis
[FYI] philippe.painchaud, Felix.Laplante, Patrick.Carroll, Guillaume.Morreel, Josselin.Francois


#ROBOMERGE-AUTHOR: luciano.ferraro
#ROBOMERGE-SOURCE: CL 18299019 via CL 18300916 via CL 18300964 via CL 18301452 via CL 18301480
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18301490 by luciano ferraro in ue5-release-engine-test branch]
2021-11-26 14:26:02 -05:00
stephen holmes
a0eb390e23 Fix for unnecessarily rebuilding of nav mesh based on the number of bits requried to store maxTiles.
#rb Mikko.Mononen
#preflight 619e8ddd801b361978cbd1ef

#ROBOMERGE-AUTHOR: stephen.holmes
#ROBOMERGE-SOURCE: CL 18292987 in //UE5/Release-5.0/... via CL 18292992
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18292996 by stephen holmes in ue5-release-engine-test branch]
2021-11-25 03:31:41 -05:00
luciano ferraro
f67fc6cdd4 Removed unnecessary nullptr check on DestNavMesh which is triggering PVS for some old code
[FYI] Mieszko.Zielinski, Aris.Theophanidis

#ROBOMERGE-AUTHOR: luciano.ferraro
#ROBOMERGE-SOURCE: CL 18285166 via CL 18285174 via CL 18285183 via CL 18286627 via CL 18286686
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v895-18170469)

[CL 18286715 by luciano ferraro in ue5-release-engine-test branch]
2021-11-24 14:11:25 -05:00