View Issue Details

IDProjectCategoryView StatusLast Update
0003834The Dark ModCodingpublic15.12.2014 22:15
ReporterSteveL Assigned ToSteveL  
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 2.03 
Target VersionTDM 2.03Fixed in VersionTDM 2.03 
Summary0003834: Animated LOD switches need to copy much of the idAnimBlend data, not just restart the animation.
DescriptionLOD switches cause an anim channel that's sync'd and not firing off frame commands to start issuing them again. They also leave some other flags unset: whether the anim is paused and whether it's fading out (not likely, since only the most recently started anim is resumed, and soon-to-expire anims typically get replaced with a fresh idle anim, not no anim).
Steps To ReproduceDiscovered while testing 0003800
Additional InformationidAnimBlend could provide a copy method for LOD, that copies the important flags while linking to the new model.
TagsNo tags attached.

Relationships

related to 0003972 resolvedSteveL Ai twitching after death. 
child of 0003770 resolvedSteveL Make LOD work for AI 

Activities

SteveL

SteveL

01.09.2014 01:13

reporter   ~0006919

Added idAnimBlend::CopyStateData( const idAnimBlend& other ); and used it in the LOD switch.

Which copies the following:
+ allowFrameCommands -- whether to generate frame commands from the anim
+ allowMove -- whether the anim is moving the model through world space in addition to deforming the mesh
+ 4 pieces of info used in pausing and resuming anims.

End times for the anim have not been copied. Those are set by more sophisticated logic based on number of cycles to run, which is already restored by LOD.
SteveL

SteveL

01.09.2014 01:21

reporter   ~0006920

At rev 6095
SteveL

SteveL

15.12.2014 21:43

reporter   ~0007264

Extra parameter added to the copy list during 2.03 testing: endtime, without which a LOD change can reinstate an expired anim on a corpse.

at rev 6411

Issue History

Date Modified Username Field Change
31.08.2014 03:24 SteveL New Issue
31.08.2014 03:24 SteveL Status new => assigned
31.08.2014 03:24 SteveL Assigned To => SteveL
31.08.2014 03:25 SteveL Relationship added child of 0003770
01.09.2014 01:13 SteveL Note Added: 0006919
01.09.2014 01:21 SteveL Note Added: 0006920
01.09.2014 01:21 SteveL Status assigned => resolved
01.09.2014 01:21 SteveL Fixed in Version => TDM 2.03
01.09.2014 01:21 SteveL Resolution open => fixed
15.12.2014 21:43 SteveL Note Added: 0007264
15.12.2014 22:15 SteveL Relationship added related to 0003972