Commit Graph

217 Commits

Author SHA1 Message Date
cedric caillaud
a59a81e2b9 Geometry collection : added support for ISMPools, it only works if an ISMPool actor is assigned to the GC instance
Limitations : Currently this requires the GC to be reset to recompute the list of instanciable meshes and their corresponding indices
Mitigation : this can be turned off using the following cvar : p.Chaos.GC.UseISMPool

#rb brice.criswell, Krzysztof.Narkowicz
#preflight 63519a8af92c325024c32137

[CL 22705192 by cedric caillaud in ue5-main branch]
2022-10-21 19:51:57 -04:00
cedric caillaud
97f3d8c718 Chaos : fix potential geometry collection replication crash
- Make sure CLustersToRep is reset when the physics state is destroyed
- Initialize the Physics proxy ReplicationMode when we create the proxy instead of during InitializeComponent ( because Destroy/Create physics state can be called after it )

#rb brice.criswell, michael.forot
#preflight 6350d4f82337adbf42b08788

[CL 22670734 by cedric caillaud in ue5-main branch]
2022-10-20 16:47:18 -04:00
cedric caillaud
f77439fae4 Chaos : remove the need to pass a parent for GC when adding particle to the island graph
This fixes crashes related  to GC replication where an island index inherited from a parent would remain set after the island has been removed

#rb chris.caulfield, brice.criswell, michael.forot
#preflight 6350824b8449f85a477815e4

[CL 22647574 by cedric caillaud in ue5-main branch]
2022-10-19 22:03:57 -04:00
cedric caillaud
7a43f6187a Chaos : temp fix for replication crash
- comment the disable of particles beyond the abandon level  on the server

#rb trivial
#jira
#preflight none

[CL 22647208 by cedric caillaud in ue5-main branch]
2022-10-19 21:51:21 -04:00
rob mclaughlin
09e5fd7ab6 Checks to avoid access to an empty InitialLevels array in GeometryCollectionComponent
Submitting on behalf of Enrique due to preflight not submitting

[FYI] cedric.caillaud, peter.knepley, andrew.firth, enrique.garciaamezcu
#preflight https://horde.devtools.epicgames.com/job/6340545a62762f4a1baa3d9f
Preflight fail due to unrelated WorldPartition issue

[CL 22412822 by rob mclaughlin in ue5-main branch]
2022-10-07 19:45:55 -04:00
james studdart
a2b98f1d31 Check to avoid access to an empty array.
[FYI] cedric.caillaud, peter.knepley, andrew.firth
#rb cedric.caillaud
#preflight 633ee67d7b2517bbaa0b4bcb

[CL 22391437 by james studdart in ue5-main branch]
2022-10-06 21:44:57 -04:00
cedric caillaud
c9b78adb96 Chaos : fix server crash when replicating geometry collections that are missing InitialLevel attribute
#rb trivial
#preflight 633dded6f171e4e68b3bf857

[CL 22387992 by cedric caillaud in ue5-main branch]
2022-10-06 19:49:04 -04:00
cedric caillaud
6248b01af9 Chaos : fix character movement interaction with geometry collections
- Because of a circular module dependency between Engine and GeometryCollectionEngine, we need to check the class using its name instead of using a cast
- this is a workaround that should be addressed oin the future
- it can be disabled using a cvar : p.CVarGeometryCollectionImpulseWorkAround

#rb benn.gallagher, chris.caulfield, brice.criswell
#jira none
#preflight 633739acb34118b9b4b8a351

[CL 22341267 by cedric caillaud in ue5-main branch]
2022-10-04 19:02:56 -04:00
cedric caillaud
5668f4984b Geometry collection : make sure replicated break do trigger client side break events
[FYI] brice.criswell, michael.forot
#jira none
#preflight 633b32e62a5690003a259086

[CL 22323417 by cedric caillaud in ue5-main branch]
2022-10-03 21:14:59 -04:00
cedric caillaud
3d8507b427 Geometry collection : fix bounds not being updated properly when scrubbing start time from caches in editor mode
#rb trivial
#jira none
#preflight 633b2722f513083ba3fd6ee7

[CL 22323355 by cedric caillaud in ue5-main branch]
2022-10-03 21:13:17 -04:00
jimmy andrews
9cd97b8d1e make bone colors always recompute on actor selection, to work around stale bone colors causing bones to appear selected when they are not.
+ fix FScopedColorEdit::Sanitize() clearing the bUpdated flag when nothing was sanitized.

#rb rinat.abdrashitov
#rb cedric.caillaud
#preflight 6335a1813041fbb566554beb

[CL 22262791 by jimmy andrews in ue5-main branch]
2022-09-29 23:42:41 -04:00
ryan hummer
8f1c149a68 [Backout] - CL22210368
#preflight 63344a591a232c6fbf9ad3bb

[FYI] cedric.caillaud
Original CL Desc
-----------------------------------------------------------------
Chaos : fix character movement interaction with geometry collections

#rb benn.gallagher, chris.caulfield, brice.criswell
#jira none
#preflight 63335015e11ae0b19c224cb4

