Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I need some info about importing game objects from Maya to Unity. I am making 2D Tower Defense game, I have made some basic functionality using dummy objects (cubes and spheres). Now I want to replace these dummies with objects made in Maya. The basic objects for gameplay would include walk of enemy and tower rotation towards it.

So what is the standard procedure of my query, would I need a running enemy object animated in Maya, replace it with my dummy objects, or something like multiple still images of enemy and tower movement, combined in Unity?

share|improve this question
add comment

2 Answers

up vote 2 down vote accepted

Here's a FAQ I wrote last year on importing FBX. At that time, FBX was the standard format for imports of 3D models, and I guess it still is. You can model with Blender (free), and use its FBX exporter, then pull those into Unity. Using the FAQ, you can ensure your FBXes come into Unity correctly. At least from Blender, you could export textured models with bone-weighted animations, these would work fine in Unity. Not only that, but you can manipulate models vertex-by-vertex, bone-by-bone and (IIRC) bonegroup-by-bonegroup in Unity, so I guess you could do your own procedural animation provided your pre-FBX model file (in my case, a .blend) was set up correctly.

share|improve this answer
    
What about TD game like "fieldrunners". The tower image changes when enemies are in range. I'm not sure if the rotated tower graphics some kind of 2D image sequence, or a 3D model ?? –  Syed Dec 15 '11 at 8:17
1  
@Syed Not the most ideal answer for 2D, I know. I just offered it in case you wanted to try 3D instead, you could create 3D models in such a way that they are very simplistic, then just texture them on the upper surfaces. Fieldrunners, however, uses 3D models that have been pre-rendered and exported as 2D images (sprite sequences or sheets), like you'd find in Starcraft, Diablo, AoE. Rigging for the rendering process takes a fair amount of effort in and of itself; still, I like that very particular look. There are a few tutorials out there for doing 2D in Unity; it's not something I've done. –  Nick Wiggill Dec 15 '11 at 13:04
    
would there be performance issues on loading pngs sequence vs 3d models –  Syed Dec 16 '11 at 7:05
    
@Syed. No. And anyway, you load prior to gameplay (when the game loads), not during gameplay. Performance is only a concern when it interferes with performance during play. –  Nick Wiggill Dec 16 '11 at 13:56
add comment

It has been awhile since I did this for my project, but I know when you import your model into Unity your model will have a list of various components with it, i.e legs, arms, head, etc... Along with those components you have your animation and if you click on the parent node of the model you will get an option in the inspector to "Bake Animations" and that will create the animation whenever the model is called. http://unity3d.com/support/documentation/Manual/Character-Animation.html That will show you how to do the animations within Unity. http://www.youtube.com/watch?v=p25SFf6Kf0g And that will show you how to go about importing them as well. Hope that helps a little bit.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.