Commit Graph

48 Commits

Author SHA1 Message Date
kriss gossart
73ae6c8a56 Chaos Cloth - Add a warning message in the Mesh Editor viewport for when the simulation has lost all impulses because of running slow and being teleported. [Merging CL 14479886]
#jira none
#rb none

[CL 14496351 by kriss gossart in ue5-main branch]
2020-10-14 15:28:11 -04:00
kriss gossart
7a777cf2dc Chaos Cloth - LOD/graph node refactor.
- Add multi LOD support.
- Add simulation Mesh, Cloth, Collider, and Solver graph node ready classes.
- Fix backstop, and improve backstop debug draw.
- Add Anim debug draw.
- Output cloth sim data in local space.

#jira UESP-3283
#fyi Chris.Caulfield, Michael.Lentine
#rb none

[CL 14112532 by kriss gossart in ue5-main branch]
2020-08-14 06:18:22 -04:00
kriss gossart
472e8e3e8f Cloth - Add cloth info functions to the Clothing Simulation Interactor to make them accessible from blueprint.
Chaos Cloth - Implement GetNumSubteps() and GetNumIterations().

#rb none

#ROBOMERGE-SOURCE: CL 13170122 via CL 13170124 via CL 13170125
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v688-13145358)

[CL 13170126 by kriss gossart in Main branch]
2020-05-05 06:21:06 -04:00
kriss gossart
79f5f5fdf1 Chaos Cloth - Add particle counts and simulation time to the cloth editor's viewport HUD.
#rb none

#ROBOMERGE-SOURCE: CL 12976637 via CL 12976658 via CL 12976672
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v682-12900288)

[CL 12976681 by kriss gossart in Main branch]
2020-04-22 12:38:41 -04:00
Lina Halper
44c1bb3292 COPY from //Dev-Anim to //Dev-Main
#rb: none
#fyi: Laurent.Delayen, Thomas.Sarkanen

[CL 11088765 by Lina Halper in Main branch]
2020-01-22 17:58:55 -05:00
robomerge
40ea74b2ac Chaos Cloth - Makes the Clothing Simulation Interactor a BP class to replace types of otherwise Nv specific variables.
#rb none


#ROBOMERGE-SOURCE: CL 11082886 via CL 11082887 via CL 11083752 via CL 11084116
#ROBOMERGE-BOT: (v637-11041722)

[CL 11084418 by robomerge in Main branch]
2020-01-22 13:24:57 -05:00
kriss gossart
957074871e Chaos Cloth - Fix clothing interactor and Chaos Cloth simulation to allow for in game change of gravity.
#rb none


#ROBOMERGE-SOURCE: CL 11076423 via CL 11076445 via CL 11076452 via CL 11076464
#ROBOMERGE-BOT: (v637-11041722)

[CL 11076477 by kriss gossart in Main branch]
2020-01-21 15:51:54 -05:00
Ryan Durand
54168a659e Updating more copyrights to remove years.
#rnx
#rb none
#jira none

[CL 10898929 by Ryan Durand in Main branch]
2020-01-07 17:07:47 -05:00
kriss gossart
c6c3bac263 Chaos Cloth - Refactor the cloth simulation and context classes.
- Move the IClothingSimulation and IClothingSimulationContext definitions from ClothingSimulation.h/cpp to ClothingSimulationInterface.h/cpp files to make place for the FClothingSimulationCommon definitions.
- Move common simulation and context implementation from the ClothingSystemRuntimeInterface to the ClothingSystemRuntimeCommon module.
- Merge common code used in Nv and Chaos cloth simulations, and remove duplicated code where possible.
- Move specific FillContext behaviors out of the base simulation class and into the context subclasses.

#rb Benn.Gallagher
[FYI] Jaco.VanDyk

Merge: CL 10878385, CL10879173
Release-11.40-Chaos -> Release-12.00


#ROBOMERGE-SOURCE: CL 10879538 via CL 10879553 via CL 10879562
#ROBOMERGE-BOT: (v626-10872990)

[CL 10880533 by kriss gossart in Main branch]
2020-01-06 12:54:08 -05:00
kriss gossart
f193178f83 Chaos Cloth - Add live editing for cloth property changes.
- Add Chaos Cloth physics refresh, called when UI manipulators are used on collision volumes.
- Tidied up ChaosClothingSimulation.cpp to remove redundant function arguments.
- Bug fix: Shape constraints now have a version where it is not applied on all particles but only to the relevant instance.

