supertuxkart-sourceforge-migration / stk-migration-test

0 stars 0 forks source link

Camera velocity uneven #1

Open supertuxkart-sourceforge-migration opened 10 years ago

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria

== Asciimonster == I haven't noticed this before RC1, but at top speed the velocity of the kart is very uneven, and it is very annoying. You can also be heard a vibration of the engine pitch. For underpowered machines this effect is larger, in that case you can even see the distance between the kart and the camera vary.

I'm running the win32 version under Windows7. [[BR]]

== JoergH == I think I've fixed the problem with the engine pitch (r6865 on trunk, r6874 on 0.7) - assuming that I've seen the same issue: it happens when you were driving at max-speed (without any items or nitro), then the engine sound would suddenly change, come back, go away etc.

I am still trying to find the reason for the problems with the kart and camera distance, so thanks a lot for the history.dat file.

Cheers, Joerg

Migrated-From: https://sourceforge.net/apps/trac/supertuxkart/ticket/2

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk This is a basic problem of the camera implementation, it doesn't maintain a separate velocity for the camera, but kind of uses a weighted average of the camera and kart position. Now the weight depends on time step size, so if (for whatever reason) there is a significant slower frame, the camera will appear to move inconsistently. So this is not easy to fix (except by implementing the camera again), and I won't call this a release stopper (as long as the frame rate is smooth, this is a non-issue), so I'll schedule it for later.

supertuxkart-sourceforge-migration commented 10 years ago

Author: auria Removing the assignment to termina1 since no activity in a while, leaving the ticket free to be picked by another developer

supertuxkart-sourceforge-migration commented 10 years ago

Author: hikerstk As a small update: assuming that the kart maintains a constant speed, and the camera-kart distance remains unchanged, the distance between kart and camera is:

v*(1/m_position_speed-dt) + m_camera_distance

where v is the speed of the kart, dt the time step size.

So this means that even in ideal circumstances the distance between camera and kart will depend on time step size.