Commit Graph

41 Commits

Author SHA1 Message Date
steve robb
14cab21e0c Deprecating ARRAY_COUNT and changing it to UE_ARRAY_COUNT.
Replicated from CL# 7924370.

#rb none


#ROBOMERGE-OWNER: steve.robb
#ROBOMERGE-AUTHOR: steve.robb
#ROBOMERGE-SOURCE: CL 9279060 via CL 9279063
#ROBOMERGE-BOT: (v443-9013191)

[CL 9279836 by steve robb in Main branch]
2019-09-28 08:19:35 -04:00
yoan stamant
f3717d0e9b RecastNavMeshGenerator: Reworked fix from CL 7419221 to not mark NavBounds dirty for newly created navmesh when active tiles generation is enabled
in the navigation sytem without setting flag bRestrictBuildingToActiveTiles yet. This is required for the initial virtual call to RestrictBuildingToActiveTiles to perform the ActiveTiles initialization.

#rnx
[at]mieszko.zielinski
#rb mieszko.zielinski


#ROBOMERGE-SOURCE: CL 8548670 via CL 8555979
#ROBOMERGE-BOT: (v406-8472469)

[CL 8556169 by yoan stamant in Main branch]
2019-09-06 15:27:08 -04:00
mieszko zielinski
e3278597a5 Added octree debug drawing to AthenaNavMesh
#rb none


#ROBOMERGE-SOURCE: CL 8382710 via CL 8382912
#ROBOMERGE-BOT: (v403-8382528)

[CL 8382916 by mieszko zielinski in Main branch]
2019-08-30 08:50:11 -04:00
mieszko zielinski
fb13d32432 Removed PRAGMA_DISABLE_OPTIMIZATION left behind accidentally
#rb none


#ROBOMERGE-SOURCE: CL 8154701 via CL 8154703 via CL 8154820
#ROBOMERGE-BOT: (v401-8057353)

[CL 8161947 by mieszko zielinski in Main branch]
2019-08-21 09:54:56 -04:00
mieszko zielinski
642f7dc20a Added an option to RecastNavMeshGenerator that makes sorting of tiles to be generated optional.
#rb Yoan.StAmant
Yoan.StAmant, Maxime.Mercier


#ROBOMERGE-SOURCE: CL 8154693 via CL 8154694 via CL 8154817
#ROBOMERGE-BOT: (v401-8057353)

[CL 8161935 by mieszko zielinski in Main branch]
2019-08-21 09:54:53 -04:00
guillaume guay
45ca026404 Partial rollback of CL6604191.
RecastNavMeshGenerator initialization should be called right after object construction to ensure virtual methods are properly called and derived classes are fully constructed before rebuild navigation mesh.

#rnx
#rb yoan.stamant
[fyi] [at]Mieszko.Zielinski


#ROBOMERGE-SOURCE: CL 7981977 via CL 7996225
#ROBOMERGE-BOT: (v396-7974030)

[CL 7996495 by guillaume guay in Main branch]
2019-08-13 14:20:01 -04:00
Marc Audy
1c3be81dca Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7950634
#rb
#rnx

[CL 7950994 by Marc Audy in Dev-Framework branch]
2019-08-12 12:52:39 -04:00
Marc Audy
3d0b873e3f Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7712956
#rb
#rnx

[CL 7713270 by Marc Audy in Dev-Framework branch]
2019-08-04 15:53:40 -04:00
guillaume guay
a8821f80b4 - Added navigation system config 'bUseNavDataInAdditionalLevelWhenDuplicatedAgent". When set to TRUE, adding or streaming an additional level containing an already registered navigation data, it will unregister current one and register the new one;
- Added navigation system config 'bGenerateNavDataWhenNoCompatibleNavBound". When set to TRUE (default) it will still generate navigation data if any NavBoundVolume is compatible with its NavDataConfig, if false it gets rid of that navigation data;
- Make sure that when "bSpawnNavDataInNavBoundsLevel" is TRUE, it builds the navigation data in the first level containing a NavBoundVolume that actually supports this navigation data config (not any first one);
- Added virtual method on NavigateSystem "OnNavSystemOverriden" to give a chance to inspect previous NavigationSystem when getting overriden by a nav config override;
- Added some missing NavigationSystem clean up logic.

#tests client/server standalone Creative AI, Phoebe and regular + editor
#cr maxime.mercier
[FYI] mieszko.zielinski, stephen.holmes, yoan.stamant


#ROBOMERGE-OWNER: guillaume.guay
#ROBOMERGE-AUTHOR: guillaume.guay
#ROBOMERGE-SOURCE: CL 7679442 via CL 7679443 via CL 7688466
#ROBOMERGE-BOT: (v383-7686620)

[CL 7688470 by guillaume guay in Main branch]
2019-08-01 12:53:04 -04:00
yoan stamant
60770f6f4f RecastNavMeshGenerator: Fixed regression introduced by 6675381 by configuring flag bRestrictBuildingToActiveTiles before marking NavBounds dirty for newly created navmesh. This prevents the whole navmesh to be generated when using Navigation invokers.
#rnx
#jira UE-77357
#rb maxime.mercier
[FYI] mieszko.zielinski

#ROBOMERGE-SOURCE: CL 7419221 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v371-7306989)

[CL 7419246 by yoan stamant in Main branch]
2019-07-17 13:35:45 -04:00
Marc Audy
f3f7604cd4 Merge UE4/Main to Dev-Framework @ 7329145
#rb
#rnx

