Commit Graph

96 Commits

Author SHA1 Message Date
henrik karlsson
ed85af7728 Non unity/pch compile fixes
Cmdline: UnrealEditor Win64 debug -nodebuginfo -nolink -allcores -DisableUnity -CppStd=Cpp17 -allmodules -nopch

#rb none
#preflight skipped

[CL 22799084 by henrik karlsson in ue5-main branch]
2022-10-26 19:29:11 -04:00
cedric caillaud
dba9dd5ecb Chaos : Dataflow : add geometry collection asset specific nodes
#rb gustav.melich, brice.criswell
#preflight 6358159ce456a68082b43ba9

[CL 22798238 by cedric caillaud in ue5-main branch]
2022-10-26 19:04:47 -04:00
Jimmy Andrews
e648a4cb5e Improved user control and visibility into proximity and connection graph generation for fracture:
- Added a Proximity tool to Fracture Mode to visualize and change generation settings for GeometryCollection bone proximity.
 - Added more user controls for how proximity is generated, including a "Convex Hull distance" method for deciding contact, which should help include connections that were missed by the default proximity detection method.
 - Made proximity settings live on the GeometryCollection as (non-cooked) attributes, so proximity re-generates with the desired method after further fracturing/clustering.
 - Added an option to automatically convert the proximity graph to a pre-computed connection graph used by simulation.
 - Reduce redundant proximity calculations: Be more consistent in relying on FGeometryCollectionEdit to update proximity as needed, and call 'RequireProximity' instead of 'UpdateProximity' in cases where we expect a valid proximity may already be present.

#rb cedric.caillaud
#preflight 6356d21b0313c24974eea2f8

[CL 22735429 by Jimmy Andrews in ue5-main branch]
2022-10-24 16:24:39 -04:00
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
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
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
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
9a1c2929e1 Chaos : fix cook warning related to selection material in geometry collection
- Make sure to remove reference to the selection material in the material array when cooking and saving

#rb brice.criswell, jimmy.andrews
#jira UE-161748
#preflight 630574cca45b007ea2925d8d

[CL 21572919 by cedric caillaud in ue5-main branch]
2022-08-25 17:14:44 -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
Jimmy Andrews
e9cefb6e41 prevent crash if nanite data is null on geometry collection object
#preflight 62fa681f153b17e74635fb4d

[CL 21388535 by Jimmy Andrews in ue5-main branch]
2022-08-15 12:44:23 -04:00
Jimmy Andrews
4b7243cb76 Changes to make transient / un-Saved properties work more logically for Geometry Collection data:
- make the ManagedArrayCollection 'Saved' flag control whether the whole property is saved, rather than just its data

- when transacting, save everything (ignore the Saved flag)

- also when loading, remove properties that were not in the map we loaded from

- stop manually removing some unsaved attributes, as the Saved flag should take care of that instead

- stop loading from the DDC (after already loading from the transaction history) for every undo/redo transaction

#preflight 62c75a60b3789302b1bb7d3e
#rb cedric.caillaud, brice.criswell, max.whitehead

[CL 21007351 by Jimmy Andrews in ue5-main branch]
2022-07-08 10:54:36 -04:00
Jimmy Andrews
0acb496b28 Add a Convex OverlapRemovalShrinkPercent variable to the geometry collection convex generation settings, to compute overlap removal on scaled-down convex hulls (without baking that scale into the hull).
#rb cedric.caillaud
#preflight 62b5d6470110bdb3314505b7
#robomerge EngineMerge

[CL 20810090 by Jimmy Andrews in ue5-main branch]
2022-06-24 11:44:32 -04:00
Jimmy Andrews
243c9e16e4 change 'remove overlaps' fracture convex generation option to be an enum w/ more options -- specifically to add option to only remove overlaps on clusters, or overlaps of clusters w/ other clusters
#preflight 62b3847408627e1ed3958e1a
#robomerge EngineMerge

[CL 20782295 by Jimmy Andrews in ue5-main branch]
2022-06-22 17:36:03 -04:00
cedric caillaud
ea89b40a98 Chaos destruction : add slow moving detection fro Remove on sleep feature
#rb none
#jira none
#preflight 62a8a8481a6b7dcd549af11f

[CL 20650060 by cedric caillaud in ue5-main branch]
2022-06-14 11:45:26 -04:00
Jimmy Andrews
3ea10e4a3d add option to not remove overlaps on geometry collection convex hulls
#rb rinat.abdrashitov
#rb david.hill
#preflight 62a74f44d80693a653de7c89

