Commit Graph

219 Commits

Author SHA1 Message Date
aris theophanidis
f87be6a13e [NavMesh] Fix tile portals not connecting caused by picking opposite portal direction (on an edge above or below) when building mesh adjacency.
This fixes issues seen in stairs where the stair corridor can be blocked by a hard edges when edges between layers do not match perfectly.
#rb mikko.mononen

[CL 33184707 by aris theophanidis in ue5-main branch]
2024-04-23 19:13:50 -04:00
aris theophanidis
65134cfdd5 [NavMesh] Removed MaxVerticalMergeError and instead prevent point merging when adding raw contour points if simplificationElevationRatio is being used.
#rb mikko.mononen

[CL 32872748 by aris theophanidis in ue5-main branch]
2024-04-11 02:03:16 -04:00
a-canary
c2b6ea65e6 PR #11558: Fixed RecastNavMeshGenerator to use TotalNavBounds when IsValid is 'true'
#rb Aris.Theophanidis
#jira UE-208339

[CL 32596594 by a-canary in ue5-main branch]
2024-03-28 17:48:04 -04:00
yoan stamant
73e3be5b16 Added unsafe type cast as warnings in AI related plugins/modules: StateTree, Mass, SmartObject. NavigationSystem, and ZoneGraph (partial)
#rb Mieszko.Zielinski, mikko.mononen

[CL 32398227 by yoan stamant in ue5-main branch]
2024-03-21 09:44:11 -04:00
aris theophanidis
8315806359 [Navmesh] Added more information to the error message and warning messages related to the tile limits.
Added more information when reporting the error message related to the TileNumberHardLimit.
Added more information when reporting the warning message related to the tile pool size.
#rb Maxime.Mercier

[CL 31841210 by aris theophanidis in ue5-main branch]
2024-02-27 10:44:10 -05:00
jacob wang
13616d112e Fix for InstanceStaticMeshComp with odd numbers of negated scale axis won't generate navmesh correctly.
Added the missing flipping indices step where the vertices of ISMComp are converted to Recast Space.

#jira UE-161139
#rb Aris.Theophanidis, Yoan.StAmant, Maxime.Mercier

[CL 31816533 by jacob wang in ue5-main branch]
2024-02-26 16:21:27 -05:00
jacob wang
18e821f5c5 Fix for InstanceStaticMeshComp with odd numbers of negated scale axis won't generate navmesh correctly.
Added the missing flipping indices step where the vertices of ISMComp are converted to Recast Space.

#jira UE-161139
#rb Aris.Theophanidis, Yoan.StAmant, Maxime.Mercier

[CL 31815521 by jacob wang in ue5-main branch]
2024-02-26 15:49:35 -05:00
steve robb
f8d47335a4 Replaced RemoveAt(N, 1, EAllowShrinking::*) with RemoveAt(N, EAllowShrinking::*).
[CL 31626444 by steve robb in ue5-main branch]
2024-02-19 16:51:58 -05:00
vincent robert
c1896a41bd Make consistent API by using GetX, SetX, GetP and SetP for physics particles
#jira UE-202397, PLAY-14685
#rb chris.caulfield, alex.mcadams, cedric.caillaud

[CL 31383921 by vincent robert in ue5-main branch]
2024-02-12 11:12:22 -05:00
steve robb
f43fc1d782 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30894388 by steve robb in ue5-main branch]
2024-01-25 14:09:12 -05:00
steve robb
104c0f2416 Fixed up more bool-taking calls to take EAllowShrinking instead.
[CL 30806200 by steve robb in ue5-main branch]
2024-01-23 11:07:28 -05:00
steve robb
f029468598 Fixed up a lot of bool-taking container resize functions to take EAllowShrinking instead.
[CL 30729174 by steve robb in ue5-main branch]
2024-01-19 16:41:35 -05:00
aris theophanidis
059927f853 [Navmesh] Optimizations when marking dirty tiles
Extracted finding the seeds and building sub areas to do it once for all NavData
ActiveTiles now use a set instead of an array
When using active tiles, don't try to mark dirtytiles if there is no ActiveTiles
Fixed warning message for oversized dirtyarea to use the AdjustedAreaSize
Addition of profile tags
#rb Mieszko.Zielinski

[CL 30573089 by aris theophanidis in ue5-main branch]
2024-01-11 13:49:14 -05:00
aris theophanidis
0072fb1325 Second part to fixing DynamicModifierOnly navmesh missing tiles when using nav modifiers.
Don't add an unused area modifier to ANavModifierVolume when using navmesh resolution.
When adding dirty areas make sure to prevent bRebuildGeometry for game world static navmeshes.
#rb mikko.mononen

[CL 30380468 by aris theophanidis in ue5-main branch]
2023-12-18 13:53:05 -05:00
jonathan bard
85278e1fb3 Visual logger improvements :
* Added sphere visual logs
* Added "wire" variant of various visual logs (box, OO box, cone, cylinder, capsule, sphere)
* Added blueprint versions of most visual logs (box, OO box, cone, cylinder, capsule, sphere, arrow, circle)
* Take into account the log's color's alpha value when drawing visual logs (multiplied by the scene proxy's own alpha), except for text, as is tends to become unreadable
* Fixed oriented box debug renders, which didn't support rotations appropriately (they wouldn't match the wireframe version)
* Fixed cylinder debug renders which were always vertical (!)
* Skip visual logs with empty text in the visual logger window's tooltip

Misc :
* Deprecated the awful overload-based FVisualLogger::GeometryShapeLogf / FVisualLogEntry::AddElement API
#rb Yoan.StAmant
#tests editor

[CL 30047522 by jonathan bard in ue5-main branch]
2023-12-01 13:48:31 -05:00
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
4e60ce6adb Rollback recently added ensures, they get triggered by preexisting conditions that needs investigation.
#rb Yoan.StAmant

[CL 29753951 by aris theophanidis in ue5-main branch]
2023-11-15 13:59:05 -05:00
aris theophanidis
877551e4d3 Navmesh resolution from modifiers is now correctly read when used with in async tile generation combined with lazy modifier gathering.
#rb Yoan.StAmant
#tests Tested in PIE and cook

[CL 29752057 by aris theophanidis in ue5-main branch]
2023-11-15 13:10:16 -05:00
aris theophanidis
dccd3d541d CIS fix
#rb trivial

[CL 29255245 by aris theophanidis in ue5-main branch]
2023-10-30 18:35:25 -04:00
aris theophanidis
84e7e976c1 [Navigation] Optimization to RemoveTiles and addition of profile tags to UpdateActiveTiles()
#rb Yoan.StAmant

[CL 29252623 by aris theophanidis in ue5-main branch]
2023-10-30 17:51:48 -04:00
aris theophanidis
b9841144b8 [Navigation] Using VeryVerbose verbosity, LogNavigationDirtyArea now logs purple boxes showing dirty areas that will dirty tiles.
#rb Yoan.StAmant

[CL 29151709 by aris theophanidis in ue5-main branch]
2023-10-26 17:40:07 -04:00
ryan gerleve
b4d090d05d Improve memory debugging with additional LLM tags.
#rb Aris.Theophanidis, jonathan.bard, julien.lheureux, matt.harris

[CL 29102830 by ryan gerleve in ue5-main branch]
2023-10-25 17:03:12 -04: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
stephen holmes
ff47299444 Follow up to [at]27912040 . Designed to help track down issues that are being caused by invalid bounds being passed in to FRcTileBox.
[REVIEW]

[CL 27965574 by stephen holmes in ue5-main branch]
2023-09-18 13:37:01 -04:00