Game Development Reference
In-Depth Information
Importing Models into Unity
One of Unity's best features is its ability to import assets by simply having them in the
user's project directory. It is also capable of importing 3D model files from not only
Blender, but also 3ds Max, Maya, Cinema 4D, Cheetah 3D, and Modo (minus bones.)
The downside to this feature is that in order for your copy of Unity to read the propri-
etary files of these programs, you must have a copy of that 3D program on your computer.
If you are working on a Unity project with a Macintosh computer, for example, your co-
artist's 3ds Max work is unusable, since 3ds Max is not made for Macs.
Unity imports models through its FBX importer, which changes your files into the
FBX file format. This format can also be exported from Blender and other 3D programs.
Exporting to FBX from your art programs not only makes Unity's job of importing mod-
els easier, but also creates universally usable artwork when you work on a team. In this
section, you will export your zombie as an FBX and bring it into Unity.
1. Open your zombie file or open Ch10_Zombie_ReadyForImport.blend from the Chapter 10
folder at the topic's web page, www.sybex.com/go/gameblenderunity .
2. Go to the File menu in the Info Editor's header and choose Export b Autodesk FBX
(.fbx), as shown in Figure 10.1.
3. In the lower-left corner of the File Browser window that opens you'll see options for
export. Ensure that -Z Forward is chosen from the Forward drop-down and that
Y Up is chosen from the Up drop-down. These options are chosen by default, but
ensure that these and other options are the same as those shown in Figure 10.2. Call
the file ProfessorZombie.fbx and save it in a new file folder for exported versions of
your zombie.
Figure 10.1
Selecting FBX export from Blender's File menu
Figure 10.2
Blender's FBX export
options
Search WWH ::




Custom Search