[FYI] Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10869211 via CL 10869235 via CL 10869512 via CL 10869901
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870583 by kriss gossart in Main branch]
2019-12-26 15:30:43 -05:00
ryan durand
0f0464a30e Updating copyright for Engine Runtime.
#rnx
#rb none


#ROBOMERGE-OWNER: ryan.durand
#ROBOMERGE-AUTHOR: ryan.durand
#ROBOMERGE-SOURCE: CL 10869210 via CL 10869511 via CL 10869900
#ROBOMERGE-BOT: (v613-10869866)

[CL 10870549 by ryan durand in Main branch]
2019-12-26 14:45:42 -05:00
kriss gossart
67d91b99a0 Add a calibrated Chaos Cloth parameter migration from existing Nv Cloth configs.
Move the cloth shared config creation responsability out of the Chaos Cloth simulation code to the points where clothing assets are loaded or created within the SkeletalMesh code.
Add shared cloth configs to the list of config classes returned by the cloth factories.
Set all Chaos Cloth default stiffness properties to 0.5.
Remove unused Chaos Cloth volume related properties.
Add a missing stiffness value setup to the bending element constraints.

#rb Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10812067 via CL 10812070 via CL 10812075 via CL 10812077
#ROBOMERGE-BOT: (v610-10636431)

[CL 10812081 by kriss gossart in Main branch]
2019-12-19 13:11:29 -05:00
kriss gossart
a18007f52d Move common clothing asset functionalities to ClothingSystemRuntimeCommon to enable Chaos Cloth authoring.
Create a new ClothingSimulationFactory function to get the definitive default factory, for whatever cloth factories are actually enabled.
Rework nv cloth/apex dependencies in the ClothingSystemRuntimeNv module to allow the move of the legacy components and common config elements to the common module.
Add legacy cloth asset and runtime components to the common module to allow legacy assets to be loaded in a Chaos simulation, even with nv cloth disabled.
Allow storage of several configs to coexist in the ClothingAsset object config map, with their names as the key.
Resurrect the cloth physical mesh data structure to avoid the UClass overhead.
Add migration functions and BaseEngine redirectors to keep backward compatibility with legacy cloth assets, and assets saved after Ryan's refactor.

#rb Benn.Gallagher, Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10634739 via CL 10634740 via CL 10634741
#ROBOMERGE-BOT: (v608-10590470)

[CL 10634742 by kriss gossart in Main branch]
2019-12-10 05:02:44 -05:00
kriss gossart
e93f5b48a7 Fix the ClothingAsset property update when changing properties in the Clothing window.
#rb Jaco.VanDyk, Benn.Gallagher

Merging from Release-11.40 after Robomerge conflict.


#ROBOMERGE-SOURCE: CL 10590600
#ROBOMERGE-BOT: (v607-10590470)

[CL 10590601 by kriss gossart in Main branch]
2019-12-06 07:26:05 -05:00
kriss gossart
1c13ec71c3 Add comments to GetDefaultClothingSimulationFactoryClass, and make the dereference to UClass more explicit.
#rb Jaco.VanDyk
[FYI] Chris.Caulfield
#jira


#ROBOMERGE-SOURCE: CL 10236572 via CL 10239406 via CL 10239689
#ROBOMERGE-BOT: (v591-10236483)

[CL 10240027 by kriss gossart in Main branch]
2019-11-15 09:16:13 -05:00
kriss gossart
7fa3fb770c Fix crash while getting default cloth simulation factory when built with Chaos and running without the Chaos Cloth plugin.
[FYI] Jaco.VanDyk, Chris.Caulfield, Brice.Criswell
#jira


#ROBOMERGE-SOURCE: CL 10153356 via CL 10155228 via CL 10155382
#ROBOMERGE-BOT: (v587-10111126)

[CL 10155476 by kriss gossart in Main branch]
2019-11-13 14:53:49 -05:00
kriss gossart
180ef3f2b1 Fix CIS error when all cloth simulations types are disable in build.
#ROBOMERGE-SOURCE: CL 10126205 via CL 10126445 via CL 10126563
#ROBOMERGE-BOT: (v587-10111126)

