Sunday, February 2, 2014

How to perfectly import a model from Blender into Unity with 0,0,0 rotations and all that jazz. Using Blender 2.69 and Unity 4.3.3f1

Here are the steps for exporting an fbx of your model in Blender and importing it into Unity with desired rotations and matching units. I was using Blender 2.69 and Unity 4.3.3f1

In Blender:
  1. Make your model. (Hahaha! Yes. You need a model for this.)
  2. Place your model in origin of your scene.
  3. Rotate your model on the x axis by -90.
  4. Press Ctrl+Alt+A and reset all rotation, scale and transforms.
  5. In the Object Mode, deselect everything by repeatedly pressing A until all models are unlit.
  6. Select your model by right clicking on it in Blender.
  7. Go to File>Export>AutoDesk FBX (.FBX) and click.
  8. Go ahead and use these settings. (In this example, I'm not exporting animations and I'm exporting only the object I selected in the Blender scene.) 
  9. Name you file appropriately and click export. Then drag and drop your fbx file to your Unity project.

In Unity:
  1. In Unity go to import settings of said model (You can do this by clicking on the fbx file in the unity Project tab. The window you see under Inspector tab is where these settings are.) and under the Model tab set your Scale Factor to 1. By doing this we'll have identical units in Blender and Unity.
  2. If you're not using animations then go to Rig tab and set Animation Type to None.
  3. If you're not using any textures or you don't like Unity automatically generating .fbm folders, then under the Model tab uncheck Import Materials.
  4. Drag and drop your fbx file to your unity scene and you should have a Game Object with the desired results!
Hope this was helpful!
Tunc

No comments:

Post a Comment