Commit Graph

20 Commits

Author SHA1 Message Date
Alex McAdams
8b49aa50c0 Chaos Cloth: record reference space transform for correct playback.
Since Chaos Cloth caches are now read in two places (SkeletalMeshComponentCacheAdapter and ClothComponentCacheAdapter), I created a few new structs to share code.
ClothingSimulationCacheData holds cache data that is read for the associated context.
ChaosClothingCacheSchema reads and writes cache data.

We need to write the ReferenceSpaceTransform as part of caching and then to read it back and set it.
Additionally, I'm now only writing the particles that have been simulated (namely other LOD particles will no longer be cached).

ChaosCache has been updated to be able to store named transforms (rather than just per-particle transforms)

Existing cloth caches will continue to work. They simply don't have the transform data.

#preflight 63f02662977ceed915637592
#rb michael.forot kriss.gossart

[CL 24318632 by Alex McAdams in ue5-main branch]
2023-02-20 13:00:25 -05: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
kriss gossart
892b1eb70c Cloth - Fixed a potential division by zero with a 0 delta time while setting up the context. Also the solver velocity scale is now set to 0 when any cloth teleport mode is activated to match the internal solver behavior.
#rb Benn.Gallagher
#preflight 634d69f7d737d61a2fefe0ae
#jira none

[CL 22652052 by kriss gossart in ue5-main branch]
2022-10-20 06:10:03 -04:00
kriss gossart
25cdb979d6 Chaos Cloth - Fix the velocity calculations when MaxPhysicsDelta kicks in.
- Add velocity debug draw.
- Draw aerodynamic forces in different colors depending on whether the particle is kinematic/dynamic.

#[rb Michael.Forot]
#[preflight 62bd89183f0d6beee282f026]
#[okforgithub public]
#[jira none]
[Edigrate CL 20895640]

#rb trivial
#preflight 6336bcd3e72271755f07f746
#jira UE-162974

