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
1
Question by GrKl · Sep 11, 2013 at 08:51 PM · animationfpsratedependent

are animation frame dependent?

Hi all,

I am wondering how is the speed of an animation set?

for example, 24frame animation is usually played in 1 second. But, lets say I am running the game running at 120 frames a second, does this mean the animation will last: 24/120 = 0.2 seconds?

If this is correct, who do you make frame rate independent animations?

Thanks!

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 GrKl · Sep 13, 2013 at 11:36 PM 0
Share

anyone has an idea on this? I feal I've searched everywhere, but could not find the answer

1 Reply

· Add your reply
  • Sort: 
avatar image
3

Answer by Hoeloe · Sep 14, 2013 at 12:02 AM

I should probably point out first that the standard for games is not 24FPS - that's the film standard. Games is anywhere from 30 to 120 FPS. Regardless, Unity can run animations in one of two ways. By default, it will display animations with reference to time, tweening between frames to keep it smooth. This prevents the animations from speeding up and slowing down with fluctuations in the frame rate. You can also display animations, however, as a value between 0 and 1, with 0 being the first frame, and 1 being the last. This allows you to have more detailed control over the animation, should you need to.

Comment
Add comment · Show 7 · 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 GrKl · Sep 18, 2013 at 09:17 PM 0
Share

Thanks for your answer. I have to say it is still a bit blurry to me. for the second part, seems quite clear. But for the first one:

"Unity can run animations in one of two ways. By default, it will display animations with reference to time, tweening between frames to keep it smooth"

I have to say, I do not really understand how do I know then how long my (for example) 24Frames animations will last

anyways, thanks for the hints

avatar image Hoeloe · Sep 18, 2013 at 10:15 PM 0
Share

It will last the same amount of time at any framerate, I think - it's read as a sequence of frames with respect to the time at which they occur (for example, with a 24FPS animation, frame 1 is at time 0, frame 2 is at time 1/24, frame 3 is at time 2/24, etc. This is true of any framerate, not just at 24FPS). If the framerate is faster than 24FPS, Unity will automatically tween (that is, interpolate between the frames, making a "guess" as to what should be there) in between these frames so that it doesn't appear jerky.

avatar image GrKl · Sep 21, 2013 at 04:55 PM 0
Share

then, i feel that having a function beeing executed on a specific frame is not the best solution is it? as if that frame is not played because Unity have 'tween' it, it may then prevent that frame to be rendered, then the function would not start?

avatar image Hoeloe · Sep 21, 2013 at 05:27 PM 0
Share

You're misunderstanding. It's still bad practice to do that, because it may skip out frames if the renderer can't keep up, but "tweening" doesn't remove frames from your animation, it adds them in-be*tween* your existing frames to smooth it out.

avatar image GrKl · Sep 21, 2013 at 06:06 PM 0
Share

Ok, I understand what you mean. But then, how would you get an action to be made in a specific time/frame of an animation?

Show more comments

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

16 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

Related Questions

How to make an Animation movement happen only after certain keyframes? 0 Answers

animating multiple weapons with 2 arms 0 Answers

Target frame rate between scenes 1 Answer

Animations have been cleared, help! 0 Answers

FPS gun movement 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