Commit Graph

205 Commits

Author SHA1 Message Date
brandon dawson
0d7f00f805 Expose updating heightmap collision data at runtime by moving the neccessary components of CookCollisionData into a runtime accessbile call.
[REVIEW] [at]jonathan.bard
#preflight 6373932e232e3d12cbb5b511

[CL 23148125 by brandon dawson in ue5-main branch]
2022-11-15 19:46:25 -05:00
henrik karlsson
fa90b399a4 Added includes for future change. This changelist only contains added #include and a couple of empty placeholder files
Tested compiling fortnite, unrealeditor, lyra, qagame with non-unity/pch

#preflight 63635997876630122adeab9f
#rb none

[CL 22958990 by henrik karlsson in ue5-main branch]
2022-11-03 14:18:47 -04:00
henrik karlsson
4a5e13525d Fixed non-unity non-pch compile errors
#preflight skipped
#rb none

[CL 22788359 by henrik karlsson in ue5-main branch]
2022-10-26 16:22:34 -04:00
henrik karlsson
b5b86c796c This change is a strategical submit for a coming change that removes lots of includes in headers that are included by many files. This change contains adding of includes in files that previously got those includes transitively from other inclkudes
#preflight 6355d4940313c24974b2107b
#rb none

[CL 22783162 by henrik karlsson in ue5-main branch]
2022-10-26 12:57:32 -04:00
benn gallagher
cf85c1ce13 Chaos - fix material resolve for landscapes with a simple collision mip. Previously we stuck to one material for simple heightfields instead of pulling the full materials from the dominant layer data
#rb Jonathan.Bard
#jira UE-164610
#preflight 634807e4f93be0f634b9b4f7
#lockdown michael.lentine

[CL 22511509 by benn gallagher in ue5-main branch]
2022-10-13 16:33:22 -04:00
jonathan bard
4d97da118a Fixed issues with landscape collision visualization :
* Crash when using SimpleMipCollisionLevel > 0
* Collision mesh not refreshing when regenerating collisions (e.g. when changing SimpleMipCollisionLevel in the details panel)
* Use current shading model for rendering the collision mesh (rather than forcing SM6.0)
* Support for multi-view renders

#rb benn.gallagher, luc.eygasier
#jira UE-165955
#rnx
#preflight 633dd52b390c8b9d3f23dc31

[CL 22388894 by jonathan bard in ue5-main branch]
2022-10-06 20:12:27 -04:00
christian savoie
903983bb40 Only refresh lanscape scene proxies if CVarLandscapeShowCollisionMesh has actually changed from the previous value. This prevents a 450ms stall when exiting menu in firing range map.
#test Tested that changing the cvar still triggers the refresh
#rb miles.kaech
[FYI] Nickolas.Drake

[CL 22064694 by christian savoie in ue5-main branch]
2022-09-16 21:01:26 -04:00
benn gallagher
711a39ab41 Separated arm/x64 DDC keys for physics geometry on static meshes and landscape heightfields
#rb Fabian.Giesen
#jira none
#preflight 631b2a65f448dc6e58e628fa

[CL 21986879 by benn gallagher in ue5-main branch]
2022-09-13 13:26:34 -04:00
Aris Theophanidis
312dced957 [Navmesh] Fix navmesh generation not working for ULandscapeHeightfieldCollisionComponent landscape in Lazy gathering mode.
The sample cache was not reset in RecreateCollision().
#jira UE-135209
#rb Mieszko.Zielinski
#preflight 631748dbf448dc6e58319174

[CL 21815612 by Aris Theophanidis in ue5-main branch]
2022-09-06 09:32:45 -04:00
don boogert
72f9932a3d Landscape: Allow painting on the edges of landscape components
#jira UE-140539
#rb jonathan.bard
#preflight 62d97f00d76ea4b503cc434f

[CL 21211009 by don boogert in ue5-main branch]
2022-07-21 17:56:46 -04:00
Nickolas Drake
37c4c33f0a Landscape Collision View: Remove dependency on RenderComponent when creating heightfield scene proxy.
#rb jonathan.bard
#jira none
#preflight 62d817f34b6d775f5fa81dff
#robomerge FNMain

[CL 21180138 by Nickolas Drake in ue5-main branch]
2022-07-20 11:05:38 -04:00
jonathan bard
3fdfed21af Fixed crash when lazy object ptr for render component is invalid when landscape collision scene proxy is created
#rb enrique.garciaamezcu
[FYI] nickolas.drake
#rnx

#ROBOMERGE-OWNER: jonathan.bard
#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-COMMAND: _robomerge[bot4] UE5-MAIN
#ROBOMERGE-SOURCE: CL 21161099 via CL 21161582 via CL 21166421
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v972-20964824)

[CL 21167587 by jonathan bard in ue5-main branch]
2022-07-19 17:34:31 -04:00
Nickolas Drake
3a9060e750 Landscape Collision View: Support collision view mode for landscape heightfield collision components
#jira UE-149029
#rb
#preflight 62cd7fd34c0210ca3d050a94

[CL 21090294 by Nickolas Drake in ue5-main branch]
2022-07-14 09:51:26 -04:00
JeanFrancois Dube
3d15569efb Landscape: fix relative location mismatch detection.
#jira UE-153865
#rb richard.malo
#preflight none
#rnx

