Commit Graph

104 Commits

Author SHA1 Message Date
chris caulfield
1737ea3cf3 Chaos - RBAN: avoid some nastiness with world-space sime when scale goes to zero
#rb none

#ROBOMERGE-SOURCE: CL 12985866 via CL 12985867 via CL 12985871 via CL 12985874
#ROBOMERGE-BOT: RELEASE (Release-Engine-Staging -> Main) (v682-12900288)

[CL 12985878 by chris caulfield in Main branch]
2020-04-22 20:21:14 -04:00
chris caulfield
a050f25d77 Chaos - fix AnimNode_RigidBody_Chaos to match regular version after iterations changes.
#rb none


#ROBOMERGE-SOURCE: CL 11091160 via CL 11091161 via CL 11091162 via CL 11091163
#ROBOMERGE-BOT: (v640-11091645)

[CL 11093023 by chris caulfield in Main branch]
2020-01-23 10:16:11 -05:00
chris caulfield
551634399c Chaos
- expose RBAN iteration counts in PhAt, RBAN and blueprint
- hook up physics materials
- adjust default line thickness

[FYI] ori.cohen,benn.gallagher
#rb none


#ROBOMERGE-SOURCE: CL 11060506 via CL 11060509 via CL 11061546 via CL 11061564
#ROBOMERGE-BOT: (v637-11041722)

[CL 11061581 by chris caulfield in Main branch]
2020-01-18 20:07:46 -05:00
chris caulfield
5e6b30ad7f Chaos
- remove Cholesky solver calling code
- rename Chaos collision and joint stats
- add drag handles to RBAN editing in PhAt

#rb none


#ROBOMERGE-SOURCE: CL 10995456 via CL 10995464 via CL 10995468 via CL 10995475
#ROBOMERGE-BOT: (v633-10983880)

[CL 10995481 by chris caulfield in Main branch]
2020-01-15 13:57:18 -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
chris caulfield
5ca6ab385e Chaos - hack in Poke force in PhAt
#rb none


#ROBOMERGE-SOURCE: CL 10837680 via CL 10841173 via CL 10843458 via CL 10843562
#ROBOMERGE-BOT: (v610-10636431)

[CL 10843725 by chris caulfield in Main branch]
2019-12-19 23:33:50 -05:00
andrew ladenberger
36ebdf12a9 Added SkeletalMeshComponent option to disable rigid body anim nodes. Enables more selective rban use to save on memory and anim init time for distant meshes.
#rb jordan.cristiano, chris.caulfield, thomas.sarkanen
[FYI] ben.woodhouse, chris.bunner


#ROBOMERGE-SOURCE: CL 9603884 via CL 9603950 via CL 9603954
#ROBOMERGE-BOT: (v526-9587114)

[CL 9604203 by andrew ladenberger in Main branch]
2019-10-15 16:08:35 -04:00
michael lentine
acbc579509 Copy from //Fortnite/Dev-Physics
#rb none


#ROBOMERGE-OWNER: michael.lentine
#ROBOMERGE-AUTHOR: michael.lentine
#ROBOMERGE-SOURCE: CL 9374650 via CL 9374665
#ROBOMERGE-BOT: (v456-9359915)

[CL 9385990 by michael lentine in Main branch]
2019-10-02 17:27:26 -04:00
thomas sarkanen
ef46502ca2 Spawning optimizations
A collection of major and minor optimizations to anim instance initialization.

Major:
- Added defered root node init. When an anim instance is set to init to refpose, this defers the first call to initialize the blend tree until just before the first Update() call, on a worker thread.
- Skip ConditionallyCacheBonesForState in state machines in the case where we would call CacheBones_AnyThread during first Initialize_AnyThread. This avoids duplicate work being done, as graph traversal counters will let through sychronization calls if they have yet to be updated (ie. their count is INDEX_NONE).
- Cache access to nodes that need pre-update, dynamic reset, one-time initialization, as well as state machines in the generated class to avoid iterating all anim nodes on initialization.

Minor:
- Cache access to node properties when re-linking nodes to avoid duplicate memory round-trips.
- Cache access to LUT size in FBaseBlendedCurve::GetValidElementCount, avoiding duplicate memory round-trips.
- Prevent FName rehashing from string (intended to strip whitespace) when initializing FBoneReferences.
- Cache access to AnimCurveMapping smart name container on USkeleton, preventing a TMap lookup every time we access the smart name container.
- USkeleton::GetCurveMetaData now uses a 'fast path' when accessing using smart name UID. In this case we can avoid the TMap lookup as the UID is always a direct index to metadata at runtime (slow path still applies in editor builds).
- Avoid calling FAnimNode_LayeredBoneBlend::ReinitializeBoneBlendWeights in Initialize_AnyThread, as CacheBones_AnyThread will be called straight after anyways.
- Cache access to curve UID count and LinkedBones array in FAnimNode_LayeredBoneBlend::ReinitializeBoneBlendWeights, avoiding duplicate memory round-trips.

Upgrade notes:
- Breaking change! Custom anim nodes that implement OnInitializeAnimInstance now need to return true for the new accessor NeedsOnInitializeAnimInstance to be called at init time.
- The meaning of HasPreUpdate and NeedsDynamicReset has changed slightly. Previously these were called at init time, so if their results were mutable it was possible to re-init an anim instance with new settings. Now they are called at CDO load time this is no longer possible.

#rb Martin.Wilson


#ROBOMERGE-SOURCE: CL 8686415 via CL 8686419 via CL 8689513
#ROBOMERGE-BOT: (v422-8689730)

[CL 8695271 by thomas sarkanen in Main branch]
2019-09-16 13:01:26 -04:00
Marc Audy
a7459b1afc Merging //UE4/Dev-Main to Dev-Framework (//UE4/Dev-Framework) @ 8292949
#rb
#rnx