[CL 7415594 by Marc Audy in Dev-Framework branch]
2019-07-17 12:57:46 -04:00
Marc Audy
278eda75dd Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 7234503
#rb
#rnx

[CL 7263339 by Marc Audy in Dev-Framework branch]
2019-07-10 13:47:03 -04:00
mieszko zielinski
7c0bb2f243 Added functionality to RecastNavMesh that allows one to procedurally bulk-change navmesh generation properties
As part of the process I've deprecated essentially unused ARecastNavMesh.AgentMaxHeight and removed the code accessing it.

[at]Yoan.StAmant
#rb Yoan.StAmant


#ROBOMERGE-SOURCE: CL 7249093 via CL 7262675
#ROBOMERGE-BOT: (v369-7254125)

[CL 7262737 by mieszko zielinski in Main branch]
2019-07-10 13:40:01 -04:00
mieszko zielinski
084709fff1 Fixed StoreCollisionCache in RecastNavMeshGenerator.cpp to properly reset the array GeomExport.Data->CollisionData array.
It used to Reserve rather than Empty which in edge cases left the array at undesided state/size.

#jira UE-76279
Yoan.StAmant
#rb Yoan.StAmant

#ROBOMERGE-SOURCE: CL 7061952 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v367-6836689)

[CL 7061953 by mieszko zielinski in Main branch]
2019-06-18 04:42:34 -04:00
Yoan StAmant
534afb4738 Dynamic Obstacle support for Instanced Static Mesh or Hierarchical Instanced Static Mesh Component
FRecastTileGenerator & FRecastNavMeshGenerator
* Better support for transformation of per instance Convex shapes in MarkDynamicArea (replacing PartialTransformConvexHull)
* Added Per Instance modifier support in GrabDebugSnapshot for VisualLogger (both Geomerty export & AreaNavModifier)
* Added Per Instance modifier support in ExportNavigationData (both Geomerty export & AreaNavModifier)

FCompositeNavModifier
* Deprecated PerInstanceTransformDelegate code since it is unused and duplicated functionality handled by FNavigationRelevantData
* Added flag to mark as a PerInstance modifier

Fixed NavigationDataDump when default FBox is used (since GetVolume will be computed from uninitialized values)

#jira UE-71481
#review-6893930 @mieszko.zielinski
#rb mieszko.zielinski

[CL 6912667 by Yoan StAmant in Dev-Framework branch]
2019-06-10 12:57:10 -04:00
Mieszko Zielinski
564a8d1f3e Added a dedicated warning for when we attempt to creat a dtNavMesh instance with maxTiles == 0.
Also, made sure we release the faultu dtNavMesh instance if we're not going to use it.

#jira UE-71027
#review-6676106 @Yoan.StAmant
#rb Yoan.StAmant

[CL 6676722 by Mieszko Zielinski in Dev-Framework branch]
2019-05-30 12:22:17 -04:00
Mieszko Zielinski
31fa3c7421 Made sure we mark all the navigable space dirty after recreating dtNavMesh instance due to mismatching navmesh properties.
#jira UE-65963
#rb none

[CL 6675381 by Mieszko Zielinski in Dev-Framework branch]
2019-05-30 08:42:12 -04:00
Mieszko Zielinski
61f3b0d4d3 Added logging to the two cases that can make RecastNavMeshGenerator recreate the dtNavMesh instance (dumping the serialized one)
#rb none
#jira none

[CL 6651556 by Mieszko Zielinski in Dev-Framework branch]
2019-05-28 05:40:31 -04:00
Mieszko Zielinski
a1708e0630 Made NavModifierComponent work properly even if its owner's root component was marked as nav-irrelevant #UE4
While at it had to mess around with RegastNavMeshGenerator's initialization - the old way in some cases resulted in overriding once configured properties or needless dtNavMesh instance recreation.
In the process I've removed the Generator->Init() call from ARecastNavMesh::ConditionalConstructGenerator since now we call Init as part of generator's construction.

#jira UE-74448
#review-6533131 Yoan.StAmant
#rb Yoan.StAmant

[CL 6604191 by Mieszko Zielinski in Dev-Framework branch]
2019-05-22 06:50:15 -04:00
Marc Audy
502f469036 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5503639
#rb
#rnx

[CL 5504188 by Marc Audy in Dev-Framework branch]
2019-03-22 14:59:27 -04:00
Marc Audy
82e0666ce7 Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5450266
#rb
#rnx

[CL 5459329 by Marc Audy in Dev-Framework branch]
2019-03-19 16:16:11 -04:00
Ben Zeigler
1ce734caf6 Set up ReferenceNames for most runtime FGCObject classes, as these now properly show up in obj refs
#rb marc.audy

[CL 5365250 by Ben Zeigler in Dev-Framework branch]
2019-03-11 19:48:28 -04:00
Marc Audy
6c6b055f0e Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 5271686
#rb
#rnx

[CL 5282523 by Marc Audy in Dev-Framework branch]
2019-03-04 10:23:33 -05:00
Robert Manuszewski
cfa01c09c7 Merging //UE4/Dev-Main to Dev-Core (//UE4/Dev-Core)
#rb none

[CL 4731457 by Robert Manuszewski in Dev-Core branch]
2019-01-16 04:23:12 -05:00
Marc Audy
ab108c215e Copying to Dev-Main @ CL# 4688301
#rb
#rnx

[CL 4688816 by Marc Audy in Main branch]
2019-01-08 11:38:48 -05:00