Unreal Engine 5.3: Motion Matching Tutorial

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello everyone in this tutorial we will create motion matching by using AI generate animation from motoric car and this motoric car plugin is free for now so you can follow along with this tutorial and this character you can retarget to use with and rear engine manquin motion matching is the PO selection system that select the base animation that fit the trajectory of the character it seem complete but it is not so let's get start open epic game launcher I use and engine 5.3 because the plugin is available in 5.3 not yet in 5.4 add new project go to game and third person the project name is motion matching and create go to plug in search for motion trajectory inable this and poster this plug in and we restart first we need to prepare the animation from motoric car go to motoric car. a you need to sign up to this create a account and sign up then we download Andre engine plugin go to this download and download this and engine 5.3 click download download anyway after you download you get this ZIP file so copy it and go to your and engine that you install U 5.3 and go to engine P the plug in here and then click extract here because I already installed it so you can click on this and after that you can delete this ZIP file and in the plugin you can see this motoric studio after that when you open and rear engine you can go to plugin and search for motor car and enable this plug in and restart next go to Project setting and go to this plugin and motoric car Studio this API location you need to go to motoric car website I will put the link in the description and copy this Moen motor. a/ API SL V1 pass it here and enter your email that you'll sign up in the website and your password after that close this and you can see this button click on it and this networking click log in if your password and your account is correct you can log in successfully let's add actor and this is the style that you can choose for your animation there are a lot of style so I chose the realism mail and this is the sty mixer that you can mix between two style of animation and the percentage that influence the animation you can change this key frame mode to preset mode for the animation and this preset mode can choose let's choose Circle spe is 4 m/ second turn rate is 45 and click generate to generate the animation and when it's ready you can see this anim sequence let's play and here is our animation the preset animation only 4 second if you want the longer animation you can use the key frame mode let's save this animation first and add new folder name test animation open this and this animation name is C call 45 degree cck yes and here is your animation and you can enable this root motion and let's see this bone hierarchy you can delete this an name sequence and another one is key frame mode let's try the key frame at this transform of the character we want to start at zerow you can move this and add the V frame and move it right and change the rotation after you finish you can click generate animation and let's play and you can see the character move along this key frame that we add it you can adjust it using the animation key in the curve editor and this is our loc motion actor and this is the curve that you can adjust and after you adjust it you can generate this animation again and when you happy with your animation you can save this animation a frame animation I will show you how to upload your custom curve to create the animation that follow along with the Curve using blender first go to this and download motor. BL file download it after you download this you can see this motor. blend open and this is the man that can use to create the curve you can click on this motoric car rout and andate it and this is the example of the dance card that I create for the animation this is Ubisoft Dan card this character follow along the dance card and I divide it into many section because our Mo gen can only generate 10 second of animation when you create the dance card make sure your character move in the stable speed example you want your character to move in 4 m per second so you can adjust this key frame for this character and after that click on this motor car route export this curve export fbh choose select object amateure only deform Bon and disable all of this and Export F pange the name to curve and EXP C and if you don't know how to create this curve I will show you enable this Auto keying and this let's click on 30 second 30 frame and move this and you make this key for the location of the character and if you want to rotate the character here let's rotate it 90° and move here and when you play and this one key we want to set it to zero let's set this to zero and let's play you can see this character move with this key frame that we set it and this place we want it our character to turn 90° instantly and Export the same as before click on this and go to export fbh go to this Mo and upload this curve tost curve. fbh and click upload and now we have the character that running along this curve and we download this to import inside Andre engine we need to go to blender and import the animation that we just download go to download and search for style local diffusion this is our animation double click and we can see the skeleton of it this is the foot of the character and the foot is not on the ground we need to edit by press tab or change this to edit mode click on the bone and the root bone and this hip right click parent clear disconnect bone and we can see this foot on the ground and if we open this you can see this rotation is 90° so when you import to and re engine it will rotate 90° we need to apply control a and apply the rotation and we have H is z next we need to change this root ball name to reference and now we can export export as f8 name is then C one like object amature only theform bones done add Li bone and all the back animation export FB to import this animation let's import it and choose M Studio character skeleton and import all this is the animation from blender that follow our custom part that we use key frame to set it you can delete all this animation because I already create repair the animation for us so let's delete it you can download this animation Link in the description below and import all and here is our animation we have Circle animation we have con stand Dan cat from blender diagonal run stop and turn animation and we want to enable root motion for all this animation click on animation and post animation animation sequence we add the filter to this to show only the and select all go to ass set action edit selection in property matric and enable this root motion and with one click we enable all of this animation root motion can click and save all of this disable this filter now we use this animation for our motion matchine our third person character copy it and add new folder name is motion matching pass it here and rename it to BP Mo character for mot character open this and we change the character to se for mod mode Studio character and this en name class we change To None go to character movement search for rotation disable this Orient rotation to movement and we can in AO this and set to 100 next we add the trajectory character trajectory let's create animation blueprint to most Studio character skeleton and click create name this to ABP Mo character open and in this update animation get owning actor has to BP more character and we want to get the character trajectory promote this two prall we get this character trajectory every tick and in this output we can use motion matching this from this post search and we not yet have the database create Post history and connect to this output post we can use the trajectory from this pin compile and this BP mod character click on mes and choose this anim class the animation blueprint that we just create ABP Mo compile let's play we still have the third person character copy this third person game mode as here name it BP motion matching game mode respond BP mod character instead of thir person character and go to word setting if you don't see this word setting you can go to window and enable this ver setting let's change this to BP mod matching game mode and play and you can see this character and we don't have database asset provide for motion Maring to create data asset is very simple just go to animation motion matching motion data base config open this config and choose skeleton this small Studio character skeleton if you are using and engine man skeleton you can choose your own skeleton so choose choose this because our animation is from this mode studio so we already have the default trajectory Channel and post Channel we don't need to change this create motion data base open and we choose the config motion database config next St all of our animation inside this motion database we can filter animation sequence like all animation trct it here and to view the animation you can click on this or you can add the animation one by one from this and you you can click all the animation to view and motion matching we choose the B speed animation we don't need to create the transition blueprint to transition between one animation to another animation because motion matching algorithm which chose it automatically and this document is really useful for guiding you for the animation source that you should use for the animation and we put the link in the description and go to ABP mod character chose this motion database and we can adjust the setting to get the best result from your animation change this to five search throtle time P to 0.5 to make the motion machine play the animation longer period of time before it's switching the animation let's play it seem like we still have problem with the root motion because our animation blueprint we not yet set this to root motion from everything compile and play you can change this character motion this gravity scale acceleration to the value and this working speed to get better result we can go to motion database config and adjust this trajectory Channel and this to Velocity position L velocity direction facing Direction and this body is position XY and this weight is 0.4 and next use velocity o last Direction facing Direction and this this and another one use velocity bying direction index Ray this B this this B this and use position and let sell light test and we have better control so in a all the trajectory the back we can type here a do character trajectory do Deb face and oneplay and you can see the trajectory and if you want to disable it just type A do character Dory do thebank p and Z I notice that when the player start the player start moving a little bit without any input so go to ABP mod character and create another variable name is should search click on on this motion but I need to S search in begin play delay for one second and set this suit SE to through after 1 second and play to retarget the animation from motor manquin to and re engine manquin we can click on the animation and toose retarget animation assets duplicate and retarget animation and we have this ik retargeter from the plugin RG manin Mo studio and you can change the skeleton to XM menu and let's click the Target and here the animation after we retarget you can use this for your man from andine this is the add for our tutorial if you like these tutorials please hit like and please subscribe to my YouTube channel thank you very much for my patrons member who are supporting me your support really means a lot to me thank you very much for watching if you would like to know how to to create the deformable vehicle in Andre engine you can click on this video
Info
Channel: jourverse
Views: 30,456
Rating: undefined out of 5
Keywords: Unreal Engine 5.3, Motion Matching, AI Animation, Motorica Plugin, Blender Animation, Animation Generation, Character Animation, Debug Trajectory, Animation Retargeting, Animation Database
Id: iap3o8_-CLQ
Channel Id: undefined
Length: 35min 11sec (2111 seconds)
Published: Wed Apr 03 2024
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.