Friday, 28 March 2014

GA - Development - Character Import / Animations

As per the earlier post, where I spoke about setting up the shots in separate scenes. Because I had problems with getting all my animations on to one scene and I know there are many way to accomplish this and here is one.

To start with I had Simon send me all the animations in one Maya folder (Hopefully in the end we will have one master Maya folder with all characters and their animations residing inside.).

So as mentioned above, I acquired the Maya files from Simon and placed them in my assets folder. Here I could see each one and use them quickly and efficiently.

First of all I realised there was scale error between the size that Kinga had made her building model (The size I was working from.) and the scale Simon has used for the character. A small problem and with quick calculations I found that 0.35 was the correct size for 'Riven' our hero model.

Most importantly, since we are not using mechanim: a new feature of Unity. I needed to make sure my Animation Type was set to legacy, this meant that it would use the old method of running animation. The information would be read only and would essentially just play.

When that was all taken care of, I only needed to drag the animation I wanted in to my scene and an automatic 'Animation' component was created which meant it would play automatically.
Since I had previously given Simon the exact animation times and shot framing I knew that all the animations would be a simple as drag and drop. As per the video down below I was able to put this into a prefab and drop the animation straight in!




No comments:

Post a Comment