Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 Steven-1 · Sep 07, 2010 at 06:42 PM · blenderaxisorientationbonearmature

bones axis orientation strange when importing from blender (axis don't match)

Hi, I am animating a a bone procedurally, by making it lookat() a point in space which I move around. the result was however not as expected, as the mesh was wrongly deformed.

anyway, after a while I found out that it's all because the bone's transform.forward isn't the forward direction it has in blender.

It appears the bone's Z-axis in blender is it's forward direction in Unity, and the bone's negative X-axis in blender is it's up direction in Unity.

Can anyone explain to me why this is ? and more importantly, how I can fix this ?

thanks in advance

Comment
Add comment · Show 1
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 bidjo666 · Jul 15, 2020 at 06:38 PM 0
Share

In FBX export settings select Armatures Primary Bone Axis select Z Axis Secondary Bone Axis select -X Axis

2 Replies

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

Answer by 3Duaun · Sep 08, 2010 at 06:56 AM

Blender is famous for switching it's Z axis for what is usually another 3D apps Y axis. It took me some time to get used to this, but it's second nature now that I use blender more than most any other 3D package now.

That being said, I would recommend you export your rigged object/mesh via FBX. In the FBX export settings, select the "Rot x90" button, and see if that fixes your problem.

Here is my other trick for exporting rigs from blender to other 3d apps: I learned in Blender some time ago, to create character rigs with the character's head bone pointing towards the +Y axis, so the character is "lying on the floor" in the Blender 3D view. This allows for better export of constraints and rigs to most-other 3d packages, not sure how known this trick is. I then parent the rig to an empty in Blender, and rotate it 90degrees on the x so the rig then appears to be standing upright while I work on it in Blender.

Hope this helps somehow, took me some time to get bones exporting properly for FBX friendly apps from Blender. But this process is VERY easy with Blender 2.53, though unfortunately Unity doesn't support the new B25 .blend file format, SOON HOPEFULLY THOUGH. (Please Unity Devs, add Blender 2.5 blend support soon.) Even Blender 2.49 ca nopen a Blend from 2.5 with few to no issues.

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 Steven-1 · Sep 09, 2010 at 07:14 PM 0
Share

thanks for your answer, I'll check out the fbx exporter, but the (small) problem with that though is that I have to export every time I change something, whereas now I just have to save the blender file and it updates in unity immediately.

I kindof temp fixed the issue I had by rotating the bone in blender so that it works as intended in unity. (but now this bone is pointing in a strange direction in blender ofcourse :s )

avatar image 3Duaun · Sep 12, 2010 at 08:05 PM 0
Share

in cases where I need to rotate a bone specifically for export to another app, and that bone will appear rotated in Blender, I usually custom set it's bone-rest-position, then give it a CUSTO$$anonymous$$ BONE SHAPE(using a mesh or a curve). Then again, I use custom bone shapes for most all of the "control bones" in my production rigs, so I'm partial to this method.

avatar image BerggreenDK · Jul 21, 2011 at 09:53 PM 0
Share

As from what I have understood, 3D $$anonymous$$ax Studio and AutoCad shares the axis setup with Blender. So its a UNITY problem not Blender.

avatar image deathmtn · Dec 15, 2011 at 03:37 AM 0
Share

Thanks so much for this answer. I have been struggling with a much simpler problem (http://gamedev.stackexchange.com/questions/21045/how-can-i-create-my-mesh-so-that-textures-applied-to-it-are-not-rotated-90-degre) for a couple of days, and it turns out that it's just this that's happening.

avatar image hysp · Jan 15, 2013 at 06:38 PM 0
Share

Steven, did you finally understood how this works? I'm experiencing the same issue and I have been trying to understand what is happening and how to fix it for about 30 hours and I didn't achieve it, it is driving me insane!! Your knowledge and experiencies would help us a lot....

avatar image
2

Answer by bidjo666 · Jul 15, 2020 at 06:38 PM

In FBX export settings select Armatures Primary Bone Axis select Z Axis Secondary Bone Axis select -X Axis

Comment
Add comment · Show 1 · 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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Blender animation problem with armature 1 Answer

Bone rotating entire mesh in Blender, but not in Unity 0 Answers

Why does rotating a bone on one axis affect others and translation 2 Answers

Animations imported from blender look strange... 1 Answer

Parenting mesh to armature in Blender leads to flipped normals after import to Unity 2 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