Commit Graph

251 Commits

Author SHA1 Message Date
zenoengine
cc74a7cb05 PR #9749: Fix in randomplayer wrong swap code when min,max playrate need swap.
#ushell-cherrypick of 22988047 by UnrealBot
#jira UE-169258
#rb Thomas.Sarkanen

[CL 29838783 by zenoengine in ue5-main branch]
2023-11-20 06:28:04 -05:00
jason hoerner
61ec1be384 Animation Memory: 17.7 MB savings in array slack.
* 14.3 MB:  Reserve space in CurvePoseSourceIndices members in AnimNode_BoneMask and AnimNode_LayeredBoneBlend based on the exact amount used.  Many nodes don't use this feature, so the array ends up empty, but in other cases, less than 5% of the reserve is used.
* 3.4 MB:  Eliminate Reserve for QueuedTransitionEvents member in AnimNode_StateMachine.  Reserve is wasteful because it's deleted anyway by a Shrink call in FAnimNode_StateMachine::Update_AnyThread for active state machines, and only ends up sticking around for inactive state machines, where it's irrelevant, so it doesn't affect performance to take this out.

#rnx
#rb thomas.sarkanen jose.villarroel

[CL 29601012 by jason hoerner in ue5-main branch]
2023-11-09 12:34:49 -05:00
john vanderburg
a18729897b Crash fix in the layered bone blend node, basically undoing previous optimizations.
#trivial
#rb thomas.sarkanen
#swarm none

[CL 29041783 by john vanderburg in ue5-main branch]
2023-10-24 06:20:27 -04:00
jose villarroel
8804fb854e Allow updating both children of the Two Way Blend even when not relevant
[REVIEW] [at]Thomas.Sarkanen, [at]Samuele.Rigamonti

[CL 28881682 by jose villarroel in ue5-main branch]
2023-10-18 12:59:14 -04:00
thomas sarkanen
a5b5993cd8 Fix blend list optimization to correctly check weight of single active pose
#rb timothy.daoust

[CL 28707477 by thomas sarkanen in ue5-main branch]
2023-10-12 08:56:32 -04:00
thomas sarkanen
0bdfe150f6 Optimize common case of single full-weight entry in a blend list
Prior to this change, a single entry would needlessly multiply a pose with weight 1

#rb Jurre.deBaare,Timothy.Daoust

[CL 28662081 by thomas sarkanen in ue5-main branch]
2023-10-11 09:42:44 -04:00
roland munguia
8b941e9232 Fixed UBlendSpaces not syncing when using inertialization. Added support for properly syncing UBlendSpaces when using "Transition Leader" and "Transition Follower" sync group roles.
[RN] minor
#rb Aaron.Cox, Jose.Villarroel, Thomas.Sarkanen
[FYI] Steven.Dickinson

[CL 28545193 by roland munguia in ue5-main branch]
2023-10-06 12:41:45 -04:00
thomas sarkanen
38c05e8619 Anim graph optimizations
Implemented ISPC versions of missing layered blend per bone hot paths.
Tweaked inlining and added ptr RESTRICT to various curve operations
Removed array copy in control rig node curve outputs
Increased inline alloc size of cached poses to reduce allocations
Removed refpose copies and allocations with linked anim graphs (these can be skipped now the bone containers are all centralized)

#rb Nicholas.Frechette,Jurre.deBaare
#tests Juno, NoMcp

[CL 28371404 by thomas sarkanen in ue5-main branch]
2023-10-02 05:23:05 -04:00
john vanderburg
a23adf2e54 [SkeletonCompatibility] Added support for skeleton compatibility in combination with blend profiles / masks.
#jira UE-157944
#rb Thomas.Sarkanen
[FYI] Aaron.Cox

[CL 28220333 by john vanderburg in ue5-main branch]
2023-09-26 06:06:52 -04:00
keith yerex
cd47f305eb Improvements to anim node property tracing and display in the animation blueprint editor:
- Trace selected animation for ChooserPlayer node.
- Make debug bubbles in rewind debugger show all traced node properties, except Name.
- Make sequence player nodes display the current sequence in the debug bubble.
- Trace assets, such as Sequence or BlendSpace with the Key: Asset, and enable display of the Asset column in the AnimGraph rewind debugger details.
#rb Samuele.Rigamonti

[CL 28214450 by keith yerex in ue5-main branch]
2023-09-25 21:35:24 -04:00
jurre debaare
08585f35af Need the ability to give a sequence evaluator a frame instead of time.
#feature sequence evaluator node now exposes ExplicitFrame option, which internally combined with the set AnimSequence is used to generate a time-value (on which the behaviour is based)
#rb Thomas.Sarkanen

[CL 27627946 by jurre debaare in ue5-main branch]
2023-09-06 04:14:59 -04:00
roland munguia
274af74e34 Fixed inertialization not working properly with sync groups when using BlendList.
[RN] minor
#rb Aaron.Cox, Jose.Villarroel

