"Unity" 3.3 makes a model with 3DS Max 2015 and imports it into Unity

Source: Internet
Author: User
Tags unity 5

Categories: Unity, C #, VS2015

Date Created: 2016-04-05 first, three-dimensional software introduction

Due to the relatively weak modeling function of the game engine itself, both professional and freedom can not be compared with the professional three-dimensional software, so most of the game model, animation and other resources are through the professional three-dimensional software to make, after the completion of the production and then import it into unity use on the line.

Unity supports almost all major three-dimensional file formats, such as. FBX,. Dae, 3Ds,. dxf,. obj, and so on. Among them, the most commonly used three-dimensional modeling software is: 3Ds Max, Blender, Maya 、...... such as

After users export files in 3Ds Max, blender, or Maya to a resource folder in the Unity project, Unity automatically updates these resources and then it can be used in the project.

1, 3DS Max

Autodesk3d Studio Max (referred to as 3ds Max or Max) is a three-dimensional animation rendering and authoring software developed by Autodesk for PC-based systems. 3ds Max is widely used in advertising, film and television, industrial alighted, architectural design, three-dimensional animation, multimedia production, games, auxiliary teaching and visualization of work and other fields.

3ds Max 2015 (16.9 Business Edition) has a file extension of ". Max", which can be directly exported with the FBX export plugin provided by the software (the plugin was automatically included at the time of installation).

When the. fbx file exported through this software is imported into unity, the mesh (Meshes), texture (textures), animation (animations), Bones (Bones) are supported.

2. Maya

Autodesk Maya is a three-dimensional software produced by Autodesk in the United States, which specializes in film and television advertising, character animation, and movie stunts. Maya provides good 3D modeling, animation, effects and rendering capabilities, and is a high-end, three-dimensional production software for cinematic levels. Maya can run on Windows, Mac OS and other operating systems.

When the. fbx file exported through this software is imported into unity, the mesh (Meshes), texture (textures), animation (animations), Bones (Bones) are supported.

3. Blender

Blender is an open-source, cross-platform, all-in-one three-dimensional software offering solutions from modeling, animation, materials, rendering to audio processing, video editing and a range of animated short film productions. Blender has built-in scripts for Python, support for the Yafaray renderer, and an integrated game engine with rich functionality.

When the. fbx file exported through this software is imported into unity, the mesh (Meshes), texture (textures), animation (animations), Bones (Bones) are supported.

4. Cinema 4D

Cinema 4D is a three-dimensional software developed by the German Maxon computer company, known for its high computational speed and powerful rendering plugins. Cinema 4D is widely used in advertising, film, industrial design and other aspects of excellent performance. It is becoming the first choice for many-stream artists and film companies.

When the. fbx file exported through this software is imported into unity, the mesh (Meshes), texture (textures), animation (animations), Bones (Bones) are supported.

5, Lightwave

Lightwave is a cost-effective three-dimensional animation software developed by the American NewTek Company, which is extremely powerful in biological modeling and character animation. A rendering module based on ray tracing, radiosity, and other technologies makes it a perfect rendering quality. Lightwave's version 11.5 (or higher) has become a powerful, three-dimensional animation software that supports most operating systems and has a consistent operating interface across operating systems.

When the. fbx file exported through this software is imported into unity, the mesh (Meshes), texture (textures), animation (animations), Bones (Bones) are supported. Ii. ways to import models into unity engineering

When you import a three-dimensional model made with other software, unity represents many different objects, including the game object (Gameobject), the mesh (which can be skinned according to the import options), the animation segment (Animationclip), and so on. In a folder under Project, the primary import object is a model Prefab.

For mesh, the imported mesh must be attached to the game object (Gameobject) using the mesh filter component. In addition, to make the grid visible, the game object (Gameobject) must also have a grid renderer (mesh Renderer) or other rendering components attached. With these components, the grid can be visible at the game object (Gameobject) location, and its exact appearance depends on the material used by the renderer.

The grid filter (mesh filter) is combined with the grid renderer (mesh Renderer) to make the model appear on the screen.

Unity's grid importer provides a number of options for controlling mesh generation and associating it with its textures and materials.

1. Export the model to. fbx or. obj format

This method first uses some three-dimensional software to export three-dimensional files, such as exported to. FBX file or an. obj file, and then import the exported three-dimensional file into unity.