[CL 20627438 by Jimmy Andrews in ue5-main branch]
2022-06-13 11:05:31 -04:00
cedric caillaud
5ddbe667f4 Chaos destruction : allow import of collision shapes from static meshes when creating a geometry collection
#rb brice.criswell, ori.cohen
#jira none
#preflight 628dabdcaf7a2e956ba42d3d

[CL 20380362 by cedric caillaud in ue5-main branch]
2022-05-26 12:02:54 -04:00
cedric caillaud
d8a335e82f Chaos : add new connection graph generation method ( delaunay filtered by bounds )
#rb none
#jira none
#preflight 6287e7b22c34da686af5b808

[CL 20301053 by cedric caillaud in ue5-main branch]
2022-05-20 15:20:13 -04:00
cedric caillaud
a156b97f48 Chaos : harden manageArray Api for better detection of modification to the array
this is a step towards more automated recompoutation of some attributes dependent on others

#rb brice.criswell
#jira none
#preflight 627ae07e7e5f24d1ede8e730

[CL 20131611 by cedric caillaud in ue5-main branch]
2022-05-10 18:56:28 -04:00
cedric caillaud
f2c5b1b18b Chaos : detsruction : better damage threshold generation
- damage threshold are now by default generated per GC piece and no more at the cluster level propagating to children
- added a checkbox to keep the compatibility with older assets
- this allow for finer artist control and make the size specific parameters to be more effective

#rb brice.criswell, max.whitehead
#jira none
#preflight 626a26172735a2c0eaeb68be

[CL 19973874 by cedric caillaud in ue5-main branch]
2022-04-28 20:20:32 -04:00
cedric caillaud
dd00e4a56a Chaos : Make sure the simulation sizespecific array has the default MaxSize to be always higher than anything the user will set
#fyi brice.criswell
#jira none
#preflight none

[CL 19857510 by cedric caillaud in ue5-main branch]
2022-04-21 18:50:41 -04:00
cedric caillaud
16ff9fa5ed Chaos : fix issue where adding an element to the size specific array from the UI adds sometimes two
#rb brice.criswell
#jira none
#preflight 6242a1a6637925b5d3a28c7a

[CL 19539244 by cedric caillaud in ue5-main branch]
2022-03-29 02:16:42 -04:00
brice criswell
5ec1f87b61 Geometry Collection : Size Specific Defaults
- Don't update to convex if the older file does not have convex properties.
- Fix nullptr access in the shapes debug drawing.

#rb Jimmy.andrews
#jira ue-141312
#preflight 62057662a155a4cddac6b16a

#ROBOMERGE-AUTHOR: brice.criswell
#ROBOMERGE-SOURCE: CL 18943097 in //UE5/Release-5.0/... via CL 18943327 via CL 18943558
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v917-18934589)

[CL 18943920 by brice criswell in ue5-main branch]
2022-02-10 17:08:59 -05:00
brice criswell
0b040d11b6 GeometryCollection : Properties
- Adding damage threshold back to the GeometryCollectionObject.

#rb michael.lentine
#jira UE-126295
#preflight 620406f98e53010a186e6ea8

#ROBOMERGE-AUTHOR: brice.criswell
#ROBOMERGE-SOURCE: CL 18922992 in //UE5/Release-5.0/... via CL 18927108 via CL 18928820
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18929260 by brice criswell in ue5-main branch]
2022-02-09 19:28:14 -05:00
brice criswell
29a39de958 Chaos - Verbose Warnings
- Removed verbose warning for destructable default material.
- Add pvar bGeometryCollectionEnableForcedConvexGenerationInSerialize to disable forced convex generation on a project.

#rb michael.lentine
#jira ue-141312
#preflight 620317b39e10f6918e164354

#ROBOMERGE-AUTHOR: brice.criswell
#ROBOMERGE-SOURCE: CL 18913749 in //UE5/Release-5.0/... via CL 18920106 via CL 18920875
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v916-18915374)

[CL 18921570 by brice criswell in ue5-main branch]
2022-02-09 13:27:35 -05:00
brice criswell
45b89d52f8 GeometryCollection : Property updates
- Convex threshold defaulted to 0
- MassAsDensity is now true in uasset.

#preflight 62019bb8e85c7a08bbc67f49
#rb Michael.Lentine
#jira UE-141658

#ROBOMERGE-AUTHOR: brice.criswell
#ROBOMERGE-SOURCE: CL 18903280 in //UE5/Release-5.0/... via CL 18903394 via CL 18903620
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v912-18901109)

[CL 18903632 by brice criswell in ue5-main branch]
2022-02-08 11:57:43 -05:00