[CL 8293622 by Marc Audy in Dev-Framework branch]
2019-08-26 10:30:04 -04:00
Ben Hoffman
c11e10eb9c Add 0 entries to animtion enums to prevent blueprint compiler warnings.
Enums affected:
- ESplineBoneAxis
- EAnimAssetCurveFlags

#rb Lina.Halper
#rnx
#jira UE-59679

[CL 8293282 by Ben Hoffman in Dev-Framework branch]
2019-08-26 09:50:02 -04:00
lina halper
0a9a38c68d Remove unused variables
#jira: UE-78921
#rb: Helge.Mathee
#lockdown cristina.riveron

#ROBOMERGE-SOURCE: CL 8062117 in //UE4/Release-4.23/...
#ROBOMERGE-BOT: RELEASE (Release-4.23 -> Main) (v400-8057353)

[CL 8062123 by lina halper in Main branch]
2019-08-15 13:21:37 -04:00
Benn Gallagher
3a4873ef60 Copying //UE4/Dev-Physics to Dev-Main (//UE4/Dev-Main) @ 7703071
#rb
#rnx

[CL 7705805 by Benn Gallagher in Main branch]
2019-08-02 09:01:58 -04:00
Helge Mathee
bf2aef7b8f AnimNode_AnimDynamics: Build break on Mac
#jira UE-78044
#rb none

[CL 7651300 by Helge Mathee in Main branch]
2019-07-29 14:31:53 -04:00
satchit subramanian
ecbdae5c54 Add asset info to AnimNode_Rigidbody.
#rb Michael.Lentine


#ROBOMERGE-SOURCE: CL 7041340 via CL 7042232 via CL 7047490
#ROBOMERGE-BOT: (v367-6836689)

[CL 7048351 by satchit subramanian in Main branch]
2019-06-17 13:58:21 -04:00
Michael Lentine
f9b3324b32 Copying //UE4/Dev-Physics to Dev-Main (//UE4/Dev-Main) @ 6903150
#rb none
#rnx

[CL 6903163 by Michael Lentine in Main branch]
2019-06-08 17:15:34 -04:00
helge mathee
b784570012 Control Rig MVC Refactoring
Merging

//Tasks/Fortnite/Dev-UEA-ControlRig/...

to //Fortnite/Main/...

[FYI] lina.halper

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: helge.mathee
#ROBOMERGE-SOURCE: CL 6597997 via CL 6601432 via CL 6601520
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim) (v363-6677109)

[CL 6711001 by helge mathee in Dev-Anim branch]
2019-05-31 14:00:53 -04:00
Helge Mathee
a83e122138 Grey out options for springs based on checkbox
#jira UE-72733
#rb lina.halper

[CL 6633455 by Helge Mathee in Dev-Anim branch]
2019-05-24 13:58:22 -04:00
satchit subramanian
8e0e36b431 [FYI] Benn.Gallagher
Add option to simulate rigidbody animnodes in the frame in which they're reset (effectively skipping forward a frame).

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 6431438 via CL 6431522 via CL 6432480 via CL 6442365
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6471710 by satchit subramanian in Dev-Anim branch]
2019-05-15 06:54:51 -04:00
helge mathee
e4850ba893 Improve tooltips in AnimDynamics AnimBP Node for Angular Spring.
#rb jeremiah.grant

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: helge.mathee
#ROBOMERGE-SOURCE: CL 6189959 via CL 6192417 via CL 6192512
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6229501 by helge mathee in Dev-Anim branch]
2019-05-01 19:53:40 -04:00
satchit subramanian
1378736a38 Add setting to stop simulating rigidbody nodes below a minimum timestep.
#rb Steven.Barnett
[FYI] Lina.Halper

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 6023527 via CL 6023529 via CL 6023813 via CL 6023852 via CL 6024825 via CL 6024947
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6029481 by satchit subramanian in Dev-Anim branch]
2019-04-20 01:06:52 -04:00
satchit subramanian
5ad4c54674 Add a physics setting to stop simulating anim dynamics if the timestep is below a threshold.
#rb Steven.Barnett
[FYI] Lina.Halper

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: satchit.subramanian
#ROBOMERGE-SOURCE: CL 6019009 via CL 6019011 via CL 6019212 via CL 6019249 via CL 6023326 via CL 6023427
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 6026821 by satchit subramanian in Dev-Anim branch]
2019-04-19 21:09:48 -04:00
Helge Mathee
48e731c4b8 FORT-147933 - investigation for soft constraints
#jira FORT-147933
#rb lina.halper

[CL 5351922 by Helge Mathee in Dev-Anim branch]
2019-03-08 15:05:55 -05:00
aaron cox
261881944c [CODEREVIEW] Laurent.Delayen, Lina.Halper
[FYI] Luke.Tannenbaum

Validate BaseBoneRef in Update FAnimNode_RigidBody::IsValidToEvaluate(). Should fix crashes caused by referencing bones that don't exist at some LODs.

#ROBOMERGE-OWNER: lina.halper
#ROBOMERGE-AUTHOR: aaron.cox
#ROBOMERGE-SOURCE: CL 5064673 via CL 5065477 via CL 5066422
#ROBOMERGE-BOT: ANIM (Main -> Dev-Anim)

[CL 5136572 by aaron cox in Dev-Anim branch]
2019-02-22 04:07:04 -05:00
Thomas Sarkanen
cc942a3341 Merging //UE4/Dev-Main to Dev-Anim (//UE4/Dev-Anim) @ CL 4768627
#rb none
#jira none

[CL 4769629 by Thomas Sarkanen in Dev-Anim branch]
2019-01-22 06:48:04 -05:00