This is the recommended way.


    • Export only the data you need
    • Using verifiable data (re-importing to a three-dimensional resource bundle in Unity)
    • Files are usually smaller
    • Encourage the use of modular methods-for example, to select different components based on collision type or interactivity.
    • Support for other three-dimensional packages (three-dimensional packages that do not directly support their proprietary format).


    • Prototypes and iterations of the pipeline can cause slower running times.
    • It is easy to lose the version information records between the source working file and the game data (such as the exported FBX).
    • Direct import of professional three-dimensional software engineering documents

This approach directly imports the three-dimensional application file into unity, such as directly importing a. max file made with 3DS Max, or directly importing a. blend file made with blender.

This is generally not the way to be used.


    • Fast iterative process (saves source files and Unity re-import time)
    • The initial phase of simplification.


    • All machines that use Unity engineering must have a licensed copy of the software installed.
    • Useless data can greatly increase the file's capacity.
    • The file is too general to reduce the speed of Unity updates.
    • Added difficulty in troubleshooting.

3. Scaling factor (scale Factor) and file scale

Unity's default unit of measure is "M", and when you import a model from another professional three-dimensional software into unity 5.3.4, if you want the model to be the same size as the original, you need to set a scaling factor whose default scale relationship is as follows:

When importing 3ds max, the scaling factor should be set to 0.01

When importing Lightwave, the scaling factor should be set to 0.01

When importing Maya, the scaling factor should be set to 100

When importing cinema4d, the scaling factor should be set to 100

If the file is imported, the unit will then provide a file scaling ratio, which is actually the scaling factor.

The following examples illustrate the specific steps. Iii. example-Import the. FBX model created with 3DS Max 2015 to Unity

The following is an example of 3DS Max 2015 (16.9 Business Edition), which explains the basic ways to create a model with professional three-dimensional software and the basic steps to import the model into unity.

1, solve the problem of 3DS Max 2015 display driver first

For some reason, the 3DS Max 2015 recommended display driver (Direct3D 11.0) does not display the model properly on my computer and only displays wireframe. To solve this problem, you need to change the display driver first. To do this: Run 3DS Max 2015, select "Custom", "preferences" in the main menu, and in the pop-up window, change "display Driver" to "Direct3D 9.0" as shown in:

Once modified, the model or wireframe (F3 toggle) can be displayed normally by restarting 3DS Max 2015.

2. Set the unit of measurement

Since the. FBX model exported by 3DS Max 2015 is imported into unity by default with a scaling factor of 0.01, you can set the system units and display units of 3ds Max 2015 to "centimeters" in order to have the same size that you see when you import the model you created into unity. Here are the specific ways to do it.

Start 3DS Max 2015, custom, unit settings, as shown in the figure on the left. In the pop-up screen to the right below, set display unit scale to CM:

Click the System Unit Settings button on the right, and in the pop-up screen below, set the system unit scale to "cm":

Click the OK button to complete the unit setup.

3. Create a cube

Create a cube with a length width height of 100cm and move its position to the origin of the coordinates. As shown in the following:

4. Export the model to. FBX format

Select the cube that you created, and then choose Export, Export selected object, to export the model to a file named BOX001.FBX. As shown in.

Remember the exported file location for next use.

Another easy way to do this is to import the model directly into a folder in the Unity project so that you can double-click the model in Unity project to open 3DS Max 2015 and edit the model, and unity will update automatically after editing, no need to copy.

To demonstrate how to import an existing model, the example in this section does not save the model directly to the Unity project (the next section illustrates this approach).

5. Import the model to unity

Run unity, open the Ch03demos project, and then drag and drop the Box001.fbx file that you exported from 3DS Max 2015 (if you have additional files and folders that you want to import) to the Models folder under the Project View Assets folder:

Viewing the viewer, you can see that the model's "File scale" is 0.01, while "scale Factor" is 1:

6. Using imported Models

Drag and drop the BOX001.FBX into the hierarchy view and adjust its position as shown in:

7. Stickers

Drag and drop the brick texture under the texture folder onto the Box001 of the hierarchy view to see the effect of the model map in the scene:

With this example, we understand the basic steps from creating a model with 3DS Max 2015 to importing and using these models in unity, and then you can either create the model yourself or directly import the various complex models that others have created.

"Unity" 3.3 makes a model with 3DS Max 2015 and imports it into Unity

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.