[go: up one dir, main page]

Hey there, thanks for checking out my work! My name's Charlie, I love to make little 3D art things whenever I get the chance, and I sometimes have some neat stuff available in my store.

cgstephann asked

Hello! I just found out about your work through sketchfab and I am loving every bit of it, the colors and smooth animations are my favorite part. If you're ok with sharing, could you talk a bit more about how you managed to get the alpaca character's poncho to behave in Unity? I am facing a similar issue with my own character but I've hit a wall because Unity doesn't support blend shapes apparently. Any tips or terminology that will send me on my way would be much appreciated!

Hey so sorry for the late reply, thanks so much for the lovely comment! Its really strange that your blendshapes aren’t working as Unity definitely should allow them to be imported with your animations (I believe it’s supported them since Unity version 4 or something?)

The poncho does indeed use blend shapes, 40 different ones. I tried a few different rigging solutions for the poncho before settling on blends as the most appropriate for the look I wanted to achieve.

image

They should work well with your game assets both on their own or in combination with skinned joints. I haven’t exported anything for an engine in a long time so forgive my rustiness but I’ll try to recall how it worked.

If you aren’t handling the blends directly from code you’ll be wanting to making sure they’re actually keyed on top of your animations, or keyed (from 0 to 1, or whatever sections of them you intend on using) on their own.

I’m not sure which software you’re using but there should usually be some sort of option for including blend shapes in the FBX export dialog itself.

I swear there used to be something like that in Maya but I can’t for the life of me find it anymore. While digging around trying to find it I found there’s a new “Game Exporter” under the file menu. Gave it a quick test, so far is way easier to work with compared to the old FBX exporting, I’m totally glad for that!

image

When exporting your animation clips, other than the default settings (which includes having bake animation turned on, I recommend keeping it on) and adding the details for your animation clips, I found that turning on input connections was what I needed to get the blend shapes to successfully export.

From there you can simply drag your .fbx’s into Unity and your blends should work right away as animations without any extra hassle (the “import blends” option was turned on by default in the model import setup window the last time I remember using the engine).

The one other thing I can think of that may be preventing your animations from working with Unity correctly is if you are importing seperate files for your different animations? From memory I think I figured out through trial and error that they all had to be contained within the same file as the model import and split up in the animation section of the asset’s import options within Unity? In testing out the Game Exporter though, that seems to no longer be an issue, hooray!

cr.