Commit Graph

193 Commits

Author SHA1 Message Date
aris theophanidis
0cbb215c7d [Navmesh] Tile generation debug improvements:
- addition of an options to skip contour simplification and display raw contours;
- addition of text labels to FRecastInternalDebugData;
- addition of indexes and coordinates to contour debug edges, allowing to identify them individually.
#rb mikko.mononen

[CL 29994972 by aris theophanidis in ue5-main branch]
2023-11-29 14:14:09 -05:00
aris theophanidis
a66d4fcdc5 [Navmesh] Raw contour improvements.
Allow merging the first contour points with the next and the last to remove differences with contours from other regions.
When walking contours get max of neighbors height.
#rb mikko.mononen

[CL 29961180 by aris theophanidis in ue5-main branch]
2023-11-28 11:16:48 -05:00
aris theophanidis
9f83fd9705 [Navmesh] Fix crash in DetourTileCacheBuilder canRemoveVertex.
#rb mikko.mononen

[CL 29961108 by aris theophanidis in ue5-main branch]
2023-11-28 11:14:08 -05:00
aris theophanidis
ba058040a8 Tesselate between regions to improve navmesh height precision.
#rb mikko.mononen

[CL 29961086 by aris theophanidis in ue5-main branch]
2023-11-28 11:12:40 -05:00
aris theophanidis
3d14457d2e [Navmesh] Addition of a MaxVerticalMergeError and a SimplificationElevationRatio to ARecastNavMesh to allow navmesh to adapt more precisely to vertical collision variances.
Fix navmesh sinking too far below surfaces causing navigation issues.
#rb Mikko.Mononen

[CL 29018856 by aris theophanidis in ue5-main branch]
2023-10-23 11:53:06 -04:00
aris theophanidis
44491348be Fix navmesh being generated a locations too steep and above the step height threshold.
Addition of LedgeFilterMode on RecastNavMesh to select the desired ledge slope filter mode.
Addition of a new filter mode that takes into acount the maximum walkable slope when filtering voxels.
#rb Robert.Seiver
#rb Frederic.Doll

[CL 28514590 by aris theophanidis in ue5-main branch]
2023-10-05 16:19:31 -04:00
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