Commit Graph

389 Commits

Author SHA1 Message Date
rveilleuxBHVR
f88852864c PR #9020: Fixed potential crash in ARecastNavMesh::InvalidateAffectedPaths (Contributed by rveilleuxBHVR)
Added same pattern to ANavigationData::PurgeUnusedPaths

#jira UE-147364
#rb Aris.Theophanidis, Yoan.StAmant
#preflight 62ab42d8e9031caf98ab609c

[CL 20688350 by rveilleuxBHVR in ue5-main branch]
2022-06-16 11:59:46 -04:00
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
Aris Theophanidis
21a0382f10 Fix CHECK_PUREVIRTUALS build error (AbstractNavData)
#rb Mieszko.Zielinski
#fyi Mikko.Mononen
#jira UE-155723
#preflight 629a2bc2b4282076941b6262

[CL 20487574 by Aris Theophanidis in ue5-main branch]
2022-06-03 11:56:36 -04:00
Aris Theophanidis
cd25636c50 [Navmesh] Fix crash when using WP static navmesh
#rb Mieszko.Zielinski
#jira none
#preflight 629a0c352a610ccde505610e

[CL 20485445 by Aris Theophanidis in ue5-main branch]
2022-06-03 09:40:09 -04:00
mikko mononen
f9c6bd4d5a RecastNavmesh: Added FindOverlappingEdges() method to get wall edges that intersect a convex polygon.
#jira none
#rb Mieszko.Zielinski
#preflight 6298763c216be32a762b189b

[CL 20466967 by mikko mononen in ue5-main branch]
2022-06-02 04:51:17 -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
483d0aea71 [Navmesh] Fix check triggering in ARecastNavMesh::GetActiveTiles
#rb Mieszko.Zielinski
#jira none
#rnx
#preflight 628d31b3af76b78af54c36f1

[CL 20354548 by Aris Theophanidis in ue5-main branch]
2022-05-24 15:59:37 -04:00
Jeremy Moore
ff967b1163 Remove PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY and only use PRIMITIVE_SCENE_DATA_FLAG_OUTPUT_VELOCITY.
Tidy up use of FPrimitiveSceneProxy velocity getters.
Now DrawsVelocity() is only for velocity relevance.
And HasDynamicTransform() is for determining if we need to store previous transform state.
VSM caching was using PRIMITIVE_SCENE_DATA_FLAG_DRAWS_VELOCITY so replaced that with PRIMITIVE_SCENE_DATA_FLAG_SHOULD_CACHE_SHADOW which should use the old behavior and can be tweaked in future using ShouldCacheShadow().

A common pattern for determining whether to output velocity now is to check if a previous transform exists, and to OR in AlwaysHasVelocity().
I found some proxy types that don't check for previous transform.
Also I found that the debug physics aggregate types *never* check for previous transform.
These are pre-existing potential bugs for fixing in another pass.

Also I found some proxies that don't currently fill out velocity relevance.
These are pre-existing potential bugs for fixing in another pass.

#preflight 62863f789016c6dd897f1cd2
#fyi andrew.lauritzen

[CL 20279797 by Jeremy Moore in ue5-main branch]
2022-05-19 10:08:15 -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
9dffa094ea [Navmesh] Fix issue with HISM not modifying a dynamic navmesh when there is no instance on component register and instances are added later on.
#jira UE-151022
#rb Maxime.Mercier
#preflight 627a72f3bd643341fef8a9cd

[CL 20122977 by Aris Theophanidis in ue5-main branch]
2022-05-10 10:34:14 -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
4d2020b091 Extract custom navlink bounds computation in NavigationSystem custom link registration
[REVIEW] 20012383
#rb aris.theophanidis, guillaume.guay

#ROBOMERGE-AUTHOR: frederic.doll
#ROBOMERGE-SOURCE: CL 20042854 via CL 20042872 via CL 20042879 via CL 20042887
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v943-19904690)

[CL 20044836 by frederic doll in ue5-main branch]
2022-05-04 14:05:55 -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
693bf3bed5 Bring back deprecated function with blueprint deprecation metadata to allow users to update.
#rb Yoan.StAmant
#jira none
#preflight 626972d5b710a00f18bda39e

[CL 19942821 by Aris Theophanidis in ue5-main branch]
2022-04-27 13:31:38 -04:00
Aris Theophanidis
670a1c58e5 Remove some deprecated methods and members in navigation
#rb Mieszko.Zielinski
#jira none
#preflight 62683700dd35c0d6cab70fca

[CL 19926513 by Aris Theophanidis in ue5-main branch]
2022-04-26 15:18:23 -04:00
Aris Theophanidis
cb1a4ec39f [Navmesh] Increase streaming radius by the size of the largest supported agent
#rb JeanFrancois.Dube
#rb Yoan.StAmant
#jira none
#preflight 6268139c853fdb6fddbef5e5

[CL 19923918 by Aris Theophanidis in ue5-main branch]
2022-04-26 13:24:13 -04:00
danny couture
10f1c7650b Add missing Insight trace on mesh card and navcollision builds
#rnx
#rb Francis.Hurteau
#preflight 62634fdbbc24759dc75ed518

[CL 19881224 by danny couture in ue5-main branch]
2022-04-22 21:18:05 -04:00
stefan-zimecki
cd813f6703 RecastNavMesh: Fixed cell size clamping based on issue reported via github PR.
PR #8899: [Bugfix][Recast] Fixed cell size adjustment in RecastNavMesh (Contributed by stefan-zimecki)

#jira UE-142756
#rb Mieszko.Zielinski
#preflight 6262544cd929bc34a31586f6

[CL 19861957 by stefan-zimecki in ue5-main branch]
2022-04-22 03:36:26 -04:00
Stephen Holmes
70dca410ee Fix for dtOffMeshSegmentConnection::height is never serialized. It turns out this variable is never used and the whole off mesh segment connection feature is unsuported and has known issues that were never solved at the conceptual level.
I've added comments to make it clearer this feature is unsupported and removed the height variable that isn't used to simplify and tidy up the existing code.

#jira UE-135621
#review-19809739
#rb  Mieszko.Zielinski
#preflight 625ee03d034d8924cdcc72f1

[CL 19826653 by Stephen Holmes in ue5-main branch]
2022-04-20 03:33:40 -04:00
Julien StJean
175d5f6ab4 Adding elements support for the marquee selection.
Added a new registry to let the objects provide how their elements should be selected when doing a selection by a volume such as a box or a frustum.
Added a some editor only functions for the marquee selection into the world interface.

#jira UETOOL-4797
#rb Brooke.Hubert
#preflight 624cb2dca64871f1a113bf2a

[CL 19727315 by Julien StJean in ue5-main branch]
2022-04-12 15:52:44 -04:00