[CL 27543092 by roland munguia in ue5-main branch]
2023-08-31 18:56:44 -04:00
frederick lupien
9ca054d8a2 Add PostEvaluateSourcePose interface to FAnimNode_Slot to be able to override some of the curves in derived nodes
#reivew-27523875 [at]Jose.Villarroel
[FYI] Paul.McLaurin

[CL 27531431 by frederick lupien in ue5-main branch]
2023-08-31 14:32:11 -04:00
danny chapman
756d23a531 Fixes application of smoothing in the lookat aim offset blendspace
#jira UE-189184
#rb aaron.cox, jurre.debaare

[CL 26892679 by danny chapman in ue5-main branch]
2023-08-07 14:16:00 -04:00
jose villarroel
6dc26fd3fb Added "Update If Active" flag to property access, to allow freezing specific properties during blend out.
[REVIEW] [at]Thomas.Sarkanen

[CL 26478895 by jose villarroel in ue5-main branch]
2023-07-19 21:32:37 -04:00
frederick lupien
43ce4fa211 Add animstats.h headers to node that use verbose profiling
[REVIEW] [at]thomas.sarkanen
[FYI] Paul.McLaurin, Jose.Villarroel

[CL 26146900 by frederick lupien in ue5-main branch]
2023-06-21 09:46:47 -04:00
daniel holden
09a76f64c4 RewindDebugger: Added ability to click on AnimNodes in the rewind debugger and get shown them in the Animation Blueprint. Made inertialization record the node and AnimInstance that made the inertialization request and made these clickable in rewind debugger. Made it so that the inertialization track will not show unless you have inertialization nodes used in your graph. Some small refactoring of the rewind debugger display of AnimNodeValues to reduce the code duplication a bit.
#rb keith.yerek

[CL 26099764 by daniel holden in ue5-main branch]
2023-06-19 15:03:03 -04:00
roland munguia
93720bd718 Fixes for automatic transitions rules and added the feature to manually set their trigger time.
- Added support for explicitly specifying the transitions trigger time when using state machine automatic transition rules.
- Fixed state machine automatic transitions rules not triggering from a looping animation.
- Fixed state machine automatic transitions rules that have their next state as a conduit state triggering before reaching the end of the animation.
- Consolidate all the ways to check if asset in asset player is looping into a single api call, IsLooping().
- Added getter for a AssetPlayer's DeltaTimeRecord.
- Added warning when a asset player is using looping animations with automatic rule based transitions.

#jira UE-171299, UE-180844, UE-185174

[CL 25877647 by roland munguia in ue5-main branch]
2023-06-08 14:19:19 -04:00
frederick lupien
4b5b01668c Add a define to enable verbose animation node profiling tags. Disabled by default. See ANIMNODE_STATS_VERBOSE in AnimStats.h
[REVIEW] [at]thomas.sarkanen

[CL 25815262 by frederick lupien in ue5-main branch]
2023-06-06 10:07:01 -04:00
daniel holden
c0320979ff Added inertialization track to rewind debugger. Made it so that inertialization requests track the origin of the request for debugging purposes.
#rb keith.yerek
#jira UE-185306

[CL 25794669 by daniel holden in ue5-main branch]
2023-06-05 12:21:53 -04:00
daniel holden
6ccf5e03c5 Added experimental DeadBlending animation graph node.
#jira UE-184569
#rb keith.yerek
#rb danny.champman
#preflight 646e0593f85111e06c8ff205

[CL 25601022 by daniel holden in ue5-main branch]
2023-05-24 09:01:31 -04:00
daniel holden
63ba9cb8d7 [Backout] - CL25578176
[FYI] daniel.holden
Original CL Desc
-----------------------------------------------------------------
Added experimental DeadBlending animation graph node.

#preflight 646c76414422ba05f47337a2
#rb keith.yerek, danny.chapman
#jira UE-184569

[CL 25579640 by daniel holden in ue5-main branch]
2023-05-23 07:48:35 -04:00
daniel holden
e4e1a07f7d Added experimental DeadBlending animation graph node.
#preflight 646c76414422ba05f47337a2
#rb keith.yerek, danny.chapman
#jira UE-184569

[CL 25579599 by daniel holden in ue5-main branch]
2023-05-23 07:47:40 -04:00
jose villarroel
3cb566d700 Fix for build error in AnimNode_RotateRootBone
#jira UE-186619
#rb trivial
#preflight skip

#ushell-cherrypick of 25567535 by jose.villarroel

[CL 25567676 by jose villarroel in ue5-main branch]
2023-05-22 14:10:59 -04:00
jose villarroel
07ea17b98f Rotate root bone can opt-in to rotate the root motion custom attribute
[REVIEW] [at]Aaron.Cox, [at]Fernando.Coello, [at]Thomas.Sarkanen
#preflight 6467b3770577c206c7bc6557

[CL 25553334 by jose villarroel in ue5-main branch]
2023-05-19 17:51:59 -04:00