[CL 20593700 by JeanFrancois Dube in ue5-main branch]
2022-06-10 08:14:10 -04:00
jonathan bard
0dbd615c25 Final cleanup of PhysX stuff in landscape code
#rb benn.gallagher
#jira none
#preflight 629f631858032863438c5a2b

[CL 20553740 by jonathan bard in ue5-main branch]
2022-06-08 05:37:00 -04:00
Benn Gallagher
8757cb3641 Physics interface cleanup.
* Removed deprecated or dead code paths
* Simplified build system setup for physics support
* Deprecated build system flags and unsupported macros

#jira none
#rb Chris.Caulfield, Kriss.Gossart
#preflight 62963ec0fe779f23c8ea0c5e

[CL 20450744 by Benn Gallagher in ue5-main branch]
2022-06-01 06:59:18 -04:00
Rolando Caloca
1d2beccda3 Deprecated ChaosVersionString for ChaosVersionGUID to avoid a memory allocation per DLL (Found during Insights trace analysis)
#rb Ian.Fox, Benn.Gallagher
#jira none
#preflight 628ced3bc22f607f305c54db

[CL 20348406 by Rolando Caloca in ue5-main branch]
2022-05-24 10:59:08 -04:00
jaco vandyk
4d43a91de2 UE-120740: Crash in async trace related to landscape data lifetime
Fix from UDN report

#rb Benn.Gallagher
#fyi Michael.Lentine
#jira UE-120740

#review-20260160 @Benn.Gallagher
#preflight 628776b78828ea88c84c217e

[CL 20292656 by jaco vandyk in ue5-main branch]
2022-05-20 07:22:46 -04:00
danny couture
22154ccf95 Always skip landscape collision cooking since its a lot faster to compute than query DDC
- 30.1s to 500ms to process 450 heightfield during map load of Artemis_Terrain

#rnx
#rb Jeremy.Moore
#preflight 62682afd430b9997ebe60b6a

[CL 19924697 by danny couture in ue5-main branch]
2022-04-26 13:57:55 -04:00
Julien StJean
175d5f6ab4 Adding elements support for the marquee selection.
Added a new registry to let the objects provide how their elements should be selected when doing a selection by a volume such as a box or a frustum.
Added a some editor only functions for the marquee selection into the world interface.

#jira UETOOL-4797
#rb Brooke.Hubert
#preflight 624cb2dca64871f1a113bf2a

[CL 19727315 by Julien StJean in ue5-main branch]
2022-04-12 15:52:44 -04:00
michael balzer
a942806ea1 Landscape: Change LogLandscape default verbosity from Warning to Log
#preflight 623e4e9f6d39f6b5a0622c12
#rb jonathan.bard

[CL 19542148 by michael balzer in ue5-main branch]
2022-03-29 10:50:47 -04:00
jonathan bard
96026e2cc8 Properly account for landscape collision components in memory reports
#preflight 62338731e12e0da4a5314977
#rb benn.gallagher

#ROBOMERGE-AUTHOR: jonathan.bard
#ROBOMERGE-SOURCE: CL 19500734 via CL 19500746 via CL 19504705 via CL 19504820
#ROBOMERGE-BOT: UE5 (Release-Engine-Staging -> Main) (v936-19480137)

[CL 19511227 by jonathan bard in ue5-main branch]
2022-03-25 09:13:19 -04:00
Max Whitehead
6596666da6 Make ScaledImplicit constructor require shared ptr for ref count, to reduce risk of copied implicit dropping shared pointer.
Fix copy functions not copying shared ptr, fixing incorrect lifetime of shared geometry.

#jira UE-145366
#preflight 622a867032749f363c5d1ad4
#rb chris.caulfield

[CL 19346862 by Max Whitehead in ue5-main branch]
2022-03-10 20:49:43 -05:00
benn gallagher
f18da1b6cb Chaos: Fixed raycast and collision for negative scales on trimesh and heightfield
#rb Chris.Caulfield, Zhenglin.Geng
#jira UE-133194
#preflight 6203b468c61699ca2759afe7
#lockdown Michael.Lentine

#ROBOMERGE-AUTHOR: benn.gallagher
#ROBOMERGE-SOURCE: CL 18934602 in //UE5/Release-5.0/... via CL 18934673 via CL 18934744
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18934758 by benn gallagher in ue5-main branch]
2022-02-10 08:38:31 -05:00
max whitehead
7e3d99bdb4 Resubmit 18871012 with some additional changes:
Add operator!= to TSerializablePtr to fix crash in UpdateShapesFromGeoemtry.
Allocate shape world transform only when there is no relative transform on leaf, saves additional memory.

Original CL description:
Move FPerShapeData RelativeTransform and LeafGeometryPointer to derived class, only allocate when needed to save memory.
Change RelativeTransform to floats.

#rb chris.caulfield

#ROBOMERGE-OWNER: max.whitehead
#ROBOMERGE-AUTHOR: max.whitehead
#ROBOMERGE-SOURCE: CL 18904006 via CL 18904455 via CL 18904467 via CL 18918915 via CL 18919526
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18919558 by max whitehead in ue5-main branch]
2022-02-09 12:02:36 -05:00