Jump to content

WTF With Blend Trees


MackeyK24
 Share

Recommended Posts

WTF... With blend trees :)

I thought blend trees was this big 'mystical animation system' that magically 'BLENDED' animations...

First off... the phrase 'BLEND TREE' does NOT HAVE ANYTHING (except for maybe this directBlendParameter unity uses... gotta look more into that one) to do with the actual usage or terminology that we use in Babylonjs for "Animation Blending" kind of a way to smoothly "BLEND" from playing one animation into another animation WITHOUT being so 'JERKY' ... I THINK :)

Now from all the metadata I am gathering from unity to build my blend tree system in the toolkit, there is NOTHING or NO VALUES (again except for may the directBlendParamter) that would seem to directly influence what we would call: animation.blendingSpeed (Transitions are another thing... I think the transition duration is supposed to somehow use animation.blendingSpeed... but that another story)... actually Blend trees are EASIER to implement than transition...

BLEND TREES are simply a "Parent animation controller' type deal where it has a set on child trees (that actually have a reference to the clip) that it can play at any given movement based off of PosX and PosY values being pumped into it so if posX and posY (using thresholds) are 0 and 0 you might set that to a idle animation, if its 0 and 0.5 set to walk and 0 and 1 set to run (a little more complex in the condition checking of course... but basically that)

So they use the the term "BLEND" to actually swap out the current playing animation from a group of child animations based on a bunch of POS-X and POS-Y inputs...

I always thought it was some super complex  animation system... From what I can tell its not... and if there is any additional "Animation Blending" type stuff that needs to happen to make it fully (or as much as our BabylonJS API) support any kind of actual animation.blendingSpeed usage and even all the other custom animation support you get from babylon itself to make it a real BLEND TREE system in babylon js...

Well that what I working on at least :)

OR I COULD BE TOTALLY WRONG... DUNNO... IM BAKED RIGHT NOW :)

Link to comment
Share on other sites

Not sure if you were writing about easings.  I do not really know how to use the BJS animation system, but this is how different animations are blended there.  I also stole easings for my animation system, where everything is an interpolation.  These end up pacing the interpolation.  Work great. 

You may wish to look at this.  There were other hits on Documentation search as well.

Link to comment
Share on other sites

Hey @JCPalmer how it going... For right now I am just trying to create the framework for a mini animation state machine... To handle transitions and blend trees from unity... still working out actual state... which state it a clip and which state it a blend tree with several child clips that get played based on PosX and PosY input... the actual BLENDING or EASING OR WHATEVER we call the process of actually 'changing' from the current animation to the new animation... Well I not too sure about that and I guess I tackle that part when I gt the rest of the framework in place... But we should be able to DO SOMETHING in BabylonJS to 'COMPLETE' that BLEND TREE feature... I would think.. I sure hope so... looking good so far though :)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...