Commit Graph

210 Commits

Author SHA1 Message Date
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
yoan stamant
9d4992961c [Navigation] Added bounds to NavCollision since geometry can differ from StaticMesh
- Bumped the DDC version of the NavCollision
- Updated StaticMeshComponent to return bounds from the NavCollision when possible
- Fixed InstancedStaticMeshComponent not using the additional geometry of the NavCollision when exporting the custom navigable geomerty
- Updated InstancedStaticMeshComponent to compute bounds using the NavCollision for GetNavigationBounds, PartialNavigationUpdate and when gathering per instance transforms for navigation
- Updated UHierarchicalInstancedStaticMeshComponent to use bounds from the NavCollision for PartialNavigationUpdate
#jira UE-186525
#rb aris.theophanidis

[CL 27753562 by yoan stamant in ue5-main branch]
2023-09-11 10:47:11 -04:00
aris theophanidis
2992b8d39c Fix usage of SHOW_NAV_EXPORT_PREVIEW define.
#rb Yoan.StAmant

[CL 27457956 by aris theophanidis in ue5-main branch]
2023-08-29 14:35:11 -04:00
aris theophanidis
a4ed8604ca Improve FRecastNavMeshGenerator::MarkDirtyTiles speed by prefiltering dirty area bounds using the bounds of invokers seeds.
Also added some profile tags in MarkDirtyTiles.
#rb Yoan.StAmant

[CL 27049453 by aris theophanidis in ue5-main branch]
2023-08-11 18:04:18 -04:00
aris theophanidis
dfa8f060e7 Fixed navmesh dirty area logs to display bound sizes as indicated and Improved log readability.
#rb Yoan.StAmant

[CL 27002262 by aris theophanidis in ue5-main branch]
2023-08-10 14:41:17 -04:00
yoan stamant
b6f974cc30 [NavigationSystem] replaced requirement of PrimitiveComponent by INavRelevantInterface + UObject.
Added dedicated delegates for UObject based registration and update.
#rb maxime.mercier
#rb aris.theophanidis
#jira UE-186525

[CL 26981216 by yoan stamant in ue5-main branch]
2023-08-09 20:35:21 -04:00
Brice Criswell
8b12100fca Fix no-Recast builds [Github Pull Request: 9579]
#jira UE-164492
#rb Maxime.Mercier, Aris.Theophanidis

[CL 26783940 by Brice Criswell in ue5-main branch]
2023-08-02 15:20:28 -04:00
michael forot
6e4094da3e Chaos implicit object ref counted ptr + union simple shapes (WIP)
#rb chris.caulfield

[CL 26722951 by michael forot in ue5-main branch]
2023-07-31 17:46:47 -04:00
aris theophanidis
4501f70a0d [Navmesh] Validating AgentMaxStepHeight in relation to AgentMaxSlope and CellSize
#rb Mikko.Mononen
#rb Mieszko.Zielinski

[CL 26408076 by aris theophanidis in ue5-main branch]
2023-07-17 11:16:57 -04:00
james keeling
0eac10ee3f [Navmesh] Cancel async building tasks when navmesh generator is destroyed to prevent leaking any build tasks.
#jira UE-189969
#rb mieszko.zielinski

[CL 26347050 by james keeling in ue5-main branch]
2023-06-30 12:39:09 -04:00