Project

General

Profile

Bug #4127

Weapon animation looks choppy

Added by scrawl . 3 months ago. Updated 23 days ago.

Status:
Confirmed
Priority:
Normal
Assignee:
-
Category:
Animation
Target version:
Start date:
09/26/2017
% Done:

0%

Reproducibility:
Always
Operating system:
Other
Severity:
Normal

Description

See https://github.com/OpenMW/openmw/blob/master/apps/openmw/mwmechanics/character.cpp#L1398

Weapon animations are comprised of 'sections' like these:
- 'start' to 'min attack'
- 'min attack' to 'max attack'
- 'max attack' to 'min hit'
- 'min hit' to 'hit'
etc.

The character controller plays all of these sections separately. It'll start the first section, checks if it's finished, if so starts the next one, and so on. When a section finishes, the remainder of the frametime effectively gets discarded, resulting in a momentary 'pause', a choppy looking animation and the overall animation takes slightly longer to complete than it should. This unpleasant effect is more visible the lower the framerate is.

Assuming these sections follow each other in the NIF file (I'd imagine they do) we should be able to play them as one 'continuous' animation group, though the min/max attack will still need special handling (it has to skip to the correct point depending on the AttackStrength).

History

#1 Updated by scrawl . 3 months ago

  • Description updated (diff)

#2 Updated by Alexei Dobrohotov 3 months ago

  • Status changed from New to Confirmed

#3 Updated by Alexei Dobrohotov 23 days ago

  • Target version set to openmw-1.0
  • Reproducibility changed from Have not tried to Always

Also available in: Atom PDF