Commit Graph

352 Commits

Author SHA1 Message Date
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
thomas sarkanen
8866bf02ae Fixed ensure/crash when using details panel to edit multi way blend weights
#jira UE-122147 - Ensure/Crash: Anim graph multi blend
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 17367747 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17367749 by thomas sarkanen in ue5-release-engine-test branch]
2021-08-31 09:57:33 -04:00
thomas sarkanen
4bed39e4c1 Skeletal control BP function library
Also fixes type conversions (first time I have tried to convert to a base class and found that my IsChildOf check was the wrong way around).
Plus some extra accessors added for exec/update contexts.
Found the need for these when doing show & tell prep.

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 17367354 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v865-17346139)

[CL 17367419 by thomas sarkanen in ue5-release-engine-test branch]
2021-08-31 09:33:17 -04:00
max whitehead
b42ad9e831 Fix FRigidBodyNodeSimulationTask not using TrackSubsequents giving null a FGraphEventRef causing threading crashes.
#jira UE-121283
#rb chris.caulfield

#ROBOMERGE-SOURCE: CL 17144535 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v855-17104924)

[CL 17144536 by max whitehead in ue5-release-engine-test branch]
2021-08-11 20:07:54 -04:00
max whitehead
d76a1dee6a Convert FParallelAnimationEvaluationTask to use taskgraph completion event for rigid body animation node.
Fixes anim task blocking on RB sim task and doing 0 work, now taskgraph schedules work and doesn't lock up extra threads.
#jira UE-120634
#rb chris.caulfield

#ROBOMERGE-SOURCE: CL 17083918 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v853-17066230)

[CL 17083927 by max whitehead in ue5-release-engine-test branch]
2021-08-06 11:56:30 -04:00
david corral
2ca1c37171 Added EvalFromRefPose
#preflight 6109b7d157382600017c7129

#ROBOMERGE-SOURCE: CL 17039752 via CL 17042180
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v848-17036448)

[CL 17042442 by david corral in ue5-release-engine-test branch]
2021-08-03 19:58:21 -04:00
aurel cordonnier
dc4bf61540 Merge from Release-Engine-Staging @ 17030559 to Release-Engine-Test
This represents UE4/Main @ 17030256 and Dev-PerfTest @ 17030553

[CL 17031509 by aurel cordonnier in ue5-release-engine-test branch]
2021-08-03 11:56:47 -04:00
jurre debaare
3537267420 Undo 16922496 - issue was red-herring caused by content:
Crash using ControlRig in Sequencer
#info save/use cached pose nodes are not correctly invalidated/refreshed due to ControlRig edit mode invoking evaluation of the same anim instance multiple times per frame
#fix ensure that various counters used for synchronization/invalidation of cached data are used by ControlRigLayer proxy - and applied whenever update/evaluating the source "input" proxy

#ROBOMERGE-SOURCE: CL 16927983 via CL 16928005
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v838-16927207)

[CL 16928022 by jurre debaare in ue5-release-engine-test branch]
2021-07-22 14:14:35 -04:00
jurre debaare
11edf1ea3e Crash using ControlRig in Sequencer
#info save/use cached pose nodes are not correctly invalidated/refreshed due to ControlRig edit mode invoking evaluation of the same anim instance multiple times per frame
#fix ensure that various counters used for synchronization/invalidation of cached data are used by ControlRigLayer proxy - and applied whenever update/evaluating the source "input" proxy
#rb Martin.Wilson
[FYI] Mike.Zyracki, Halfdan.Ingvarsson

#ROBOMERGE-SOURCE: CL 16922496 via CL 16926362
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16926740 by jurre debaare in ue5-release-engine-test branch]
2021-07-22 13:12:55 -04:00
john vanderburg
beef6dba03 Fix in the weight based blend profiles, making them compatible with UE4 again. Thanks to Jose Villarroel and Caleb Longmire for finding this issue and diving in more.
#preflight 60f5c32f8da1560001c4cdeb

#ROBOMERGE-SOURCE: CL 16888051 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16888104 by john vanderburg in ue5-release-engine-test branch]
2021-07-19 16:04:27 -04:00
thomas sarkanen
d27ce9ae95 Removing Initialize and Evaluate functions
For now, removing these as their semantics are due to change
Also converting Update and Become Relevant functions to use more-devived-typed update context (less casting required)

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16771205 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v836-16769935)

