• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by Dreave · Nov 04, 2011 at 08:13 PM · blender

Blender Problems!!!!

Almost every time I import something from blender into unity there's an error with it, this time my gun barrel has turned 90 degrees to the right and last time I imported a sniper rifle the scope was screwed up! What am I doing wrong I'm importing it all in fbx but its still messed up! I need help!!!!!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
6
Best Answer

Answer by The-Arc-Games · Nov 05, 2011 at 05:48 AM

We're ourselves familiar with blender and unity problems, and found out that 99% of the time, the reason is

R T S, rotation, translation, scale

  1. create a backup of your blender file

  2. open blender and open your file

  3. in object mode, select all the meshes (press A), press CONTROL-A (apply menu), then select APPLY ROTATION, then again APPLY TRANSLATION, then APPLY SCALE

  4. you'll notice that the objects' pivots will be re-set to the center, and their scale and rotation will be fixed

Then import back, and tell us if it worked :)

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Dreave · Nov 05, 2011 at 12:25 PM 0
Share

its fine now thanks

avatar image Benproductions1 · Nov 02, 2013 at 10:55 PM 0
Share

or you could use this script and not have to do anything more than place the blender file in the project folder: http://wiki.unity3d.com/index.php/FixBlenderImportRotation

avatar image
1

Answer by DaveA · Nov 04, 2011 at 09:53 PM

I don't see the love affair with FBX. Unity usually reads .blend files as-is no problem, but you can also export to Collada or OBJ or 3DS.

I usually 'apply' the transforms (bake them in) before saving/exporting. Object / Clear-Apply / Apply Scale-Rotation to ObjData.

Also remember that in Blender, Z is Up, but in Unity Y is up.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Owen-Reynolds · Nov 04, 2011 at 10:04 PM 0
Share

Huh. Guess I described "how to bake in transforms by hand." Pushing a button to do it would be way easier.

FBX-wise, in my case, my initial mix of Unity/blender versions wouldn't export a 3DS which Unity could read, and .blender files wouldn't import animation, so use FBX out of habit.

avatar image Halleflux · Apr 01, 2013 at 12:27 AM 0
Share

The 'love affair' with FBX is that it is a $$anonymous$$UCH smaller file. One of my models in .blend format takes up 398 $$anonymous$$B, while in .fbx format, it takes up 69 $$anonymous$$B. That's 5.768 times the size in .blend format! For efficiency's sake, USE .FBX!!

avatar image
1

Answer by Wentzel · Nov 05, 2011 at 05:00 PM

Try Applying the rotation, Scale and rotation before exporting hitting Ctrl + A and applying.

Also try Flipping the Normals in Edit mode, That causes some problems for me sometimes.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Owen-Reynolds · Nov 04, 2011 at 09:57 PM

The trick is to be sure you scale/move/rotate the verts and not the model. Blender meshes (and Max, etc...) have Transforms. You can see it from Object->TransformProperties. If you change the model in Object Mode, you are really only changing that Transform.

For example, you model a spear pointing +Y, then, in Object mode, twist it to face +Z for Unity. You still have a +Y-facing spear which happens to be tilted to face +Z. Looks fine for most purposes, but as soon as Unity does a LookAt, that tilt is taken off and you have a sideways spear.

If you use extra root bones for animation, it gets even worse. You might rotate the main root to tilt the model from facing +X to +Z, but that's animation. The real model is still facing +X, but playing any animation at all will apply the tilt to +Z. If you stop animation (maybe to ragdoll it?) it can snap sideways to the "real" facing.

To tilt for real, select all verts, in Edit mode and tilt. Same thing if you want to change where (0,0,0) is. To fix a messed-up model, try resetting Object->TransformProperties to 0's (rotate) and 1's(Scale) and then fix everything in Edit mode.

Imagine you have a spike and have 5 linked copies to it. You can rotate/scale them individually, in Object mode, which changes only the Transform and is a good thing. If you decide the spikes are too fat, you change the "real" object they are linked to, in Edit mode.

I personally think it's easier to do it Unity-style to begin with, but I'm not a real modeller. For experienced modeller's who don't want to change workflow for a certain game engine, can always use the "child to an empty" trick (lots of descriptions of it in these forums.)

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

10 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I get a blender FBX file's animations working in Unity? 0 Answers

Blender model to Unity problem??? 3 Answers

A node in a childnode? 1 Answer

Blender Animation Problems 3 Answers

Blender Animation in Unity Problem 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges