This is exactly what my team was looking for. Thanks for sharing it Robbie
@RobbieTilton2 жыл бұрын
no problem! Glad you found this helpful
@tarekjamanlabu977310 ай бұрын
Thanks a lot. After all these days, finally I've found a way to achieve the expected result in my project.
@CGBurgerStudio Жыл бұрын
Great! I need this one! all I want to do is to transfer geonodes-based-animation to unity, thanks to you I've just done it!
@RobbieTilton Жыл бұрын
glad to hear it!
@Thats_Cool_Jack7 ай бұрын
this video sent me down such a rabbit hole trying to get it to work when i could have just used a simple animation controller
@joydeep36936 ай бұрын
Can you explain how to play the blend shape keys using animation controller?
@Thats_Cool_Jack6 ай бұрын
@@joydeep3693 import your prefab and drag it into your scene > create a new animation controller > double click that controller to go into the editor > create an entry node and connect it to an action node > in the action node, choose the imported action for your animated mesh as the motion > on your prefab add an animator component and add the controller to it
@刘畅-u1o Жыл бұрын
super smart solution!! thanks very much for sharing this!!!
@리빌레마디쉬스페 Жыл бұрын
THANK YOU SO MUCH!!! I love this tutorial and I've been very helped by this.
@annaversum Жыл бұрын
Thank You so much - you made my day today :)
@Velociration Жыл бұрын
Thank you so so much. Clear and concise, just what i needed.
@IlLupoAC2 жыл бұрын
This worked perfectly for me, thank you!
@AdAstra916 ай бұрын
Thank you so much, really! You helped me to solve a complex situation I had with animating both an armature and the object controller by the rig.. And the object animation wasn't just exported at all, I tried everything but I managed to solve only with shape keys. You saved me!
@quad-studio2 жыл бұрын
Perfect - thank you!
@MadsHolst-ow4ew2 жыл бұрын
This is excellent. So useful!
@RobbieTilton2 жыл бұрын
glad you find it helpful :) it's a niche within a niche, but for those who need it - it nice
@mast16655 ай бұрын
This saved me. Thanks!
@GavriloSredovic3 ай бұрын
thanks!
@alwaysmissyouloveyou Жыл бұрын
you are an angel.... Thanks you so much!!! but not work in "Copy Location" Constraint
@CatOnDeWall Жыл бұрын
Thanks so much.
@mehdiip Жыл бұрын
thanks
@ViniciusDeMoraesNascimento Жыл бұрын
Great! thank you o/
@TheIcyGoose8 ай бұрын
Great vid! How are you getting them to show up as skinned meshRenderer meshes in Unity?
@RobbieTilton8 ай бұрын
check your blender export settings if its not working for you. by default anything with blendshapes or bones would import into unity w a skinned mesh renderer
@TheIcyGoose8 ай бұрын
@@RobbieTilton I enabled all the export options for FBX under Geometry (not sure which on did it) and its now showing up as SkinnedMeshRenderer :) Thanks
@ShaunOwens10 ай бұрын
What about for things like a fire or galaxy animated texture?
@imfaded310525 күн бұрын
This is not working for build modifiers , im getting error on that , do anyone have a solution.
@Ron_Barel8 ай бұрын
Can you export an FBX that has both LODs AND these shape keys?
@RobbieTilton8 ай бұрын
not sure. never export LODs in general
@sycomorah13802 жыл бұрын
Nice tutorial! Can you tell me please what options are on in the bake animation bar when you exporting?
@RobbieTilton2 жыл бұрын
it's all default. i didn't change anything on mdd export settings
@windyliu93082 жыл бұрын
wowwww this is amazing!!
@RobbieTilton2 жыл бұрын
i'm glad you enjoyed it!
@lucasfalcao3d Жыл бұрын
Hey thanks so much for the tutorial! If possible, can you tell me why the animations are playing faster in Unity than in Blender for me? Your seems that the animations are taking the same time on both Blender and Unity.
@RobbieTilton Жыл бұрын
watch to the end. i explain at 15:00
@lucasfalcao3d Жыл бұрын
@@RobbieTilton ops, sorry! 🤦♂
@Manas-co8wl9 ай бұрын
Is this perhaps blendable in Unity? Or is that asking for too much
@RobbieTilton9 ай бұрын
what do u mean blendable? you mean as blend targets?
@Manas-co8wl9 ай бұрын
@@RobbieTilton Well tbh I don’t know the specifics of how it works, but Unity can play two animations at once, or blend into one another with state transitions. I thought it was dependent on bone blending, since it would cost if it blends all vertices themselves.
@KirstenSchow3D Жыл бұрын
I gotta ask - why export blend shapes when you could bake your animation to the cube itself? Does that not work in Unity? I'm new to this, so I'm just trying to explore all the options. Thanks!
@RobbieTilton Жыл бұрын
from my experience you can only bake/import animations that have bones. thats great for many cases, but this is for when you have no bones. if i'm wrong about unity being able to import baked animations with no bones just let me know
@KirstenSchow3D Жыл бұрын
I wrote that before finishing the video. I see... the .mdd essentially saves the animation information for you? How necessary is the coding in Unity? I'm doing this for a project for work, but I'm not good with code. I mean, I could follow along and copy what you wrote, but I would also like to understand the importance of that step when just trying to bring in an animation to Unity to just see it - it's not for a game or anything.
@KirstenSchow3D Жыл бұрын
@@RobbieTilton I'm going to test that today, baking animation, but I think your version is way easier to do, and this video was really good at helping out beginner-level entry into Unity. Keeping this in mind, actually, there's a side project I'm working on using Blender exported models into NifSkope for Skyrim modding that this .mdd might also help me out with so I'll be excited if that works there, too. :D
@DBZFighters7 ай бұрын
Can you tell me, how to control the speed of the animation through the script. Somehow, even at 60fps, it's still too fast in the Engine
@RobbieTilton7 ай бұрын
you can choose to do something every X frame if you want: discussions.unity.com/t/how-to-make-a-code-run-in-every-10-frame-not-every-frame/132447
@DBZFighters7 ай бұрын
@@RobbieTilton Thankyou for the help.
@PyubX3 ай бұрын
I love you.
@JimPlaysGames Жыл бұрын
Thank you so much for this. It's an excellent method. However I'm having an issue making it work in my case. I'm trying to get this to work and I can reproduce it on a cube, but when I try it on my own object the animation becomes massively out of scale and different. The object I'm working on is a series of planes in a line like a ribbon, which wraps around a pole. I'm only animating the vertices, and I use the same method that works for the cube, but for some reason it all goes out of whack with my object. Any idea why? EDIT: I figured it out. The scale of the object was off in the x axis. It was 90 while y and z were 1. This was a consequence of how I created the strip of planes. I just had to apply the scale to set it back to 1 without changing the object and the import method worked.
@RobbieTilton Жыл бұрын
glad to hear you got it to work. thanks for sharing the fix should anyone else encounter this.
@danielmigwigitonga6451 Жыл бұрын
After following the video from 17:14, Unity is saying "no animation data in the model". Any tips or solutions to that?
@RobbieTilton Жыл бұрын
when is unity saying this to you? is this an error in the console from the code? technically there are no keyframed animations (just blendshape data) so i dont see the problem unless your code isn't running
@danielmigwigitonga6451 Жыл бұрын
@@RobbieTilton It happens when I import the fbx file to Unity. Would it be alright if I could send you the blender file and see if it does the same thing for you?
@RobbieTilton Жыл бұрын
@@danielmigwigitonga6451 but why does it matter if it has animation or not? we're using skinned mesh blendshapes here not animation keyframes
@danielmigwigitonga6451 Жыл бұрын
@@RobbieTilton I consider animation important because I'm currently working on a project. Nonetheless, I sincerely appreciate your time and response, as well as the helpful tip. Thank you.
@bboyjmc Жыл бұрын
Hi how can you export the wave modifier mesh to unreal engine im a bit stuck trying to get it to work. Once you export it to unreal engine it just sits there as a static mesh with no animation
@RobbieTilton Жыл бұрын
you need to write a script to cycle through the blendshapes like i did in unity, but now in unreal engine. UE calls blendshpaes -> morph targets. You can search google for scripting morph targets in UE.
@CrazyToddlerFun2 жыл бұрын
Actually I am trying to make a fold/rolling animation in blender and it uses a curve and a curve modifier on the mesh please tell me how can I export that rolling animation that I made in timeline without a rig . Basically that animation was achieved by using curve modifier on the mesh
@RobbieTilton2 жыл бұрын
follow the tutorial. it will work
@CrazyToddlerFun2 жыл бұрын
@@RobbieTilton ok thanks buddy I'll try but of If stuck please I need your help
@CrazyToddlerFun2 жыл бұрын
thanks for this tutorial i learned a lot but after some work i exported the mesh and animation is working but the rotation is weired and not satsfying i think after export the scale is changes of the mesh and is disorted
@RobbieTilton2 жыл бұрын
@@CrazyToddlerFun apply the scale in blender with cntrl+a
@CrazyToddlerFun2 жыл бұрын
@@RobbieTilton thanks brother i already fix this by applying scale and rotation btw thanks for your support
@cyangnayc Жыл бұрын
thats good but if you guys wants an easier way just export it as .abc and simply import it to unity its gonna work
@aricnation401 Жыл бұрын
Tried it. Didn't work.
@Brixxter9 ай бұрын
Is there any way to get this working with instantiated geonode objects? I have a sort of animated mesh cloud that I want to bring into unity. I baked the points into an .mdd, imported that back into blender, instantiated my objects on top of them but when I export that as a .fbx it shows up as a regular mesh in Unity, not a skinned mesh, so the animation is lost. Following the steps from the tutorial completely messes up the animation.
@RobbieTilton9 ай бұрын
you can do it with a prefab and then instantiate the prefab. the prefab must have the skinned mesh though. if you're fbx export isn't working check your 3d model programs export settings. likely missing a check-box somewhere.
@Brixxter9 ай бұрын
@@RobbieTilton I ended up figuring it out, I had to bake the MDD of the finished object and then apply the geonode modifier of the object before reimporting the MDD. Thanks for your video, it helped a ton!
@leonortapia1 Жыл бұрын
HI! I'm having this problem with the script in unity (I'm working with the plane and wave modifier): Array index (39) is out of bounds (size=39) UnityEngine.StackTraceUtility:ExtractStackTrace () Im little new in this so I'm not sure how to fix it, I thought it was related to the SkinedMesh render bound that is actually 3.9 x 3.9 x 0.4 so I made it bigger by increasing the extents but that didn't work. My second thought was relating the frames since I have only 38 frames, but that should affect the script right? Thank you very much for the tutorial anyway, hope you can help me :)
@leonortapia1 Жыл бұрын
apparently is related to my frames (blend shapes) cause I augmented it to 186 and now I have this same error but changing the value: Array index (187) is out of bounds (size=187)
@leonortapia1 Жыл бұрын
OK NEVERMIND, I had your mistake before fixing the last piece of code..... haha
@RobbieTilton Жыл бұрын
array index out of bounds means your code is looping through the array beyond the memory space. The size of your mesh doesn't matter. Make sure you have line 29 correct from 10:30 in video. Also make sure line 24 is right with the minus 1
@RobbieTilton Жыл бұрын
@@leonortapia1 glad you figured it out. i like to encounter issues live in video to help folks learn how to debug issues :) indeed confuses some ppl expecting every step to work perfect.
@noahjacobhill73162 жыл бұрын
I'm having a weird issue where the object moves one space when moving the frames from 0-1 any clue why?
@RobbieTilton2 жыл бұрын
did u keyframe the position by mistake? as long as the object position is static - the keyframes of the blendshapes/shapekeys shouldn't jump
@noahjacobhill73162 жыл бұрын
@@RobbieTilton not that im aware but im making a new version just incase
@noahjacobhill73162 жыл бұрын
@@RobbieTilton no i didnt keyframe position. do i need to change the forward or something when turning it to fbx. it works just fine in blender but unity it moves
@noahjacobhill73162 жыл бұрын
@@RobbieTilton Figured it out i needed to rotate it 180 degrees in blender before exporting for some reason. but its all fixed now.
@RobbieTilton2 жыл бұрын
@@noahjacobhill7316 glad you figured it out. thx for sharing
@vasilhs958 ай бұрын
you could just interpolate your weights in code instead of pushing them to 100 every frame, and skip the whole mdd baking part, which would lower the size of your files and your ram consumption significantly. Otherwise great showcase.
@steventomek4236 Жыл бұрын
hi there, i tried your code etc but i made a mistake of some kind, everything is moving XD, my wave modified portal just strays in uknown to humanity direction , and my cube starts floating into the air, what could i've done wrong ? XD plesae respond i am stuck :C
@RobbieTilton Жыл бұрын
if ur sure your code is correct. try looking at your geo in blender and confirm the origin of the object is in the center and the scale is applied before you bake the frames/export
@steventomek4236 Жыл бұрын
i've made cube stay in place but wave modified portal (a torus and a plane circle) just rotates and moves out of nowhere, and changes it's x and y scaling and now i am stuck here XD
@steventomek4236 Жыл бұрын
every time i hit play , this havoc with portal just moving everywhere and scaling diffrently seems to happen idk what to do know
@RobbieTilton Жыл бұрын
@@steventomek4236 if it worked with the cube - the code should work with all the others. I think it's a problem with your bake/export. try creating a new blender scene with a fresh plane/modifier and bake/export.
@steventomek4236 Жыл бұрын
@@RobbieTilton i will look into it later tommorow it's 5am now and i am waking up in 6 hours so yeaaaah, but it might be it! I've never operated with origin of the object and applying scale , i always just go into edit mode and press A to select all and S to scale and then work around with it , what i find peculiar is that shape that the portal is becoming have never been active in blender i mean i've never used it, not in blender and not in unity so it's wierd but i will try again later, thanks for replying ^^