[CL 16771237 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-24 08:31:18 -04:00
thomas sarkanen
8dd75d3cc0 Added pure conversion functions for anim node references
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16757174 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16757191 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-23 10:59:16 -04:00
RyanyiNF
bceff98542 PR #8160: Fix error case NaN while delta time is 0 (Contributed by RyanyiNF)
Fixes a case in RBAN where mesh component initialisation may pass through a zero delta time which can be used to divide in the calculation of a velocity when the node is set to inherit bone velocities.

#rb Benn.Gallagher
#jira UE-118618

#ROBOMERGE-SOURCE: CL 16755554 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16755562 by RyanyiNF in ue5-release-engine-test branch]
2021-06-23 07:17:56 -04:00
jurre debaare
fab69e6d08 Ported project specific scriptability UFunctions to Engine:
- SetPreviewSkeletalMesh to UAnimationAsset and UAnimBlueprint
- Functionality to retrieve UAnimationGraphs and UAnimationGraphNodes of a specific class from UAnimBlueprint and UAnimationGraph respectively
- Functionality for pose driver/asset scripting

#jira UE-117797
#rb Thomas.Sarkanen
#preflight 60d075e32ab218000115936a
#preflight 60d1a3eaa819040001397a52

#ROBOMERGE-SOURCE: CL 16741838 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16741845 by jurre debaare in ue5-release-engine-test branch]
2021-06-22 08:26:20 -04:00
thomas sarkanen
376e9e0f35 Missed file
#rb none

#ROBOMERGE-SOURCE: CL 16740070 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16740200 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 05:54:49 -04:00
thomas sarkanen
38a990e8d5 Added more library functions for sequence players/evaluators
Fixed execution context conversion & added BP-exposed conversion funcitons

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16739992 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16739994 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-22 04:50:29 -04:00
aurel cordonnier
02c0f425e8 Copy up from Release-Engine-Staging @ 16738359
This represents UE4/Main @ 16738161 and Dev-PerfTest @ 16737719

[CL 16738582 by aurel cordonnier in ue5-release-engine-test branch]
2021-06-22 00:27:54 -04:00
thomas sarkanen
da77f53ebc Improvements to anim node function calls
Split 'node context' into an 'evaluation context' and a 'node reference' type and updated regular function signatures when creating node functions. This way we can seperate concerns (and potentially reference anim nodes standalone in the future).
Moved function caller code into function ref file to stop AnimNodeBase bloat.
Fixed functions not being called on root nodes.

#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16727107 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16727111 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-21 07:54:47 -04:00
thomas sarkanen
cecebd0cf8 Anim blueprint encapsulation improvements
Adds 'template' anim BP concept. These anim BPs have no TargetSkeleton and as such cannot have direct references to animations placed inside of their anim graphs
Adds function call support from anim nodes. All anim graph nodes can now call functions when initialized, updated, evaluated or when they first become relevant.
Relevancy is established using a new FAnimSubsystemInstance_NodeRelevancy which tracks nodes in a local map, per UAnimInstance, if nodes require it.
Functions are displayed on the node if bound, and in the details panel.
Added a new override point to FAnimSubsystemInstance to allow for WT init.
Moved FMemberReference customization into a public header so it can be used on anim node functions.
Wrapped functions up into FAnimNodeFunctionRef structure so they can be re-used more effectively. Converted CallFunction node to use them.
Added a couple of simple BP function libraries to demonstrate the use of the new FAnimNodeContext (this is intended to be a generic way of exposing FAnimNode_Base types to script without the node types themselves having to be known to script directly).
Added the ability to set exposed properties as 'always dynamic' so they appear in mutable data rather than being merged into constants. This allows for the anim node data API to be changed to be less strict (and more script friendly). Now values can be set in mutable data (via GET_MUTABLE_ANIM_NODE_DATA_PTR) and attempted sets to constant data can be ignored and reported to client code.
A few minor crash fixes with edge cases (inc when trying to open an asset editor fails because of a missing skeleton/cancellation).
Also fixes an issue where literal linked anim graph/control rig/custom poroperty node inputs didnt get copied

#rb Jurre.deBaare,Aaron.Cox

#ROBOMERGE-SOURCE: CL 16703644 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v835-16672529)

[CL 16703653 by thomas sarkanen in ue5-release-engine-test branch]
2021-06-17 08:59:23 -04:00
jurre debaare
00f3de9115 Change moment of initialization of Animation Attribute system - previously had a race-condition triggered through parallel eval
#jira none
#rb Thomas.Sarkanen
#preflight 60c368d69a5910000144d18e

#ROBOMERGE-SOURCE: CL 16641483 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v831-16623017)

[CL 16641490 by jurre debaare in ue5-release-engine-test branch]
2021-06-11 10:51:02 -04:00
bojan brankov
6596775b00 Added new functionality to ModifyCurve anim node that allows curve manipulation via a name-value map
#jira UE-117365
#rb thomas.sarkanen

#ROBOMERGE-SOURCE: CL 16622472 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v830-16605563)

[CL 16622497 by bojan brankov in ue5-release-engine-test branch]
2021-06-10 09:39:44 -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
15cb8c261e Fix crashes, inconsistencies and performance issues with layered blend per bone node
Introduces a serial number to FBoneContainer that allows easier refreshing of bone-relative data. Eventually the overall CacheBones path could be superseded with lazy-update systems based on this serial number.

#jira UE-116464 - Layered blend per bone crash
#rb Jurre.deBaare

#ROBOMERGE-SOURCE: CL 16466917 in //UE5/Main/...
#ROBOMERGE-BOT: STARSHIP (Main -> Release-Engine-Test) (v823-16466674)

[CL 16466922 by thomas sarkanen in ue5-release-engine-test branch]
2021-05-26 07:56:07 -04:00
Thomas Sarkanen
6adfe86822 Fix crashes, inconsistencies and performance issues with layered blend per bone node
Introduces a serial number to FBoneContainer that allows easier refreshing of bone-relative data. Eventually the overall CacheBones path could be superseded with lazy-update systems based on this serial number.

#jira UE-116464 - Layered blend per bone crash
#rb Jurre.deBaare

[CL 16466917 by Thomas Sarkanen in ue5-main branch]
2021-05-26 07:55:41 -04:00
Marc Audy
e80ea6b959 Merge from Release-Engine-Staging @ 16444985
This represents UE4/Main @ 16445039 and Dev-PerfTest @ 16444526

[CL 16445122 by Marc Audy in ue5-release-engine-test branch]
2021-05-25 02:43:26 -04:00