Importing Models / Importing in Unity
Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com’s entire library of video tutorials.
Learn More
Subtitles of the Movie
Let's take a look at importing models into Unity 3D. Now even though Unity 3D is an extremely powerful game engine it is a game engine and no a 3D Modeling application. So even though you can create cubes and spheres and stuff like that is not built to make characters or anything else. It is supposed to run characters in your game but you cannot make them with Unity. So, you'll need different software to do that and some of this software is really good and even free and some of this software you need to pay for. Now for a list of supported software that works great with Unity 3D go to you Unity3D.com, click on Unity and then under Assets Importing scroll all the way down and you will see a list of applications that work great with Unity. Now at the time of recording this is the current list but maybe when you're watching this is there's already some new versions or other software that are supported at that time. Maya is a great application made by Autodesk as well as 3D Studio Max, these are both pretty expensive but worth their money, 3D Studio Max though only works on Windows. Cheetah 3D is a small little application for only 100 dollars and it works on the Mac. Cinema 4D is my favorite and it works on Windows as well as on the Mac and it is a little pricey. Blender is also perfect, it works on Windows, Mac and even on Linux and Blender is free, so if you want to use blender that is a great option to go for, however for me the interface was a little bit too complicated. Then there's Carrara and Lightwave, these are also not free, XSI and then SketchUp Pro, Wings, those are smaller applications. So, but the bulk of the users of Unity 3D use either Maya or some of the first 6 in this list here. Now, you've already guessed that I'm using Cinema 4D and let's take a look at exporting this model for the Unity 3D Engine. Now, let's take a look first at the objects that are currently in the scene, we have a turret and this turret is grouped with a body, so if I move the body around you can see this is the turret body, it is separate from the base. Then, inside of the body are the guns, I can move those separately too, for example, when he's shooting like this I can animate him and then underneath the guns there the difference between the left one and the right one. Now this is all set up perfectly for animation also for use in Unity 3D. As you will see when I export this then the turret will be exactly the same hierarchy as it is in Cinema 4D. Now, you don't have to use Cinema 4D at all, I have already exported this model for you so when you open your project files there's a folder called turret and in this turret there is a turret. fbx which is the exported format and then there's the 2 materials that you will need. So let's go back in to Unity 3D and let's create a folder Models, it's already here and then right-click it, create a new folder and call this turret. Now let's go back in to our finder and drag these 2 on top of turret to place them in this few and this will automatically import your model. Now this may take a second because there's also 2 pretty big materials attached to them and there we go. Now, as you can see, there's a couple more things added than we have dragged in. We dragged these 3 in, the Normal the turret fbx and then the color map but then Unity created on thing for us which is called the material folder and in it place the material for the turret and already found the texture. Now this is very handy and speeds things up although in this case we don't just a diffuse we also need a bumped map so let's change the shader to bumped diffuse and then drag the normal on top of it, OK, perfect. Now let's see what happens when we drag our turret into the scene and it's a little small so we might have to zoom in there a little bit but it seems like everything is working fine as of now. Now let me delete this turret real quick because I think it's a little small so let's go back and get click on our turret fbx and then we can change some import settings here. Now, one thing you need to note is that when you import models into Unity by default you walk right through them, they are not set up for collision so if you want that just check the box Generate Colliders. OK. Then in this case it's creating 1 material for texture that's fine. You can also change that parent material but in this case we only have one so, let's leave that at that and in this case there's also no animations set up however if you have an animation timeline you can split them into multiple animations so that Unity can use them. Now let's hit the apply button because we changed the generate colliders mad this will do the trick. Now, also let me change the skill factor because it was pretty small in the view there so let me change that to, for example, 0.5 and hit Apply. Now when I drag it in it should be a little bigger and that's exactly what I was looking for, still a little small, just let me undo that. Go back into our turret, scroll down to the import settings and let's change this to 0.1 and then hit Apply. Now when I drag my turret in it should be big enough, yeah, that' about exactly what I was looking for. I can move it around and later I can save it as a prefab. Let's delete this for now and let's continue on with some more information. We'll later come back to the turret as we use it to shoot at our main character.
Tutorial Information
| Course: | Introduction to Game Development Using Unity 3D |
| Author: | Efraim Meulenberg |
| SKU: | 34092 |
| ISBN: | 1-936334-03-8 |
| Release Date: | 2010-02-23 |
| Duration: | 5.5 hrs / 75 lessons |
| Work Files: |
Yes |
| Captions: | Available on CD and Online University |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |
VTC Sign up & Benefits
- Unlimited Access
- 98,729 Video Tutorials (23,265 free)
- Video Available as Flash or QuickTime
- Over 1026 Courses
- $30 for One Month Access
- Multi-User Discounts Available
United States 