Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 CaoF · Sep 26, 2011 at 04:18 AM · animationerror

what cause 'error dt >= 0'?

current unity version 3.4.

i am play one animation and call 'CrossFadeQueued("two animation", 0.15f, QueueMode.CompleteOthers, PlayMode.StopSameLayer)'.

directly change speed = 1.2f // [all animations]

error 'dt >= 0' ../animation.cpp at line 1982, constantly shows up.

does anyone know what could cause this?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by BiG · Sep 26, 2011 at 09:18 AM

Hi CaoF, I've founded these posts related to your issue:

http://answers.unity3d.com/answers/152577/view.html

http://answers.unity3d.com/questions/152575/what-causes-dt-gt-0.html

Give 'em a look, seems that they could solve your problem.

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
1

Answer by XiaoJi · Jul 05, 2013 at 08:28 AM

in my case, this's because you change the animation's speed, and the animation's length is smaller, it's a error when length < fadeLength(default is 0.3F). so, my solution is scale the fadeLength.

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 CaoF · Sep 27, 2011 at 09:24 AM

thanks, BiG.

i do not speak good English.

that is solution is not match my project.

my animations is long and too slow.

i research this problem and found one problem and one solution.

// i use CrossFadeQueued(..) reason is interpolated animation time

[target : unity vertion 3.4]

CrossFadeQueued() some animations and fast speed is settings call 'Error'.


problem)
// is shows up "dt >= 0"
for(int i = 0; i < 5; ++i)
{
animation.CrossFadeQueued("idle", 0.2f);
}
animation["idle"].speed = 1.2f;


solution)
thinks about it, short animations can use CrossFadeQueued(..)[and not changed animation[].speed]

cause error "dt >= 0" using long time animation and change speed.

i use CrossFade(..) not show error, do working perfect!

animation is interpolated time that other functions, example changeAnimation()


void Foo()
{
animation.CrossFade(strAnimationName, c_fDefaultCrossFadeDuration, PlayMode.StopSameLayer); animation[strAnimationName].time = fDeltaSeconds;
}

thanks.

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
avatar image BiG · Sep 27, 2011 at 12:03 PM 0
Share

Although I founded those topics, I'm not an expert of animations, unfortunately. I'm writing this comment hoping someone will make your problem fixed. Sorry... :( any animation-experienced, out there?

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

animation error no animation called "Idle" 0 Answers

Unity deletes my animations 0 Answers

Animate mode does not contain definition for GetCurveBindings 2 Answers

mecanim and fingers error 0 Answers

Help with Animator has not been initialized error 5 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