[CL 22232349 by ryan hummer in ue5-main branch]
2022-09-28 17:59:03 -04:00
cedric caillaud
eb7fb75f68 Chaos : fix character movement interaction with geometry collections
#rb benn.gallagher, chris.caulfield, brice.criswell
#jira none
#preflight 63335015e11ae0b19c224cb4

[CL 22226851 by cedric caillaud in ue5-main branch]
2022-09-28 14:02:24 -04:00
marc audy
311f7464bf Updated ../Engine/Source/Runtime/... to inline gen.cpp files
Before:
3648 unity files
Total CPU Time: 47886.140625 s
Total time in Parallel executor: 498.81 seconds

After:
3548 unity files
Total CPU Time: 46643.828125 s
Total time in Parallel executor: 486.06 seconds

#jira
#preflight

[CL 22173263 by marc audy in ue5-main branch]
2022-09-24 13:57:58 -04:00
cedric caillaud
c1996c20c6 Chaos : Add GC component blue print functions
- CrumbleActiveClusters
- RemoveAllAnchors
- Also fixed a potential crash in fracture editor

#rb none
#preflight 632d013aa4769ad714d6cdc2

[CL 22173113 by cedric caillaud in ue5-main branch]
2022-09-24 13:28:05 -04:00
cedric caillaud
94d3ff5257 Fracture editor : better handling of existing vertex color with the bone color display option
- When ShowBoneColors option is off display vertex color

#rb jimmy.andrews
#jira UE-163379
#preflight 6329423fb40000c8f04f0dcb

[CL 22104713 by cedric caillaud in ue5-main branch]
2022-09-20 18:48:26 -04:00
cedric caillaud
7c7730284f Chaos geometry collection : add asset side ability to use size specific data and apply propgate to instance when placing it in a level
#rb brice.criswell
#jira none
#preflight 6324b5f88131e92d65f2132d

[CL 22064938 by cedric caillaud in ue5-main branch]
2022-09-16 21:25:31 -04:00
cedric caillaud
0991f3ab53 Chaos : fix damage threshold not being set from asset when adding it to a level ( got wrongly commented out with a previous CL )
#rb trivial
#jira none
#preflight none

[CL 22050251 by cedric caillaud in ue5-main branch]
2022-09-16 11:31:36 -04:00
cedric caillaud
b112fae3bd Chaos : Deprecate remove on fracture feature
- update headless chaos unit test

#jira none
#rb benn.gallagher, brice.criswell, chris.caulfield
#preflight 6322accc29254beccb14bbfe

[CL 22035762 by cedric caillaud in ue5-main branch]
2022-09-15 15:14:33 -04:00
cedric caillaud
a7f17d399a Chaos: replication imporvement
- Add a timer based hard snap for updating cluster position on the client
- Change remove on break to be replication aware to make sure server authoritative cluster cannot be broken by the client

#rb none
#preflight 63215a28b602881e8e03c4a6

[CL 22011198 by cedric caillaud in ue5-main branch]
2022-09-14 13:58:55 -04:00
jimmy andrews
bf1646ed4c make fracture editor more robust to invalid selections
#rb cedric.caillaud
#preflight 631b5b372b7fe03eb6faa73a

[CL 21924660 by jimmy andrews in ue5-main branch]
2022-09-09 14:15:27 -04:00
cedric caillaud
4d8371449d Chaos : geometry collection : fix removal logic for internal clusters
- better check for internal cluster parent and its state
- refactor logic for both remove on sleep and remove on break
- reverted previous fix that was not accounting for some of special cases ( CL 21715207 )

#rb none
#jira none
#preflight 6317ec50ab25bb91f5091cf9

[CL 21837890 by cedric caillaud in ue5-main branch]
2022-09-06 21:29:52 -04:00
cedric caillaud
b316aac562 Chaos destruction : fix internal clusters remove on break behavior
- Unbroken children of internal clusters do not get removed on break anymore

#rb none
#jira none
#preflight 630eac57a416f6df25eabee0

[CL 21715207 by cedric caillaud in ue5-main branch]
2022-08-30 21:32:37 -04:00
cedric caillaud
b9ebee6662 Chaos : fix body instance warning for geomtry collection when calling SetSsimulatePhysics
- make sure we do not set the OwnerComponent before calling the body instance matching function

#rb none
#jira UE-154615
#preflight 63092788e41c77ba7a231746

[CL 21597917 by cedric caillaud in ue5-main branch]
2022-08-26 16:19:48 -04:00
cedric caillaud
7cb43e2d16 Chaos : break and shock damage propapgation
- add per component and geo collection asset damage propagation data
- store damage propapagtion info at the proxy level ( sim parameters )
- refactor clustering code to properly account for procxy suim parameters
- add shock propagation model complementary to the break propagation model

#rb none
#jira none
#fyi brice.criswell
#preflight 63053a185a5d4e46243141d9

[CL 21520742 by cedric caillaud in ue5-main branch]
2022-08-23 17:17:36 -04:00