[CL 22271819 by kriss gossart in ue5-main branch]
2022-09-30 11:41:20 -04:00
kriss gossart
0422ca7705 Skeletal Mesh - Replace the newly created GetSkeletalMesh function by GetSkeletalMeshAsset so it matches the setter SetSkeletalMeshAsset function (which itself couldn't be named SetSkeletalMesh due to the function already existing and doing something else).
#rb Josie.Yang
#preflight 62fa2afeae3edb54c979492e
#jira none

[CL 21385959 by kriss gossart in ue5-main branch]
2022-08-15 09:26:50 -04:00
jaime cifuentes
7fabb99aaf Inclusive Terminology Push - Part of UE-158645, UE-158525, UE-158532
Renamed / deprecated master/slave terms at SkinnedMeshComponent and SkeletalMeshComponent (plus all the users)

#jira UE-158645, UE-158525, UE-158532
#review @thomas.sarkanen @john.vanderburg
#preflight 62ced88af324cee189e48d43
#tests Verified the properties transfer correctly after modifying them without the fix and loading the character with the component with the fix applied
#preflight 62cfc490c36afd11ef07c9ab

[CL 21088391 by jaime cifuentes in ue5-main branch]
2022-07-14 03:55:26 -04:00
Josie Yang
6b15506e58 Replace direct access to SkeletalMesh object from USkinnedMeshComponent with GetSkeletalMesh function
#rb kriss.gossart
#preflight 62aafc9ada0af39a4783930a

[CL 20686007 by Josie Yang in ue5-main branch]
2022-06-16 09:14:04 -04:00
andrew davidson
f089ae83f4 FMatrix explicit cast fixes
#preflight 61f277cbaf74b68515c0bd64

#ROBOMERGE-AUTHOR: andrew.davidson
#ROBOMERGE-SOURCE: CL 18751911 in //UE5/Release-5.0/... via CL 18751924 via CL 18752067
#ROBOMERGE-BOT: UE5 (Release-Engine-Test -> Main) (v903-18687472)

[CL 18752076 by andrew davidson in ue5-main branch]
2022-01-27 06:25:37 -05:00
kriss gossart
e25605831a Cloth - Rework the forced teleport after initialization to prevent any translation impulse on the first simulated frame.
#rb Evgenii.Babinets
#jira FORT-435388
#preflight 61b356fa073b3200631fdfc9

#ROBOMERGE-AUTHOR: kriss.gossart
#ROBOMERGE-SOURCE: CL 18430832 in //UE5/Release-5.0/... via CL 18435316
#ROBOMERGE-BOT: STARSHIP (Release-Engine-Staging -> Release-Engine-Test) (v897-18405271)

[CL 18435551 by kriss gossart in ue5-release-engine-test branch]
2021-12-10 17:47:52 -05:00
aurel cordonnier
7f517562d5 Merge from Release-Engine-Staging @ 17438845 to Release-Engine-Test
This represents UE4/Main @17430120 and Dev-PerfTest @17437669

[CL 17439044 by aurel cordonnier in ue5-release-engine-test branch]
2021-09-06 12:23:53 -04:00
aurel cordonnier
25a11deeac Merge from Release-Engine-Staging @ 16579919
This represents UE4/Main @ 16579691 and Dev-PerfTest @ 16579576

[CL 16581170 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-07 20:09:45 -04:00
Thomas Sarkanen
b7771aaa90 Edigrating CLs 15666719 and 15675845.
Fixed check when blending curves when the required bones of linked anim instances were inconsistent with the main instance

This was caused by skeletal meshes streaming out setting the predicted LOD level without flagging required bones for recalculation, which meant that when a linked anim instance was created at a point where a LOD streamed out it could then build required bones at a different LOD to the main instance (e.g. main instance's required bones would be left at LOD 0, but linked instance's would be rebuilt at LOD 1).
Added accessors to the PredictedLODLevel and deprecated direct access to the member due to the potential for it to cause havoc if it is abused.

and

Prevent first-frame rendering issues when spawning LOD stripped skeletal meshes

#jira MH-3083
#jira UE-107627
#jira UE-78773
#jira FORT-354970
#jira FORT-345744
#jira FORT-355705
#rb Jurre.deBaare

[CL 15676600 by Thomas Sarkanen in ue5-main branch]
2021-03-11 10:57:49 -04:00
Alexis Matte
73d83c6a38 To protect the skeletalmesh when using async operations like build or re-import we deprecate all public member variables of USkeletalMesh class and create the necessary getter and setter. Those member will stay public but will be move to private in a future release.
Adding a public member to USkeletalMesh class is now prohibed since it can break asynchronous operations that will be added next to this submit.

#rb danny.couture
#jira UEENT-3936
#rnx

[CL 14812920 by Alexis Matte in ue5-main branch]
2020-11-25 11:17:08 -04:00
Marc Audy
68150e0be7 Merge UE5/Release-Engine-Staging to UE5/Main @ 14611496
This represents UE4/Main @ 14594913

[CL 14612291 by Marc Audy in ue5-main branch]
2020-10-29 13:38:15 -04:00
kriss gossart
18feecaa00 Chaos Cloth - Add point based wind model to ensure PhyX cloth asset backward compatibility (AKA "Legacy Wind"). [Merging CL 14397275]
#jira UE-90581, UE-94480
#rb none

[CL 14398091 by kriss gossart in ue5-main branch]
2020-09-25 13:44:05 -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
c45f59a735 Fix CIS error 'MaxDistanceScale' is not a base or member.
#rb none


#ROBOMERGE-SOURCE: CL 12137208 via CL 12137216 via CL 12137221
#ROBOMERGE-BOT: (v659-12123632)

[CL 12137226 by kriss gossart in Main branch]
2020-03-11 14:37:58 -04:00
kriss gossart
7c1e295410 Chaos Cloth - Enable the SkeletalMeshComponent SetMaxDistanceScale BP function in Chaos Cloth.
[fyi] Gustav.Melich, Michael.Lentine

Merging CL 12116735


#ROBOMERGE-SOURCE: CL 12123731 via CL 12123732 via CL 12130734
#ROBOMERGE-BOT: (v659-12123632)

[CL 12130926 by kriss gossart in Main branch]
2020-03-11 12:14:43 -04:00
kriss gossart
dd9c712bad Chaos Cloth - Add missing Chaos Cloth teleport mode.
- Move teleport property from the nv cloth context to the common cloth context.
- Fix Chaos Cloth particle and collision particle initializations.

[FYI] Jaco.VanDyk


#ROBOMERGE-SOURCE: CL 10944730 via CL 10944735 via CL 10945108 via CL 10945131
#ROBOMERGE-BOT: (v632-10940481)

[CL 10945155 by kriss gossart in Main branch]
2020-01-10 15:54:40 -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