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
0
Question by igor_giv · Dec 21, 2011 at 06:20 AM · animationcamerablenderissue

Weird Blender camera animation issue

Hello,

I am new to Unity and Blender. I have an issue with a camera animation that I have recorded in Blender. Basically it is a very simple animation where camera is flying around the default cube. Camera has a Track To constraint attached to it with the cube set as a target. Everything works fine in Blender. After I exported my animation to FBX and imported it to Unity things started getting really weird. Unity picked up the animation as the Default Take. But it does not look even remotely the same in Unity. I figured that there must be some kind of axis mismatch between Unity and Blender and so far have tried about dozen different axis mappings - but none of them result in the correct animation.

Am I missing something or doing something wrong?

The reason I am using Blender for camera animation (and not Unity) in the first place is because I don't know how to achieve similar functionality in Unity (I mean Track To constraint). I hope I don't need to write a camera script for this.

Unity version: 3.4.2f3 Blender version: 2.61.0 r42615

Thanks for 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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by igor_giv · Dec 22, 2011 at 10:09 PM

I figured the problem is with the Track To constraint. It is not "applied" to the rotation curves. I manually entered the key frames in Unity in order to reproduce the exact same numbers (adjusting for the axis mismatch) from Blender and it was still wrong. Then I played with the influence property of the Track To constraint in Blender and discovered that it does not affect the curves in any way - it only affects the display. Now the question is - how to apply it? Or may be: what is the correct workflow in this case?...

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 igor_giv · Dec 26, 2011 at 10:22 PM

The issue has been resolved. With Unity 3.5b6 now available for developer preview I decided to give its built-in animation tools another try. With Unity 3.4.2f3 every time when I record a camera animation it would generate some weird curves for rotation and when I played the animation back it would look quite different from what I expected. Instead of interpolating 2 adjacent rotations (in 2 adjacent key frames) using the shortest interpolation path - let's say 30 degrees - it would (apparently) choose the longer path of 330 degrees and the object the camera is supposed to look at would not even be in the view for the most part of camera travelling between 2 key frames.

After trying to record an animation for a few days I gave up in frustration... Trying to tweak the curves in the animation window didn't help. They would always be bent in some weird way. Changing between Euler Angles/Quaternions did not seem to make any difference (does it only help in case of Gimbal lock?). That's why I switched to Blender.

So anyway now 3.5b6 does the interpolation correctly and the camera travels between key frames in a much more predictable way.

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Blender to unity not working properly! 3 Answers

Mecanim - Rotate Generic GameObject and play Animation 0 Answers

Animation with object design in unity or blender ? 0 Answers

Blender Animation in Unity Problem 0 Answers

Blender or Unity for animation? 4 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