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 /
This question was closed May 24, 2014 at 07:35 AM by Fattie for the following reason:

Duplicate Question

avatar image
0
Question by Renkuya · May 24, 2014 at 12:38 AM · modelimporter

The whole YZ mix up from blender to Unity

I've searched and searched trust me, I've seen many threads with "solutions" and workarounds but I can't seem to make anything stick. My issue is that I get a model from my modeler and import it into Unity. Unity creates a parent-child tree that looks like "Cannon->armature->CannonBaseBone->CannonGunBone->CannonBarrelBone". The problem is that Cannon works fine XYZ coords are all fine. Armature and everything below it have their XYZ's messed up and end up being like YZX. Trying to export with the UP and Forward as anything just ends up rotating the model when I drag it into the scene and then the parts have their XYZ coords set up to be like XYY which doesn't make sense. I'm really at the end of my rope here, I'm not really a modeler so I've not exhausted all of my options since there certainly are people getting around this issue.

This issue breaks any script that might take advantage of "Lookat()" due to the XYZ being all fudged. Any help with this would be great, I've put a lot of time into learning Unity and I'd hate to walk away over this one issue.

Comment
Add comment · Show 2
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 Fattie · May 24, 2014 at 07:35 AM 0
Share

in video game engineering, everything is Z forward. every car, every car part, every creature. it's a basic. if your modelling $$anonymous$$m built it the wrong way they must rebuild it. asked thousands of times here, note the answer , http://answers.unity3d.com/questions/433857/how-to-make-blender-bones-forward-z-axis-unity.html

avatar image Owen-Reynolds · May 24, 2014 at 08:59 PM 0
Share

This isn't just blender. All(?) modeling programs use Z-up.

Now you know that there's an issue, so make some small test models to solve it. $$anonymous$$aybe modeling Y-up will work (but many modelers don't know the difference between rotating the mesh, and rotating the object.) Now you know the "rotate on export" checkbox is garbage (it is.) $$anonymous$$aybe the parent-child trick will solve it. If your modeler has a high-poly (non-game) background, it's trickier to communicate.

The rule for developers is: anything you're doing for the first time, budget a few days for weird problems (and be filled with superstitious dread if it works right away.)

1 Reply

  • Sort: 
avatar image
0

Answer by morgan23 · May 24, 2014 at 12:43 AM

you mean the rotation differences between blender and unity right? I found a useful add-on if thats the case this should fix all your problems. look for the add-on Unity-Tools.PY on google I use it too fix my rotation problems you should be able to get it working.

Comment
Add comment · Show 13 · 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 Renkuya · May 24, 2014 at 03:04 PM 0
Share

I'm not sure which tools you're talking about but most of the blender add-ons I sent my modelers way didn't really do much except invert directions or make the YZ both what X should be. The whole issue has cause me such a headache and I'm curious how other people get around this so easy. I'd like to point out again that "Cannon" rotates fine but the child object "CannonGunBone" does not. Everything tried doesn't even change the way it rotates. Is my modeler doing something wrong? Should there not be bones in the model or should they have some secret rotation I don't know about?

avatar image morgan23 · May 24, 2014 at 03:33 PM 0
Share

Hmm i'm not 100% sure I just thought this add-on might help since it sounded too be like a rotation problem but sounds like your modeller's might of did something wrong. Just too be be sure before I look at it my self it has too do with some of the bones rotations right?

avatar image Renkuya · May 24, 2014 at 03:47 PM 0
Share

Yes, if you look at my first post I outlined how my modeler layed out his bones in the object. The bones (should) have the proper rotation and everything but I have the issue where the XYZ coordinates seem shifted to the left so they end up YZX. Again, this entirely breaks "LookAt()" since the coordinates are messed up. I can upload a .blend file or FBX if you'd like to have a look at it.

avatar image morgan23 · May 24, 2014 at 03:54 PM 0
Share

sure i'll look at it too see for myself I was gonna try and see if I can replicate what you mean by do a quick test model in blender then rigging it.

avatar image Renkuya · May 24, 2014 at 04:06 PM 0
Share

I'm sure there is some glaringly obvious reason this doesn't work, but I spent 6 hours passing this model back to my modeler trying to figure it out and I just had zero luck. The attachment thing won't seem to upload so I hope a link doesn't break any rules or bother you. http://puu.sh/8ZfjV

Show more comments

Follow this Question

Answers Answers and Comments

23 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

Related Questions

Optimize Game Objects with Script? 0 Answers

How do you fix speed tree rotation? 1 Answer

Model has different import in Unity 3.5 1 Answer

How to create 3d models for game and how to add them to game 2 Answers

Blender Import Model unity 5 apply legacy model small and disappear almost 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