Lets Look At | Godot 4 Godot Get Bone Animation!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys this is mitch with fine point  cgi and today we're gonna talk about   godot 4.0 new skeleton animation  system so this week in godot we had a   merge that happened that brought in a new skeletal  animation system now this is from togayet uh   lab i'm not sure exactly how you say it but they  threw out a twitter post talking about that's   actually how i found out about it but if we look  at the pull request here and we come down here   you can see what they did was they added in a new  animation system for bones which is awesome and   there's a lot of stuff in this and i'm probably  not going to be able to get to all of it but we   can at least take a look at some of it so if we  go ahead and we open up godot here here we are   inside of godot you can see that if i come to a  model that is rigged in this case i have a miximo   model here which by the way if you guys haven't  heard of mixamo it's a tool ran by adobe that has   a bunch of free animations and things like  that that you can use inside of your game   and i'm gonna have a tutorial on how to use these  in the future but right now let's just go ahead   and take a look at the skeleton so if i click on  skeleton 3d you'll notice that it highlights our   skeleton you'll notice that we have this new panel  over here now i don't believe all of this was done   by this one person i think that this was done by  multiple people but this whole panel here is so   much better than the previous way that it was done  you can actually come in here and you can click on   the different bones and it'll actually show  up over here which is fantastic and it really   helps with dealing with your scene organization  whereas with the older system you can see here   if we click on our skeleton and we come over here  you can see that all we have is just bone zero   through 66. it doesn't really tell you what the  bone is unless you click on it and then read like   mixamo hips in this case or in this case like  a spine right so that's the first major change   is that it allows you to actually see your  bones while you're in here now the next major   change here is bone pose which allows you to pose  your bones previously you weren't able to do this   it would just allow you to you know rotate or  translate it via these little um rest and pose   sliders here and they're not very good as  you can see it kinda allows you to mess   around with it but it's really finicky at  best to make it do what you're trying to do   now if we head over to the new system  you can actually come in here and   rotate the bones directly so if i change this  to like 50 you can see i rotated him down   i can also do stuff such as if i come up here  and i click on this little button up here it   allows me to actually come in here and rotate this  myself really opening up animation inside of godot so i can click on like my neck and i can kind  of adjust oh i just broke his neck it's fine   but you can come in here and you can just  kind of adjust how you want him to look   straight inside of good dough and you can also  change your matrix like you could before you   can see i can expand and compress his  head and things like that so of course   you can still do all of that in here but this  allows us to actually animate inside of godot   and i know you're saying why would i  ever want to animate inside of godot   and the reason why is because if you were to say  have an animation like for instance this one where   you're lighting a torch in this case i have an  animation here that's them lighting a torch see   but let's say i wanted to make a animation  where they're lighting a torch but instead   you know they're hunched over or something  well i can come in here and i could say   okay for this specific keyframe here i want  to rotate the hips so if i go find my hip bone   here and i scroll down here let me find my hip  bone if i scroll here and let me find my hip bone   so in this case right here so if i select my  spine and then i come to spine and i go ahead   and just remove this section of animation  here i could come in here into my spine   and make sure i have that one selected and make  sure i have my little bone pose on i could come   in here rotate this down like this and then  snap a keyframe here so let me see i believe   it's here i can come down here i can click key  transform and you'll see that now he bends down   when i want him to light that torch and then  bends back up because i didn't do the rest of the   animation here but it allows us to modify  animations after they're already done so   that way we can do it inside of the editor it  saves a lot of time and it'll save you guys   a lot of trouble with exporting and importing  from like blender to godot you can just do it   inside of here so it saves a lot of time now  i'm going to jump in right here this is post   uh editing um but something that i did not  cover in this tutorial or this video was the how simple it is to add an animation for your  project so if i come in here and i click on   my miximo and i add in a new animation let's just  call it test anim and i can actually come in here   to my skeleton i can click up to my skeleton 3d  give it my initial pose and i can come in here   and click on my bones and let's just give it a  basic starting animation so let me grab bone pose   and let me maybe not shoulder let me grab my  left arm bring that down i am not an animator   so please don't uh don't hate on me too much at  least so let me drag this down and then let me bend up the forearm something like this i guess   i'm not sure and then let me  just go ahead and grab the leg here let's bring this up and then  let's go ahead and bring this leg   down you can actually come up here click on  skeleton 3d and let me actually put my pose in   you know very specific spot here at the beginning  let me go to my skeleton 3d and i can insert   all bone poses and what that means is  it literally says hey all my bones where   they're at i want a position for that so  let's create it and you can see how quickly   it pulled all of those bones together so now i can  pull this back to something like 0.5 let's say and   then let me bend this up and then let me bend this  back down like so and then let me come over to this shoulder let me move  it up and move my forearm   forward to something like i don't know like this there that'll work better actually so you bend it  like that maybe maybe she's saluting or something   although if she's saluting her shoulders  really far low so i should probably   bring that up yeah um so let's say  she's doing a salute or something right   i can go ahead and just insert keys  for all bones and then you can see   easy enough so that's how simple it is to go  ahead and set in your basic animation here   now i just wanted to show you that so let's get  back to the video the other really interesting   section in here is the ability to add in a  modifier stack here now that was not previously   inside of godot so if you look here there is no  modifier stack for bones or anything like that   and i'm not really sure if i'm going to  be able to show you the modifier stack 100   because it's been really finicky for me but if  i click on modifier stack and i do new skeleton   modifier and then i go ahead and i enable it and  i add in a modifier and i go to modifications   and i add in a modification and let's do a  look at and the reason why is because this   is the one that i could get to work and if  i click on this one and i say okay i want my oh i think it's crashing on me actually index is  too low um let's see one there we go if i bring   this up to something like head and i create a node  3d here i've already created one but i'll create   a new one so i have a little node 3d here and i  come up to my bone i click on my skeletal bone   i can actually set up a target for my character  to look at now it's very finicky and doesn't   work 100 percent but if i click on a sign and  i scroll down and i assign it to my node 3d   you'll notice a is head breaks but if i move  this out oops i click down the wrong item   click on this if i pull this out and i pull this  up you'll notice a he's looking the wrong way   if i rotate it around you'll notice  that he's looking the right direction   and it looks like it's kind of the opposite  of what i expect it to be you can see   but it allows you to dynamically animate  your character's head and i'm sure   there's something i'm doing wrong here to make the  head flip on me and i'm curious if i were to do i think it's my bones itself from miximo is  probably making this not happy but that's okay   i mean there's probably something  that's wrong with my bones let's see   i was close i know you guys  are probably yelling at me   going mitch you're doing it wrong you're  crazy um and breaking this poor guy's neck but   you know what can you do let's see 90. okay 90  org so you can see that now he's looking forward   if i scroll down to my node 2d and i move this  around you can see he's following and tracking   my little node here so that's really cool  because it adds in the ability to do dynamic   animations inside of godot you could attract  you could snap this to an npc let's say   and when the character walks up they could  stop whatever they're doing and look at the   player they could say oh there's a player in my my  field of view let me go ahead and take a look at   them and that's something that previously was not  very easy to do inside of godot but here it's all   put into one section and it's super easy and that  is something that is amazing about the new godot   is that they've made this whole little animation  system much more efficient and much better so this   is a great add-on or this is a great addition  to the godot system something else that's super   cool is you can actually disable it and enable  it here so you could have multiple modifiers   modifying your skeleton and have them shutting  off and turning on inside of code you can do that   literally right here so if the player walks up  and collides let's say with the um with a trigger   you could turn on this little modification  and have it snap and track the player which   would be is super useful especially when you're  doing an animation you can actually have them   you know do an animation but still maintain their  view so i could like put this over here let's say   and they're lighting a torch you can see how  it overrides the animation their head animation   which is right here is being overridden to  track this object so that's something to   keep in mind but it's super useful and i really  think it's a great addition to the godot system   but anyway that's all i have for you guys today  so if you like this video go ahead and hit that   like button hey you know if you dislike this  video go ahead and hit that dislike button   because i am here to make content for you guys  what do you guys think about this do you think   animation inside a godot is even worth it  do you think that this is a cool system   do you think it's useful let me know in the  comments below and and hit me up on discord if you   have any questions about this or if you want me  to demo something specific but that is all i have   for you guys today so thank you so much again for  watching and i will see you all next time thanks you
Info
Channel: FinePointCGI
Views: 2,752
Rating: undefined out of 5
Keywords: godot, godot engine, godot bone animation, godot animation, animation, godot 2d skeletal animation, godot game engine, godot animation tutorial, godot character animation, godot tutorial, godot 2d, godot engine tutorial, godot 2d animation, godot skeletal animation, 2d skeletal animation godot, godot skeleton 2d, godot 3.1 skeleton, godot 2d tutorial, godot 4, godot 3, godot spine, godot spine2d, godot animation 2d, godot rig animation
Id: _timNOvSm_U
Channel Id: undefined
Length: 14min 21sec (861 seconds)
Published: Fri Oct 08 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.