Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
3
Question by carnivoris · Oct 10, 2013 at 04:30 PM · blendermodelalignment

XYZ axes between Unity and Blender not matching

I'm having a really tough time trying to get my model's alignment right in Unity. I can set it in Blender where the Y axis is up and the Z axis is forward, but when I import it to Unity, the axes are completely different and I can't seem to fix it. Is there a trick or something I'm missing?

Comment
Add comment · Show 5
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 meat5000 ♦ · Oct 10, 2013 at 04:31 PM 1
Share

I resorted to rotating in Blender then applying rotation before export.

avatar image carnivoris · Oct 10, 2013 at 04:39 PM 0
Share

There's something strange with my Blender axes, as well. Y isn't pointing up in relation to the grid. What have I done with my Blender?

avatar image meat5000 ♦ · Oct 10, 2013 at 04:40 PM 1
Share

You need to correctly set your Up and Forward DURING the FBX export process, in the left hand column.

avatar image carnivoris · Oct 10, 2013 at 04:49 PM 0
Share

I'm not even exporting to FBX, I'm just using .blend files. Is that what I'm doing wrong?

EDIT: I just exported to FBX with those settings, but no models shows up in Blender.

avatar image meat5000 ♦ · Oct 10, 2013 at 06:39 PM 1
Share

FBX works better than .Blend in Unity. If you dont see anything check your normals in Blender.

5 Replies

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

Answer by clunk47 · Oct 10, 2013 at 07:25 PM

Be sure to apply rotation and scale in blender. Also, in Blender, if you go into EDIT MODE, select ALL verts, rotate the entire model 90 degrees on the X axis, you can get it right. You may need to experiment around w/ rotations in edit mode, but this always works for me. Otherwise, you'll need to parent your blender model to an empty gameObject.

Comment
Add comment · Show 4 · 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 carnivoris · Oct 11, 2013 at 01:23 PM 0
Share

I'm rotating everything in Blender, but even the axes seem to rotate and it gets really confusing really quickly trying to keep up with what should go where. I've literally spent about 2 hours so far just trying to get this thing positioned correctly with no luck whatsoever.

avatar image clunk47 · Oct 11, 2013 at 04:49 PM 0
Share

Did you try making everything one mesh (ctrl + j) in object mode, then going to edit mode, select all (A), rotate 90 degrees on the X axis (r, x, 90)? Then DON'T apply rotation (ctrl + A, rotation)... This just rotates the mesh, not the object's pivot point.

avatar image clunk47 · Oct 11, 2013 at 04:50 PM 0
Share

If this doesn't seem to work, would parenting to an empty gameObject be an issue? This would be the same result as parenting to an empty in Blender, then importing to Unity, and rotating only the child of the object.

avatar image carnivoris · Oct 11, 2013 at 05:21 PM 1
Share

This was it. I guess I wasn't rotating the model in the right mode. I was unaware of that, but lesson learned!

avatar image
7

Answer by Jessy · Oct 10, 2013 at 05:55 PM

The axes will never match. Unity uses a left-handed coordinate system. Blender, right-handed.

Comment
Add comment · Show 5 · 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 carnivoris · Oct 10, 2013 at 06:32 PM 0
Share

AH, I see. I had this model imported before and it worked fine, except that I hadn't joined all the bits together and they didn't work properly when moving (the player controls a boat). I joined the pieces and even created a whole new model with the same results. What's the trick to getting the alignment right in Blender so that it displays and controls properly in Unity?

avatar image meat5000 ♦ · Oct 10, 2013 at 06:40 PM 1
Share

Find out the difference in rotation then rotate it in Blender making sure to Apply rotation.

Don't worry, there are hundreds with this problem.

avatar image clunk47 · Oct 10, 2013 at 07:27 PM 2
Share

"The axes will never match" is not true, so long as you get the rotation setup correctly in Blender before importing to Unity.

avatar image nrXic clunk47 · Jan 30, 2016 at 05:33 AM 0
Share

I applied your suggestion, and it worked in one sense...the model comes in as seen in Blender, with no additional rotation required. So it looks proper.

It doesn't work when I apply some code to the object, moving it around in X, Y, Z directions. That is still screwed up and the differences in coordinate systems seem to remain.

$$anonymous$$eep in $$anonymous$$d that I was using the .blend file. But I also had the issue with FBX. I'm gonna play with some of the FBX export settings to see if I find anything...

avatar image Reshima clunk47 · Nov 09, 2017 at 05:04 AM 1
Share

They won't match actually. Fixing the rotation is not the same thing as having the same coordinate system. You will have problems when you're dealing which way is the front/back. Right and left will get messed up as well. Applying the rotation doesn't change that. $$anonymous$$ostly for symmetrical objects you won't have problems but when it's not and front and back also matters.

avatar image
3

Answer by $$anonymous$$ · Apr 13, 2016 at 11:27 AM

Inside your Assets folder, create a new folder called Editor and paste the code from http://wiki.unity3d.com/index.php/FixBlenderImportRotation into a new C# file. This script fixes the issue of models facing up.

While modelling, ensure the camera front view is facing your model's back view, otherwise your model will be imported facing backwards. Haven't found a proper solution for this.

Before importing, ensure you have applied rotation and scale to prevent scaling issues.

Comment
Add comment · Show 3 · 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 meat5000 ♦ · Apr 13, 2016 at 11:29 AM 2
Share

This was always my go to

http://forum.unity3d.com/threads/blender-unity-rotation-fix.181870/

But in latest versions of Blender you can apply the experimental fix and select the axes on export and it comes out right, for me.

avatar image MortePCAndVR meat5000 ♦ · Oct 21, 2016 at 05:11 PM 0
Share

Thx @meat5000, the "!EXPERI$$anonymous$$ENTAL! Apply Transform feature of Blender FBX export works for me also, (in v2.77) so long as I have axes set to Z Forward and Y Up... So presumably that means it is converting Blender's axes from Z Up, Y Forward, into Unity's Z Forward Y Up in the baked FBX data. Unity still insists on rotating 180 around Y axis for some reason on asset import, but setting it all back to 0 in the Unity transform rotation brings the object mesh to align with how it appeared in Blender.

avatar image mlepage MortePCAndVR · Aug 06, 2017 at 03:07 PM 0
Share

This is a life saver. I had been playing with the "Y Up" and "Z Up" Blender FBX export settings but they had no effect in Unity. This is the magic button that turns on those settings! With this checked, the models are imported into Unity exactly as desired, no nasty rotations. Thank you!

avatar image
0

Answer by Ogdy · Dec 28, 2019 at 01:40 AM

You can use this plugin : Blender to Unity Orientation Fix Plugin

It will automatically fix the orientation of your .blend files in your Unity project. Just download and install the .unitypackage in your project, and re-import .blend files (In Unity Project tab, right click -> Reimport)

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 sudoku1v2 · Oct 04, 2020 at 09:23 AM

In BLENDER select View with 1 and 9, and this will correspond to Front view of the object on UNITY in 2D. Note also that: length of 1 in BLENDER corresponds to length of 5 in Unity. More simple...

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.

Follow this Question

Answers Answers and Comments

24 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

MMD How to export model and animations to Unity as 3rd person controller? 2 Answers

Unity wont recognize High Definition Models from blender 0 Answers

please help looking for animater for FPS 1 Answer

I downloaded a model for blender and when i export to unity all it imports with no color, i have tried everything i have tried to find on internet but nothing works? 1 Answer

Cannot Edit Blender Model Prefab in Unity 1 Answer


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