Last part of the Biped Alien Task was creating an interactive turntable in Unity.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLI93lZ3uMktzj7DtQOLrsycKt-xnk90XSeDwhSHPgrm4TdmrjkwvvwClBpI738svexAehCbO_l1_JmhUpZrFavxdScmISuAPYaAgvCbtlisCTX7laEoKmv1hr4dktBl0lKiJp-IGSzIfH/s1600/Screen+Shot+2014-05-07+at+10.55.33.png)
I started by importing my alien model into the assets (animations were baked before exporting from Maya) and re-connecting textures with the mesh. I set animation type to 'Legacy', so it can be played and I set all my 5 different circles by typing frame numbers and names into a clips section in animations menu.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMDTeJHYaEIqi_2znQYK4oX3MjX_IUbD0BYwYpHZvL48EdskjBX3P63v0N7FIcKbAKxmXGPk5ciOH9Fb5f9k8R0uCwTAzbKx5nME6johbyzzK8oIV6W6GhQB_A4VpeLxIyJLja6FKtb-Yz/s1600/Screen+Shot+2014-05-07+at+10.58.52.png)
I've then created a camera and directional light. With camera, I've used Camera Components - Mouse Orbit option, so camera can orbitate around the model. I used an empty game object as a target for camera, as aiming on the model wasn't really working well for me.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj97yVJ22JdAjjgZ6ia-A76ZADU_hukHYU87LMyLIAKPHIbNl4XQPJ-lqv9GHsryupLZ4JlZzAogcecBpRB9Fk_7HKyLFoPP-LL-CPDgJosprRVaK9SBXWT78z7TJUVGj_4P8Nlt1Huvjmp/s1600/Screen+Shot+2014-05-07+at+10.47.23.png)
Next step was applying script to allow animations be played random. I copy-pasted script from eStudio, changed 'idle' to the relevant names for my character animations (var anims=new Array("step idle","jump","walk","hip shake","hand up"). I used MonoDevelop for changing Javascript, not Unitron, as it started to crash on uni computers. I then dragged script onto the character in hierarchy. And that's all. Whole process is fairly straight foward and quite enjoyable.
I saved my turntable as a standalone.
No comments:
Post a Comment