Commit Graph

187 Commits

Author SHA1 Message Date
aris theophanidis
fe41c35b2b Navmesh queries: clamp extents to a minimum epsilon value to handle extents with components set to 0.
#rb Mikko.Mononen

[CL 27671064 by aris theophanidis in ue5-main branch]
2023-09-07 09:33:09 -04:00
aris theophanidis
f0ec5e2d0c Allow navmesh queries with 0 extent to succeed when using findNearestPoly2D.
#rb Mikko.Mononen

[CL 27634097 by aris theophanidis in ue5-main branch]
2023-09-06 10:26:39 -04:00
aris theophanidis
292bbed15f Allow navmesh queries with 0 extent to succeed since that was the behavior before the change to check the extent precisely.
#rb none

[CL 27286596 by aris theophanidis in ue5-main branch]
2023-08-22 16:56:45 -04:00
aris theophanidis
0305264086 Properly checking for extents in navmesh findNearestPoly queries.
#rb Mikko.Mononen
#rb Frederic.Doll

[CL 27269167 by aris theophanidis in ue5-main branch]
2023-08-22 09:34:25 -04:00
frederic doll
dbb5c46049 Fix spans being filtered out if they are over 0xffff verticaly
#rb aris.theophanidis, mikko.mononen

[CL 27030437 by frederic doll in ue5-main branch]
2023-08-11 11:43:37 -04:00
aris theophanidis
53369bd15c Fix navmesh rasterization issue when generating navmesh high above 0.
#rb Maxime.Mercier

[CL 26927771 by aris theophanidis in ue5-main branch]
2023-08-08 15:48:57 -04:00
henrik karlsson
5db685f97d [Engine]
* Moved dllexport from type to methods/staticvar in all Engine runtime code. This improves compile times, memory and performance in dll builds

[CL 26082269 by henrik karlsson in ue5-main branch]
2023-06-17 18:13:06 -04:00
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
kirill zorin
b6ee3a6c64 Fix UE_LOG callsites that have format string-related UB
#rb trivial
#preflight 647107780a6634dbb236a0a6

[CL 25651638 by kirill zorin in ue5-main branch]
2023-05-26 15:52:39 -04:00
aris theophanidis
4eea79ff2e [Navmesh] Increase the height where the navmesh can generate.
Added RC_INCREASED_SPAN_HEIGHT_LIMIT allowing to revert to previous behavior.
#rb Mieszko.Zielinski
#preflight 64662cf9ec5109088b25c85c

[CL 25529455 by aris theophanidis in ue5-main branch]
2023-05-18 13:52:18 -04:00
stephen holmes
786295dcb5 NavLinkId deprecation moved to 5.3 from 5.4
[REVIEW] trivial
#preflight 645b550c4c3ec54e6eaafa30

[CL 25401802 by stephen holmes in ue5-main branch]
2023-05-10 06:54:14 -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
688bb11760 Fix navmesh holes on steep slope caused by a rasterization issue (this also fixes navmesh issues in stairs).
Also added ai.nav.EnableSpanHeightRasterizationFix console command to disable the fix if needed.
#jira UE-164886
#rb Yoan.StAmant
#rb Mikko.Mononen
#preflight 643d75f9211b661dc4f72f44

[CL 25085242 by aris theophanidis in ue5-main branch]
2023-04-18 09:39:49 -04: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
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
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
henrik karlsson
5b96352978 Fixes for c++ headerunits/modules.
* Adding forward declarations
* Adding "inline" in front of const/constexpr variables in headers
* Adding includes
* A few moves of ctor/dtor to cpp file

#preflight 6372b3ac0c74adb48b49f313
#rb none

[CL 23130896 by henrik karlsson in ue5-main branch]
2022-11-14 19:59:41 -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
Stephen Holmes
aa8997ef01 AI Truncation warning fixes.
This is the majority of the fixes however a few systems have been left for individual CLs.

#jira UE-166285
#preflight 63616567ce676ae868034ab0
#review-22869010

[CL 22889316 by Stephen Holmes in ue5-main branch]
2022-11-01 15:32:27 -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
mikko mononen
b61e12b277 Nav Corridor: fix nav corridor or high cost neighbour polygons
- fixed DetourNavMeshQuery storeWallSegment() returning some segments in reverse
- fixed degenerate cases in polygon clipping
- change corridor expansion to take fixed area cost into account to not expand to hard to reach areas

#rb Mieszko.Zielinski
#preflight 6349200d3c37eed48151e71d

[CL 22539724 by mikko mononen in ue5-main branch]
2022-10-14 19:06:35 -04:00