[CL 10126647 by kriss gossart in Main branch]
2019-11-13 12:13:43 -05:00
kriss gossart
dc9c555375 Set the correct default clothing simulation factory based on the target build defines.
Add a new function that returns the correct default clothing simulation factory.
Add a new p.Cloth.DefaultClothingFactoryClass console variable to change the default at runtime.
Update the SkeletalMeshComponent code to use the correct default clothing simulation factory.
Deprecate the IClothingSimulationFactoryClassProvider::GetDefaultSimulationFactoryClass() and add a new IClothingSimulationFactoryClassProvider::GetSimulationFactoryClass() function to remove any ambiguity about what the correct way to get the provider's class, or the default class.

#rb Ryan.Kautzman, Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10124312 via CL 10124362 via CL 10124409
#ROBOMERGE-BOT: (v587-10111126)

[CL 10124441 by kriss gossart in Main branch]
2019-11-13 10:33:19 -05:00
kriss gossart
9b11c2a5bd Rename ClothPhysicalMeshData files to ClothPhysicalMeshDataBase to match the other class/file names and allow for a common runtime version.
[FYI] Benn.Gallagher, Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10005752 via CL 10005832
#ROBOMERGE-BOT: (v562-10004402)

[CL 10005847 by kriss gossart in Main branch]
2019-11-05 07:32:18 -05:00
kriss gossart
6c392a35cc Rename ClothConfig files to ClothConfigBase in line with the class name definition.
#rb Benn.Gallagher
[FYI] Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 9969464 via CL 9969468
#ROBOMERGE-BOT: (v560-9963197)

[CL 9969469 by kriss gossart in Main branch]
2019-11-04 12:47:03 -05:00
kriss gossart
89ffedd265 Reworked the Chaos Cloth Convex collisions to use a Chaos TConvex implicit.
Also:
-Regenerate the convexes' surface points for the legacy apex cloth assets (apparently the only use of convexes in apex import was to emulate box collisions).
-Add debug draw visualization for the Chaos Cloth editor.

#rb Jaco.VanDyk
[FYI] Benn.Gallagher


#ROBOMERGE-SOURCE: CL 9894041 via CL 9894049
#ROBOMERGE-BOT: (v558-9892490)

[CL 9894053 by kriss gossart in Main branch]
2019-10-30 14:12:32 -04:00
jaco vandyk
4decc429a5 - Adding Cloth configuration parameters that are common to all instances in a skeletal mesh
- Remove the related cvars

#rb Benn.Gallagher
[FYI] Ryan.Kautzman, Michael.Lentine, Kriss.Gossart
[at]Benn.Gallagher


#ROBOMERGE-SOURCE: CL 9890068 via CL 9890205
#ROBOMERGE-BOT: (v553-9872581)

[CL 9890240 by jaco vandyk in Main branch]
2019-10-30 09:51:53 -04:00
jaco vandyk
21e7c9df9f - Adding a ChaosClothConfig with chaos specific parameters.
- Deprecate chaos parameters on skeletal mesh.


#rb Kriss.Gossart
[FYI] Ryan.Kautzman, Michael.Lentine, Benn.Gallagher
[at]Kriss.Gossart


#ROBOMERGE-SOURCE: CL 9818954 via CL 9818995
#ROBOMERGE-BOT: (v546-9757112)

[CL 9819007 by jaco vandyk in Main branch]
2019-10-24 14:50:04 -04:00
kriss gossart
485a5f4493 Fix the Chaos Cloth external collision transform initial condition setup, and refactor the three Chaos Cloth cloth/asset/external assets collision particle setups to a single function.
Also:
-Fix and simplify bone index mapping.
-Make the new Box collision primitive to support transformed boxes.
-Add support fdor tapered capsule.
-Add missing support for convex collision.
-Fix debug draw collision sphere offset.

#rb Benn.Gallagher, Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 9745673 via CL 9745696
#ROBOMERGE-BOT: (v542-9736015)

[CL 9745837 by kriss gossart in Main branch]
2019-10-22 11:12:07 -04:00
jaco vandyk
5ab02c8ddc Chaos CLoth:
- Animation Drives implemented as a PBD constraint
- Small Cloth Integrator fix for substepping

#rb Benn.Gallagher
[FYI] Ryan.Kautzman, Michael.Lentine, Benn.Gallagher, Kriss.Gossart, Jaco.Vandyk
[at]Benn.Gallagher


#ROBOMERGE-SOURCE: CL 9614901 via CL 9614902
#ROBOMERGE-BOT: (v528-9595928)

[CL 9614903 by jaco vandyk in Main branch]
2019-10-16 07:06:31 -04:00