UFO:Alien Invasion

Technical support => Bugs in stable version (2.5) => Topic started by: Rodmar on August 31, 2015, 01:17:36 am

Title: [Graphical glitch] Animated dead bodies
Post by: Rodmar on August 31, 2015, 01:17:36 am
Version: 2.5
System: GNU/linux x86_64
Graphic controller: RV790
Driver: Module ATI Radeon HD-4870 and earlier
-------------------------------------------------------------
On v2.4, I already experienced dead bodies standing up instead of laying down.
On v2.5, it still happens, but this time (perhaps I pay more attention), some display an "animation".
By animation, I mean:
1) the body slowly leans toward the ground from vertical position to horizontal position, when movement stops and the body lays down (as expected).
2) the same as 1), but it resumes a second time without the head, and then, the body reappears laying down with the head attached.
3) the same as 1), but this resumes "indefinitely" (at least 4 times).

Note that in the meanwhile, the model seems to change: the arms go from a "alive" or "holding my weapon" position to a "dead" or "hands up" or "outstretched arms" when the body lays down.

Is this glitch referenced ? Is it worth further descriptions, screenshots, etc?
Title: Re: [Graphical glitch] Animated dead bodies
Post by: Rodmar on September 01, 2015, 10:15:04 pm
Another type 3 (see above):
Last time, it was a Shevaar, and perhaps the model is not meant to be beheaded.
Tonight, it was a man, and from the second cycle on, it remained beheaded.

As reported type 1) was an alien too (a Taman), perhaps type 1) and type 2) are the same too.
This would let two cases : 1 cycle only or several (more than 4) cycles.
Title: Re: [Graphical glitch] Animated dead bodies
Post by: DarkRain on September 02, 2015, 01:46:20 am
Yes, this is a known issue see Bug #3300 (http://ufoai.org/bugs/ufoalieninvasion/issues/3300)
Title: Re: [Graphical glitch] Animated dead bodies
Post by: Rodmar on September 03, 2015, 02:39:17 am
In case it might help, because it's the first time I see an alien beheaded:

It's a full cycle in four screenshots. Body starts face down and slowly turns face up to reconnect with the head while twisting and thinning itself, as if there was a graphical transform in action.
When the head seems reconnected, the cycle resumes.
Title: Re: [Graphical glitch] Animated dead bodies
Post by: TBeholder on September 26, 2015, 07:36:31 pm
Also, dancing corpses - dead civilians frozen mid-fall.
Title: Re: [Graphical glitch] Animated dead bodies
Post by: Rodmar on October 13, 2015, 11:14:59 am
By the way, as commented in the old Bugtracker page (http://ufoai.org/bugs/ufoalieninvasion/issues/3300), and as far as v2.5 is concerned, I have the strong intuition that this bug is linked to another one which is always and only triggered when the death animation of a civilian or an alien was not played once at death time (because the engine decided the player (camera) or the player's team couldn't see it).

The fact that builds this intuition is that Hovernet deaths are always replayed when you spot on their corpse after their death. However, there is no bugged animation in the Hovernet's case, whereas there are in the case of living actors (along with a beheading, most of the time).

Perhaps addressing this death animation replay would solve the afore mentioned bug?

Thus, I'd think that this topic here may be closed.
Title: Re: [Graphical glitch] Animated dead bodies
Post by: DarkRain on October 15, 2015, 04:20:31 am
AS I mention in the bug tracker, deaths that happen out of sight don't play animations, which means that when the corpse becomes visible the model is still using the default "standing" animation, the engine immediately changes the animation to the corresponding "dead" animation (which skips the "death" animation AFAIR) which is a 1 frame 0 frame rate animation and apparently our renderer doesn't like that combination.

I'm guessing the weird glitches occur as the renderer tries to transition the model from standing to dead animations, as I noted AFAIK the death animation isn't played in this case, but the renderer is using interpolation between frames IIRC which seems to break with the 1 frame 0 rate combination of death animations