Animated curtain from Blender to Unity

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 พ.ค. 2020
  • In this video I will show you how to create an animation of a curtain being pulled open using cloth simulation in Blender. After that we will take a look how to get this animation to Unity.
    Sadly, the recording software did not catch everything, e.g. in Unity the context menus are missing, but the general outline of the process should be clear.
    Thanks to the request to Batuhan13 in the Unity-forums. ;)
    You can download the fbx and the two blend files (with keyframes and with the simulation) here:
    drive.google.com/file/d/1uamc...
    If you have any questions you can ask those here or in the thread of the forum: forum.unity.com/threads/bake-...
    To see this effect in a game, watch out for my free escape room game:
    store.steampowered.com/app/13...
    / bitbeastgames
    bitbeast-games.com/

ความคิดเห็น • 72

  • @Epian.
    @Epian. 3 หลายเดือนก่อน +1

    Thank you so much! Exactly what I needed. Just a tip if someone gets in the same situation as me:
    If your curtain gets wacky after your mdd import, you can try:
    bake your animation -> export mdd -> delete any keyframe that might already be on your curtain -> export -> delete cloth the modifier
    -> reimport -> if it makes your mesh change rotation or position, parent an empty on it and ajust by moving the empty

    • @BitbeastGames
      @BitbeastGames  3 หลายเดือนก่อน +1

      Thank you for your useful additions! :)

    • @dafnipatelou5472
      @dafnipatelou5472 15 วันที่ผ่านมา +1

      you saved my life, thanks

  • @bartholomewjohnson
    @bartholomewjohnson 3 ปีที่แล้ว +5

    Great tutorial! This procedure (export to mdd -> reimport mdd -> export to fbx) also works for rigless animations made in edit mode with the "Animation: AnimAll" plugin in Blender. Just remember to move the Skinned Mesh Renderer to a child object of the object with the Animator after importing the fbx in Unity.

    • @BitbeastGames
      @BitbeastGames  3 ปีที่แล้ว +1

      Thanks for the hint, I will check the plugin out!

    • @giovannazanella
      @giovannazanella 2 ปีที่แล้ว +1

      this comment solved the issue I had been on for hours, thank you!

  • @JeremyMaynard
    @JeremyMaynard 3 ปีที่แล้ว +3

    FINALLY found a good tutorial on this! Thank you!

  • @ringoneo
    @ringoneo 3 ปีที่แล้ว

    thank you for making this video! came across your post in the forum that did exactly what i was trying to do

  • @KristofGiber
    @KristofGiber 3 ปีที่แล้ว

    Awesome, this was the only way it worked, thank you!

  • @bjorngit7793
    @bjorngit7793 3 ปีที่แล้ว

    That is perfect! Thanks man!

  • @bengism
    @bengism ปีที่แล้ว +1

    Thank you for this tutorial! It was very helpful, glad that you shared. Have a nice day!🌸

    • @BitbeastGames
      @BitbeastGames  ปีที่แล้ว +1

      Thank you, good to hear that. Have a nice day as well :)

  • @tendividedbysix4835
    @tendividedbysix4835 2 ปีที่แล้ว +1

    THANK YOU so much bud, seriously this has been driving me insane, you are amazing!

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว

      Thank you! I am still insane from it so I am glad my mental demise was worth it :D

  • @anonimowyuzytkownik8372
    @anonimowyuzytkownik8372 11 หลายเดือนก่อน

    !!! YOU ARE AWSOME

  • @guillermocuenca6547
    @guillermocuenca6547 3 ปีที่แล้ว

    Me turboflipa, te debo una eres un grande

  • @yolokas
    @yolokas 4 ปีที่แล้ว

    Wanted to create a theatre curtain for my game and this was a perfect tutorial for this nichè topic! Thanks!

    • @ghost-cy7gz
      @ghost-cy7gz 3 ปีที่แล้ว

      What is your game

    • @yolokas
      @yolokas 2 ปีที่แล้ว

      @@ghost-cy7gz store.steampowered.com/app/1666890/Puppet_Play/ Not yet released, but you can actualy see the curtain at the beginning of the trailer! :)

  • @anjdeadsec459
    @anjdeadsec459 4 ปีที่แล้ว

    Really helpful mate! :D

  • @jachunlii6615
    @jachunlii6615 10 หลายเดือนก่อน

    this is very useful!!

  • @stelcxantisto
    @stelcxantisto 3 ปีที่แล้ว

    Blender ASMR video, didn't expect that.

  • @batuhantugrul1966
    @batuhantugrul1966 4 ปีที่แล้ว +1

    Awesome :D

  • @beckmala
    @beckmala 4 ปีที่แล้ว

    When I export the curtain to unity the fbx doesn't have an avatar and it also doesn't have an animator component applied to it already like it does in your video. Do you have any idea what I might be doing wrong? I'm using Unity 2019.3 and Blender 2.83

    • @beckmala
      @beckmala 4 ปีที่แล้ว

      Never mind, I just manually added an avater and then it worked! Thanks for the great video :)

    • @BitbeastGames
      @BitbeastGames  4 ปีที่แล้ว

      @@beckmala Thank you :) I as using Unity 2018.1.3 so I can only guess... maybe the default behavior is changed. After importing the fbx I can click on it and see the import options in the inspector. There under "Rig" the avatar definition is set to "Create From This Model" and under "Animation" the checkbox "Import Animation" is checked. Maybe this is off in 2019 or maybe this does not automatically lead to the creation of an Animator.
      Long story short: I did not skip any setup in Unity regarding the missing component ;)

  • @expresslysoy8573
    @expresslysoy8573 9 หลายเดือนก่อน +1

    how can I optimize the curtain animation created in blender for smooth performance and compatibility on a mobile platform like unity for android?

    • @BitbeastGames
      @BitbeastGames  9 หลายเดือนก่อน +1

      I have no experience with that but I would think that compatibility is not an issue because it is a "simple" mesh animation. Performance wise it is a large file (I think 16MB), so that should be reduced. You can try to use fewer subdivisions to have fewer polygons and by that less animation data. You can also reduce the frame count so it is a bit faster or less smooth which might not be noticeable on a small screen.

    • @expresslysoy8573
      @expresslysoy8573 9 หลายเดือนก่อน

      @@BitbeastGames thank you ( :

  • @montymonster
    @montymonster 3 ปีที่แล้ว +2

    ASMR Blender tutorial.

    • @BitbeastGames
      @BitbeastGames  3 ปีที่แล้ว +1

      :D I hope in a good, relaxing way and not the boring way ;)

  • @stevehinan
    @stevehinan 3 ปีที่แล้ว

    💪

  • @VTsimpingSan
    @VTsimpingSan 3 ปีที่แล้ว

    Could this work for making clothes the character wears?

    • @BitbeastGames
      @BitbeastGames  3 ปีที่แล้ว +1

      I think it would. But be aware that the animations are fixed and the character does not interact with the cloth. So you would need an animation for every character animation. If you use a dynamic system with blend trees I am not sure if this would work.

  • @lumzalum8863
    @lumzalum8863 2 ปีที่แล้ว

    I'm having issues where the key shape animation no longer lining up with the cloth sims version- meaning there's now clipping with the character model, can anyone help?

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว

      I am far from being an expert and I am lucky to have found one way this is working so I only have a wild guess...maybe some keyframes were dropped on export or import to Unity? Anything that says compression or keyframe reduction?

    • @lumzalum8863
      @lumzalum8863 2 ปีที่แล้ว +1

      @@BitbeastGames Don't think so, I'm currently just re-importing back into blender not Unity quite yet. I've tried a bunch of different start keyframe to help realign the animation but it isn't quite right. Still this tutorial was atleast a step in the right direction for me.

  • @praveenb-xr
    @praveenb-xr ปีที่แล้ว

    Hi I have done same thing, but didnt key the Empty axes..After point cache import my dimensions of the model has changed..I have used same kind of Method for othe cloth animation but it didnt work?

    • @BitbeastGames
      @BitbeastGames  ปีที่แล้ว

      Hey, the only thing I can think of that maybe the new Blender or plugin version have changed behavior. Maybe check if there are some checkboxes on export or import that deal with scale or similar.

    • @praveenb-xr
      @praveenb-xr ปีที่แล้ว

      @@BitbeastGames I checked but not able to find it. what version of bleder you used in the Tutorial??
      I have done most of the animation but in final export the shae keys data changed.. Can I send you the file and can you check that?

  • @MS-ph2ol
    @MS-ph2ol 3 ปีที่แล้ว +1

    Was the end file really big?

    • @BitbeastGames
      @BitbeastGames  3 ปีที่แล้ว

      The FBX was 16 MB. Not too big but compared to the rest of the game a bit overkill maybe. I have not tried to optimize it so far because it just works and I carried on with other tasks ;)
      I have put a download link in the description with the FBX, the blend file with the baked keyframes, and the blend file with the simulation.

    • @MS-ph2ol
      @MS-ph2ol 3 ปีที่แล้ว +1

      @@BitbeastGames Thank you! I am just concerned because I am developing for mobile and trying to shed as many megabytes as possible. Trying to stay under 100MB as a final product.
      Thanks again!

    • @BitbeastGames
      @BitbeastGames  3 ปีที่แล้ว

      @@MS-ph2ol Hm ok, you certainly can try to reduce the detail of the curtain, the duration of the animation, the number of keyframes. Try to experiment a bit :)

    • @MS-ph2ol
      @MS-ph2ol 3 ปีที่แล้ว +1

      @@BitbeastGames Yeah, cloth is tricky on mobile in regards to file size for your method vs. processing power (battery usage) for live simulation.

  • @Miropups
    @Miropups ปีที่แล้ว +1

    Hello, I have some problems with "baking" my cloth simulation, maybe you can give me your discord and give me some advices please) (problem with subdivision)

    • @BitbeastGames
      @BitbeastGames  ปีที่แล้ว

      Sure, I can certainly try ;) Join here and write a PM to "olipool": discord.gg/grjdJvM

  • @davefohat3051
    @davefohat3051 ปีที่แล้ว

    Hey, whenever i delete my Cloth modifier from my animation it deletes the whole animation even though i cached and export imported the mdd

    • @BitbeastGames
      @BitbeastGames  ปีที่แล้ว

      Hey, I have been thinking but don't know why this might happen. Which version of Blender are you using?

    • @ehuvio
      @ehuvio ปีที่แล้ว

      @@BitbeastGames I have also this problem with Blender 3.3.1

    • @ehuvio
      @ehuvio ปีที่แล้ว

      Finally got it working

    • @silviadeblasi9194
      @silviadeblasi9194 ปีที่แล้ว

      @@ehuvio how did you solve it?

    • @ehuvio
      @ehuvio ปีที่แล้ว

      @@silviadeblasi9194 If I remember correctly, I didn't use any export-import stuff, but used cloth animation with Hooks and then made shapes of it all in keyframes.

  • @treexs2353
    @treexs2353 2 ปีที่แล้ว +1

    I only have pointcache opiton in export.
    It doesnt show in import

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว +1

      I am sorry to hear that. Can you maybe install it again? Otherwise, it may be an issue with a newer Blender version... if it does not work you can maybe ask in a Blender forum or the developer of that im-/export.

    • @treexs2353
      @treexs2353 2 ปีที่แล้ว +2

      @@BitbeastGames i tried using mdd extension and it worked.

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว +1

      @@treexs2353 Thanks for letting me (and others) know! :)

    • @treexs2353
      @treexs2353 2 ปีที่แล้ว

      My final goal was to animate curtain and add it into a game.
      But it didnt work. Btw thanks for responce.

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว

      @@treexs2353 Which part did not work for you?

  • @lucutes2936
    @lucutes2936 9 หลายเดือนก่อน

    13:05 that doesnt work anymore

    • @BitbeastGames
      @BitbeastGames  9 หลายเดือนก่อน

      Oh no, which version are you on and have you found a workaround?

  • @Bensmithgardening
    @Bensmithgardening 2 ปีที่แล้ว +1

    I can't hear you your voice is annoyingly soft and quiet, are you in a library?

    • @BitbeastGames
      @BitbeastGames  2 ปีที่แล้ว

      Sorry to hear that. I was indeed recording that at night with everyone sleeping :D But I also don't have good recording equipment and this was just to illustrate some steps I did for someone in the Unity forum (and it got a bit longer than expected).